SOLVED: VIDEO: How to connect to AzureAD AzureRM & AzureCLI using PowerShell

In this short video we explain and demonstrate how to connect PowerShell to AzureAD AzureRM & AzureCLI: How to Connect to AzureAD? Launch a PowerShell as an administrator Make sure you are running PowerShell 5.0 or newer: $PSVersionTable.PSVersion Install the required module: Install-Module MSOnline Sign into Azure: Connect-MsolService Run your commands: Get-Command -Module MSOnline How to Connect to AzureRM (aka. Azure Resource Manager – ARM)? Launch a PowerShell as an administrator Make sure you are…

SOLVED: VIDEO: PowerShell Command Line to List all available Azure Products in a Specific Data Center

In this video we explain and demonstrate how to connect to Microsoft Azure and list the services that are available at a specific data center. Azure PowerShell Commands: What version of PowerShell do I have? – You need to be at v5 $PSVersionTable.PSVersion Install Azure Command Line – You only need to install this once on each machine you work on Invoke-WebRequest -Uri https://aka.ms/installazurecliwindows -OutFile .\AzureCLI.msi; Start-Process msiexec.exe -Wait -ArgumentList ‘/I AzureCLI.msi /quiet’; rm .\AzureCLI.msi…

SOLVED: VIDEO: Easy PowerShell to List The Email Addresses in a Dynamic Distribution List From Office365

This is the “How Can I See the User/Member/Email addresses in a Dynamic Distribution Group” segment from our larger explanation of what Dynamic Distribution Lists are in Office 365 Hosted Exchange, How to Create and Manage an Office 365 Dynamic Distribution List, and How To Display The Users in Dynamic Distribution Group Easy PowerShell How to Show The Email Addresses in a Dynamic Distribution List Open a POWER SHELL as an administrator then enter these…

SOLVED: Exchange Management Console – Attempt to connect to http://server.domain.com/PowerShell using “Kerberos” authentication failed

If you are able th launch the Exchange Management Console (EMC) but see the following error when you attempt to expand a segment, we have the solution: “The following error occurred while attempting to connect to the specified Exchange server ‘http://server.domain; The Attempt to connect to http://server.domain/PowerShell using “Kerberos” authentication failed: Connecting to the remote server failed with the following error message: The WS-Managment Service cannot process the request OR The WinRM client cannot complete…

SOLVED: How To Disable Focused Inbox on Office 365 Outlook Using The GUI or PowerShell

In a corporate setting, having a FOCUSED INBOX will frequently be used as an excuse by staff for not responding.  IT will receive a never ending stream of complaints and requests to tweak the algorithm which they can’t and would not want to do.  As such most companies will want to set the Focused Inbox to off by default. In the video below we demonstrate how to turn off the Focused Inbox using PowerShell because…

SOLVED: How to Change Command Prompt to PowerShell on the Start Menu of Windows Server 2016 or Win10

If you have a new Windows Server 2016 or Windows 10 installation, you will find that when you right click on the START button, you will see COMMAND PROMPT as an option.  For standard users this is fine, but for administrators, you will likely want the more powerful POWERSHELL option.  Fortunately this is easy to change. To change COMMAND PROMPT to POWERSHELL on the START menu: Right click on the TASK BAR and select SETTINGS…

SOLVED: How To Delete A SharePoint Online Site Using PowerShell

If you have ever deleted a SharePoint site from Office 365 or other SharePoint Online provider, you know that sometimes the sit around for a while.  If you are trying to reuse the name of a site you recently deleted, this can be a problem.  Fortunately the solution is to force the deletion of the site using PowerShell: Download PowerShell for SharePoint Online from Microsoft, then install and run it as an Administrator . Set…

SOLVED: SIMPLE PowerShell Script To Download & Install Windows Updates Then Reboot If Necessary

I have been trying to get a simple CMD script or PowerShell or even a utility to get Windows 10 to download and install Windows Updates for about a year.  It has not gone well. Note that Angus Briggs at PDQ support told me about a very simple PowerShell command that will kick off Windows Update and download the files, but it will not install them or check for a reboot: (New-Object -ComObject Microsoft.Update.AutoUpdate).DetectNow() Also note that following…

SOLVED: How To Force a Clean Up of WSUS Data & Resolve SERVER NODE RESET Using PowerShell

 If you cannot complete a clean up of your WSUS server through the WSUS console because it keeps erroring out with SERVER NODE RESET, you can hopefully complete through the following PowerShell command line: Invoke-WsusServerCleanup -DeclineSupersededUpdates -DeclineExpiredUpdates -CleanupObsoleteComputers -CleanupObsoleteUpdates -CleanupUnneededContentFiles -CompressUpdates Note that if your WSUS database is corrupted or has other issues, you will want to run WSUS Database cleanup as we describe HERE. There are a few notes to this script: You need to run…

SOLVED: How To Determine What Version of PowerShell You Have Installed

If you need to know what version of PowerShell you have installed there are many ways to figure it out: In PowerShell, type: get-host In PowerShell, type: get-host | select-object version In PowerShell, type: ConsoleHost deprecated In PowerShell, type: $PSVersionTable In PowerShell, type: Get-PSSnapin Check the registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1 \2 \3 \4 \5 If you would like to download the most current 2016 build (5.0), you can get it directly from Microsoft HERE. Thanks to several…

SOLVED: How to Disable Clutter Feature in Outlook / Office 365 / Powershell

“Clutter” is a feature enabled in all Office365 hosted email addresses as of summer 2015.  Clutter uses Microsoft’s machine learning named Delve to figure out what is not important to you and moves those messages into a Clutter folder.  If you want to disable Clutter, you have three choices: How To Disable Clutter in Outlook Unfortunately Outlook 2016 does not have a TOOLS > OPTIONS > MAIL > CLUTTER = DISABLE type feature but Clutter will…

SOLVED: How To Query a Surface 4 (or 3) Serial Number From PowerShell WMI

If you have a Microsoft Surface 3 or 4 (and likely 2 or any other computer with the Serial Number stored in the UEFI BIOS), you can determine the BIOS Version and Serial Number through a simple command line: Launch a POWERSHELL as an Administrator Enter the following two commands in order: $query = “Select * from Win32_Bios” Get-WmiObject -Query $query Have a nice day  

SOLVED: VIDEO: How to Install Version 2 Exchange Online Commandlets

Verison 2 of Exchange Online Commandlets (aka EXOv2 Cmdlets) are new commands that much simplify the command line administration of hosted Exchange.  In our case, we need these new commands to more quickly manage our Office365 Exchange Online implementation.  The problem is that EXO v2 commands are not included in the latest version of Windows 10 20H2 or in PowerShell 7.  Fortunately there is an easy way to add them: Launch a PowerShell as an…

SOLVED: Windows File Explorer Does Not Show User Profile Name in C:\USERS

Since the last Windows 10 upgrade one of our staff noticed that Windows File Explorer did not show their profile path (We are always on beta’s which change every few weeks to there is little point to explaining the build details).  Specifically, the missing user is “Calgary” and so the profile is stored in C:\USERS\CALGA but as you can see in the screen shot below, that user name does not appear. If I manually enter…

SOLVED: VIDEO: This Edition Cannot Be Upgraded – Fix For Windows Server Activation Error

We recently licensed a copy of Windows Server 2016 from a website named Digital Software Planet.  There instructions were to download and install a 180 day evaluation copy of Server 2016 from the Microsoft Evaluation center.  They also provided a standard product license key but when we entered it we were unhappy to see it respond with THIS EDITION CANNOT BE UPGRADED The solution was to remove the evaluation CAB and activate via command line and…