Forum Discussion
ZAHID_HASEEB
Aug 10, 2024Copper Contributor
Get command status from Active Directory Domain machines
We need to get the status of few commands from a domain environment of around 400 machines. All may be windows 10 and windows 11 machines. Need to run this activity couple of times in a day. This...
kyazaferr
Nov 13, 2024MCT
Running the Script Remotely
PowerShell Remoting
If remoting is enabled on the target machines, you can execute this script from a central machine using:
Invoke-Command -ComputerName $computer -ScriptBlock {
# Include the script here
} -Credential (Get-Credential)