Not able to log deleted files in log file

Ask your PowerShell-related questions, including questions on cmdlet development!
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.
This topic is 5 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
Rajeshgvd
Posts: 7
Last visit: Fri Jun 29, 2018 1:53 am

Re: Not able to log deleted files in log file

Post by Rajeshgvd »

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.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Not able to log deleted files in log file

Post by jvierra »

What "below script"?
What do you mean by "append".

Just type the command into the script.
This topic is 5 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked