Category Archives: PowerShell

Block Outlook from connecting to 365

By | August 10, 2021

Beginning with Office 2016 Outlook auto-connects to 365 upon opening. This causes users to be prompted for credentials if their account is on-premise. To disable this,  run this in PowerShell as the user: Set-ItemProperty -Path HKCU:\software\Microsoft\Office\16.0\Outlook\AutoDiscover -Name ‘ExcludeExplicitO365Endpoint’ -Value 1 -Type DWord -Force

Set Network Type

By | July 16, 2019

To change the network type in windows 10 from Public to Private: $Name = Get-NetConnectionProfile|Select Name |out-gridview -PassThru Set-NetConnectionProfile -Name $Name.name -NetworkCategory Private