GISTS

Use to start all Remote Desktop services that should have been started automatically and are not running:


Use to find out if a host or device is up/reachable before starting applications. I use this script in Windows autostart, but I only want to launch applications if I know that my company network is reachable (run shell:startup in Windows and place a batch file there that tells PowerShell to run the script at logon: ‘C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -file C:\scripts\if_host_is_up_do.ps1’):


Use to export and import Windows NPS server configuration. Run every, e.g. 1 hour, to have 2 servers with same NPS configuration:


Use script to RoboCopy files and folders and run a Deduplication job between RoboCopy commands. Wait for Deduplication job to finish before issuing next RoboCopy command:


Use script to modify all user profile shares with new server name and new folder name:


Use to get all VHD disks from VMs on Hyper-V hypervisor and export data to CSV


Use to move all .log files older than 1 day to another folder:


Use script to check if HyperV virtual machines are not running. If any are not running, then send warning mail and start them. Check again after 3 minutes and send a new status mail:


Use script to replace text or string in description on MS Active Directory objects:


Use script to test connection to website. If the test fails, run and log a traceroute:


Use to check for available Windows updates and send a warning mail if any:

Leave a comment

Your email address will not be published. Required fields are marked *