I’ve had many instances where it was easier to maintain a collection of commonly used PowerShell scripts on a webserver that can be reached from multiple different servers or workstations. Let’s say your .ps1 is called “checkvpn.ps1” We would run the Powershell command “iex ((New-Object System.Net.WebClient).DownloadString(‘http://www.codeisda.com/checkvpn.ps1’))“ Post Views: 3,659
AUTHOR: Code Monkey
I am the original "CodeMonkey", founder, CISSP/CISM and a Sr. System Administrator with over three decades experience. I specialize in CyberSecurity, Scripting and Datacenter Virtualization.
Author of "PowerShell Studio - A Comprehensive Guide"
Newer Post
Fixing Domain Trust Relationships! Older Post
Mapped Drive with Encrypted Password
COMMENTS