-
Notifications
You must be signed in to change notification settings - Fork 49
Get AutomateComputer
For a full command list, run Get-Help Get-AutomateComputer -Full
When running any of these commands, to better view the information do something like Get-AutomateComputer -ComputerId 1 | Out-Gridview
or assign to a variable, or export to CSV etc.
Get-AutomateComputer -ComputerID 1
<-- Gets information about a particular computer
Get-AutomateComputer 1
<-- Gets information about a particular computer, a shortcut for above
Get-AutomateComputer -ComputerID 1,2,3,4,5
<-- Gets information about multiple computers
Get-AutomateComputer
<-- Gets all computers, regardless of how many you have
Multiple conditions can be added to suit whatever you need
Get-AutomateComputer -OperatingSystem "Windows 7"
<-- Gets all Windows 7 Computers
Get-AutomateComputer -OperatingSystem "Windows 7" -Online $True
<-- Gets all Windows 7 Computers that are online
Get-AutomateComputer -OperatingSystem "Windows 7" -Online $True -Client "Rancor"
<-- Gets all Windows 7 Computers that are online and at Client Rancor
Get-AutomateComputer -NotSeenInDays 30
<-- Gets all Computers that have not been seen by Automate in 30 days
Get-AutomateComputer -LoggedInUser "Gavin"
<-- Gets all Computers where a user called Gavin is logged in
Get-AutomateComputer -NetworkProbe $True
<-- Gets all network probes
Get-AutomateComputer -DDay
<-- Gets all Computers that are affected by the Automate Binary issue hitting on 9th March 2019
Get-AutomateComputer -Online $true
<-- Gets all Computers that are Online, switch to false for Offline
Get-AutomateComputer -Server $true
<-- Gets all Computers that are servers
Get-AutomateComputer -AntivirusScanner "Webroot"
<-- Gets all Computers that are running Webroot
Get-AutomateComputer -Client "Rancor" -Location "Felucia" -Online $True -UserIdleLongerThanMinutes 60 -Workstation $True
<-- Gets all Computers that are at Client Rancor, Location Felucia, that are online, where the user has not been using their Workstation PC for 60 minutes
To see a full list of parameters that are usable, do Get-AutomateComputer | Get-Member | Select Name
. Though not all Parameters have been mapped to Powershell Switches (though most have) you can use all the parameters bought back above in the custom search
A custom condition to build searches that can be used to search for specific things. Supported operators are '=', 'eq', '>', '>=', '<', '<=', 'and', 'or', '()', 'like', 'contains', 'in', 'not'.
The 'not' operator is only used with 'in', 'like', or 'contains'. The '=' and 'eq' operator are the same. String values can be surrounded with single quotes. IE "(RemoteAgentLastContact <= 2019-12-18T00:50:19.575Z)"
Boolean values are specified as 'true' or 'false'. Parenthesis can be used to control the order of operations and group conditions.
Example Usage: Get-AutomateComputer -Condition "(RemoteAgentLastContact <= 2019-12-18T00:50:19.575Z)"