This script below is an extension of this script PowerShell Download Latest WordPress Plugin. This download script uses two XML files, primary XML will serve as the configuration file where the secondary will have the plugins that we currently have installed and then this script will run through the XML…
Category: Code
This area of the site is dedicated to code snippets for quick and easy reference
Recover/Replace MySQL Root Password – UNIX
Forgetting or never having the root password for a MySQL database can be rather difficult if it is now your job to support it. Note: You will need root access on the UNIX box to follow these commands. If for some reason you get an error saying mysql database doesn’t…
PowerShell – Start / Stop IIS Website and Application Pool
Reference: https://github.com/alastairtree/deploy-websites-with-powershell
PowerShell – Create ASPX Site Within IIS Including Dedicated Application Pool
This script relies on this post currently as it gets a test ASPX site to make sure everything was setup correctly.
PowerShell Select-String – UNIX Grep Equivalent
UNIX Terminal commands can really speed things up, take grep for example if you are not sure of where you put a file or if some text is in a file you can run a simple command like this. Find all references to “www.domain.com” PowerShell has a similar command If…
PowerShell – List Sites with App Pool
GitHub: https://gist.github.com/dkittell/90b53d1136d80f1c53c0
PowerShell – Rename Computer
Reference: https://technet.microsoft.com/en-us/library/hh849792(v=wps.630).aspx