If you work in Azure these two functions are very valuable additions to your library. Note: This majority of this code is copied from the reference below. I added Gateway Address to the Network Routes along with DNS Reference: http://blog.kloud.com.au/2014/11/11/get-azure-virtual-networks-with-powershell/
Category: PowerShell
PowerShell – Random Password Generator
Similar to C# – Random Password Generator but this will work with PowerShell scripts. This script has a minimum of four (4) characters but you can change that to whatever you would like. Reference: http://www.wisesoft.co.uk/scripts/powershell_random_password_generator.aspx Another approach Reference: http://poshcode.org/5806
PowerShell – Set Execution Policy Permissions
In order for PowerShell to run scripts you need to grant it specific permissions. Restricted No scripts can be run. Windows PowerShell can be used only in interactive mode. AllSigned Only scripts signed by a trusted publisher can be run. RemoteSigned Downloaded scripts must be signed by a trusted publisher…
PowerShell – Add Windows Feature IIS Site Management
If you are on a freshly installed Windows server and can’t find IIS Site Mangement try this script below.
PowerShell – Get WebAdministration
If you are on a newly installed server and trying any of the IIS PowerShell scripts on this site that call “Import WebAdministration” you may have some issues if the “WindowsPowerShellWebAccess” feature isn’t installed, this script below should help.
PowerShell – IPv4 Range
This first function is helpful to provide a range of IPv4 addresses within a set range This next function will get the broadcast IPv4 address from a CIDR range Next this function will detect if a specified IPv4 address is in the range This next function will convert an IPv4…
PowerShell – Clean Windows 10
Work In Progress This will remove some of the default apps along with a couple other fun features to come.
PowerShell – Java JDK/JRE Unattended Install
This code is rather useful if you need to install Java JDK or Java JRE without a product like SCCM. This script will download the installer file, create the silent install text file then silently install Java JDK or Java JRE and place the executable path into the System Environment…
PowerShell – Download/Install/Configure Nexus
This script is best followed by PowerShell – Java JDK/JRE Unattended Install as you need Java JDK installed.