New Config Manager Remote Viewer paths
This commit is contained in:
parent
26829e8e34
commit
2a2d2aef09
|
|
@ -12,7 +12,7 @@
|
|||
RootModule = 'Get-PC.psm1'
|
||||
|
||||
# Version number of this module.
|
||||
ModuleVersion = '0.4.15'
|
||||
ModuleVersion = '0.4.16'
|
||||
|
||||
# Supported PSEditions
|
||||
# CompatiblePSEditions = @()
|
||||
|
|
|
|||
|
|
@ -6,27 +6,19 @@
|
|||
break
|
||||
}
|
||||
|
||||
$RemoteViewerPath = "C:\Program Files (x86)\ConfigMgr\bin\i386\CmRcViewer.exe"
|
||||
$RemoteViewerPathAdd = "C:\Program Files (x86)\ConfigMgr Console\bin\i386\CmRcViewer.exe"
|
||||
$RemoteViewerPathAdd2 = "C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\i386\CmRcViewer.exe"
|
||||
$paths = @(
|
||||
"C:\Program Files (x86)\ConfigMgr\bin\i386\CmRcViewer.exe",
|
||||
"C:\Program Files (x86)\ConfigMgr Console\bin\i386\CmRcViewer.exe",
|
||||
"C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\i386\CmRcViewer.exe",
|
||||
"C:\Program Files\CMremoteControl\CmRcViewer.exe"
|
||||
)
|
||||
|
||||
if(Test-Path $RemoteViewerPath)
|
||||
{
|
||||
foreach ($path in $paths) {
|
||||
if (-not (Test-path $path)) { continue }
|
||||
Write-Host "Attempting to remote into [$ComputerName]..." -ForegroundColor Green
|
||||
Start $RemoteViewerPath $ComputerName
|
||||
|
||||
}elseif(Test-Path $RemoteViewerPathAdd)
|
||||
{
|
||||
Write-Host "Attempting to remote into [$ComputerName]..." -ForegroundColor Green
|
||||
Start $RemoteViewerPathAdd $ComputerName
|
||||
|
||||
}elseif(Test-Path $RemoteViewerPathAdd2)
|
||||
{
|
||||
Write-Host "Attempting to remote into [$ComputerName]..." -ForegroundColor Green
|
||||
Start $RemoteViewerPathAdd2 $ComputerName
|
||||
|
||||
}else{
|
||||
Start-Process $path $ComputerName
|
||||
return
|
||||
}
|
||||
|
||||
Write-Host "`nRemote Viewer Install Path Not Found...`nPlease install Config Manager Thick Client" -ForegroundColor Red
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
Patch
|
||||
Patch 2025-2-24
|
||||
-Fix Devices and DevicesUnplugged 1.4x speedup
|
||||
-Add More possible paths for Config Manager Remote Viewer
|
||||
|
||||
Patch 2025-2-13
|
||||
-Add HostnamesByPrinter to list hostnames with printer installed
|
||||
|
|
|
|||
Loading…
Reference in a new issue