/powershell-automation-scripts

A sample PowerShell script that can be used as a template for scheduled tasks or other automation and includes warning/error email support, normal and debug logging, as well an example on how to use external configuration files.

Primary LanguagePowerShellMIT LicenseMIT

Useful-Scripts

A collection of useful scripts.

Categories

Automation

  • PowerShell Automation Script Example: A sample PowerShell script that can be used as a template for scheduled tasks or other automation and includes warning/error email support, normal and debug logging, as well an example on how to use external configuration files.

Deployment

  • PowerShell-Install-BITS: A sample PowerShell script that checks if a program or update is installed and, if not, then downloads the installer/updater with BITS and installs. More info in the README.

Password Tools

  • New-SecurePassword: A PowerShell script that accepts credentials and then returns the password as an encrypted standard string. Unlike a secure string, an encrypted standard string can be saved in a file for later use. The encrypted standard string can be converted back to its secure string format by using the ConvertTo-SecureString cmdlet (the password can only be decrypted by the same account on the same computer it was encrypted from). Optionally use the "-VerifyADAccount" switch to first check the submitted credentials against your Active Directory domain for verification (requires the Microsoft ActiveDirectory PowerShell Module).