1. remove some text on file name of all files: e.g. “TVBOXNOW ” ls | Rename-Item -NewName { $_.name -replace “TVBOXNOW “, “” } 2. move up one level of files in each directory, e.g. c:\folder1\folder2\file3 to c:\folder1\file3 $files = Get-ChildItem -Recurse “c:\folder1” | where {$_.PSIScontainer -eq $false} foreach ($file in $files) { $destinationFolder = …
For some business reasons, company provides FortiGate SSL VPN to connect office network, but some subnet cannot be accessed due to route did not add automatically. here is a PowerShell script to find the gateway and interface of VPN connection then add route. It will be great if I can find out how to run …
Windows 7 default with PowerShell 2.0, when I downloaded “Windows Management Framework 4.0 “, installed and reboot then update failure, Error Code: 8004402F . it is due to temp directory on my system environment pointing to Ram Disk…. Turn off Ram disk, set TEMP back to somewhere with physical disk. M$, you win….. solution source …

