diff --git a/Public/Get-PC.ps1 b/Public/Get-PC.ps1 index 2420214..1e83b74 100644 --- a/Public/Get-PC.ps1 +++ b/Public/Get-PC.ps1 @@ -93,6 +93,7 @@ Function Get-PC { [switch]$InstallNet35, [switch]$Jobsprinters, [Switch]$LogOffUser, + [Switch]$Monitor, [Switch]$NextPrinterName, [switch]$Orion, [Switch]$PatchNotes, @@ -529,7 +530,7 @@ Function Get-PC { Get-InstallNet35 $comp continue } - + #Checks if there is a WinRM service error #TODO Re-evaluate where we want the WSNetwork test #$WSNetworkTest = Test-WSMan -ComputerName $comp @@ -580,6 +581,12 @@ Function Get-PC { } } + + # Monitor list of PCs for change in online status or + if ($Monitor) { + Invoke-PCMonitor $getPCComputers + return + } #This is the get-pc of get-pc. It collects all the data from the computers and puts it in an array to be outputed $outPutArray += Get-PCBatchInvoke($getPCComputers)