Get-QADComputer | Get-Service -ComputerName $_.computername -Name *xagt*
ASKER
ASKER
Invoke-Command { Get-Service *xagt* } -ComputerName lp-lon-1573
WMI is open as yet another option, uses DCOM over RPC, but a different permissions model.
Windows PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language built on the .NET Framework. PowerShell provides full access to the Component Object Model (COM) and Windows Management Instrumentation (WMI), enabling administrators to perform administrative tasks on both local and remote Windows systems as well as WS-Management and Common Information Model (CIM) enabling management of remote Linux systems and network devices.
TRUSTED BY
Open in new window
The value is picked out because ComputerName accepts pipeline input:Open in new window
The "ByPropertyName" means the input object (returned by Get-QADComputer) must have a property with a corresponding name. If it does, the parameter will automatically fill itself in.