Download and Install Applications from the Web with Powershell

For various administrative purposes, it can be useful to download files and install via Powershell. There are a few ways to do it, but with Powershell 5.1, I'll leverage invoke-webrequest and start-process. In the example below, I'm downloading Windows Powershell for AWS installer, using /qn to install silently. As always, don't forge to Run As … Continue reading Download and Install Applications from the Web with Powershell

The Send-MailMessage Cmdlet

Send-MailMessage may be one of my favorite Powershell cmdlets these days.  As I'm sure you've guessed, it's used for sending email- plain and simple. While this can't be said for all cmdlets, the syntax is very intuitive and straightforward. Here's an example: You'll find a bunch of other optional parameters here. I've made use of this … Continue reading The Send-MailMessage Cmdlet

Checking for Available Licences in Office365 via Powershell

You should have the sign-in assistant and the Azure AD Module for Powershell already installed and be connected (connect-msolservice). You'll need to know what SKU you're looking to check Get-MsolAccountSku I'll be working with  E1's, and will throw it into a variable: $accountsku = "megacorpinc:EXCHANGESTANDARD" Once we have that, we're ready to pull active and … Continue reading Checking for Available Licences in Office365 via Powershell

Office365 Bulk Licensing Based on UPN

1. A prerequisite to assigning licenses is settting the usage location. This script applies US to all users.  If the usage location was not already set, you'll need to run this, defining usage location as appropriate. get-msoluser -all | set-msoluser -usagelocation US 2. You will need the SKU number for licensing Get-MsolAccountSku 3. Copy that SKU … Continue reading Office365 Bulk Licensing Based on UPN