We are using "Invoke-Command", enabled PS remoting.
can you please help me how to use this one in same script.
I can do it in command line : PS C:\> Invoke-Command -ComputerName (Get-Content Servers.txt) -FilePath C:\temp\Sample.ps1
how to append this invoke command to below script.
Thanks in advance.
Not able to log deleted files in log file
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.