Search found 7 matches
- Tue Jun 26, 2018 8:09 am
- Forum: PowerShell
- Topic: Not able to log deleted files in log file
- Replies: 11
- Views: 3795
Re: Not able to log deleted files in log file
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...
- Tue Jun 26, 2018 4:07 am
- Forum: PowerShell
- Topic: Not able to log deleted files in log file
- Replies: 11
- Views: 3795
Re: Not able to log deleted files in log file
Hi jvierra, I need some help on copying the script to remote servers and then execute the same copying script. I know how to copy files from source to destination, but not able to execute the file script . please help me. Below is the script. $computers = get-content "C:\psscripts\servers.txt&q...
- Tue Jun 26, 2018 3:07 am
- Forum: PowerShell
- Topic: powershell script for copy script to remote servers and then execute the script
- Replies: 1
- Views: 1745
powershell script for copy script to remote servers and then execute the script
Hi , I need some help on copying the script to remote servers and then execute the same copying script. I know how to copy files from source to destination, but not able to execute the file script . please help me. Below is the script. $computers = get-content "C:\psscripts\servers.txt" $s...
- Wed Jun 20, 2018 4:05 am
- Forum: PowerShell
- Topic: Not able to log deleted files in log file
- Replies: 11
- Views: 3795
Re: Not able to log deleted files in log file
I tried the code which you given but my bad, not able to get the result, anyway thanks for your help
- Wed Jun 20, 2018 2:00 am
- Forum: PowerShell
- Topic: Not able to log deleted files in log file
- Replies: 11
- Views: 3795
Re: Not able to log deleted files in log file
Hi jvierra, I am new to power shell and started learning meanwhile can you please tell me how we can write deleted log name by using robocopy. Many thanks
- Wed Jun 20, 2018 1:46 am
- Forum: PowerShell
- Topic: Not able to log deleted files in log file
- Replies: 11
- Views: 3795
Re: Not able to log deleted files in log file
Hi jvierra , thaks for your reply this script is not writing the file name in the logs(which was deleted)
- Wed Jun 20, 2018 12:27 am
- Forum: PowerShell
- Topic: Not able to log deleted files in log file
- Replies: 11
- Views: 3795
Not able to log deleted files in log file
Hi, When i try to write script on deleting files olderthan 30 days, it should capture log files (deleted files) please do help Below is the script: # Change the value $oldTime in order to set a limit for files to be deleted. $oldTime = 30 # 30 day(s) Cls foreach ($path in Get-Content "D:\Suresh...