Change a string in a text file This script lists all files in a specific folder and replace a string within these files The following cmdlets are used in the script : Get-childitem : list the files to update Get-content
Shared folder recycle bin clean up
Delete folders on remote hosts
List the files in the Recycle bin, which are older than 100 days
Delete remote Recycle Bin items
Get the disk space used by the Recycle Bin items
Set folders ACL (owner and NTFS rights)
Robocopy process management
Network file unlocker
Get shared folder informations on a remote host
This script gets the shared folder informations and ACL configured on a remote host (source : http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/1903cfde-ad34-464e-9419-94d07ed9de88/) Script : Function Get-NtfsRights($name,$path,$comp){ $path = [regex]::Escape($path) $share = “\\$comp\$name” $path = $path -replace “\\ “,” ” $path $wmi = gwmi Win32_LogicalFileSecuritySetting -filter