New Config Manager Remote Viewer paths

This commit is contained in:
Zachary Gorman 2025-02-24 09:21:30 -08:00
parent 26829e8e34
commit 2a2d2aef09
3 changed files with 17 additions and 24 deletions

View file

@ -12,7 +12,7 @@
RootModule = 'Get-PC.psm1'
# Version number of this module.
ModuleVersion = '0.4.15'
ModuleVersion = '0.4.16'
# Supported PSEditions
# CompatiblePSEditions = @()

View file

@ -5,28 +5,20 @@
Write-Host "Exiting Viewer Remote...No connection made to [$ComputerName]" -ForegroundColor Red
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"
if(Test-Path $RemoteViewerPath)
{
$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"
)
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{
Write-Host "`nRemote Viewer Install Path Not Found...`nPlease install Config Manager Thick Client" -ForegroundColor Red
}
Start-Process $path $ComputerName
return
}
Write-Host "`nRemote Viewer Install Path Not Found...`nPlease install Config Manager Thick Client" -ForegroundColor Red
}

View file

@ -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