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' RootModule = 'Get-PC.psm1'
# Version number of this module. # Version number of this module.
ModuleVersion = '0.4.15' ModuleVersion = '0.4.16'
# Supported PSEditions # Supported PSEditions
# CompatiblePSEditions = @() # CompatiblePSEditions = @()

View file

@ -6,27 +6,19 @@
break break
} }
$RemoteViewerPath = "C:\Program Files (x86)\ConfigMgr\bin\i386\CmRcViewer.exe" $paths = @(
$RemoteViewerPathAdd = "C:\Program Files (x86)\ConfigMgr Console\bin\i386\CmRcViewer.exe" "C:\Program Files (x86)\ConfigMgr\bin\i386\CmRcViewer.exe",
$RemoteViewerPathAdd2 = "C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\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 Write-Host "Attempting to remote into [$ComputerName]..." -ForegroundColor Green
Start $RemoteViewerPath $ComputerName Start-Process $path $ComputerName
return
}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
} }
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 -Fix Devices and DevicesUnplugged 1.4x speedup
-Add More possible paths for Config Manager Remote Viewer
Patch 2025-2-13 Patch 2025-2-13
-Add HostnamesByPrinter to list hostnames with printer installed -Add HostnamesByPrinter to list hostnames with printer installed