An admins powershell tools

Admin tools

An admins powershell tools

The tools an admin needs to manage his environment are ...

Powershell version 5.1

Remote server administration tools

Install Remote Server Administration Tools using Powershell

Minimum Windows 10 v1803 is required

  • Get-WindowsCapability -Online | ? Name -like RSAT * | FT
  • Get-WindowsCapability -Name RSAT * -Online | Add-WindowsCapability -Online
  • Get-WindowsCapability -Online | ? ($ _. Name -like “RSAT *” -and $ _. State -eq “NotPresent”} | Add-WindowsCapability -Online

Trust Powershell scripts without exception in the execution

  • Set-ExecutionPolicy Unrestricted -Force

PS package management

  • Install-Module -Name PowerShellGet -Force -Verbose
  • Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted
  • Install modules PSReadline-Verbose
  • Install-PackageProvider -Name NuGet -Verbose
  • Install-Module -Name Docker -Verbose
  • Register-PackageSource -Name chocolatey -ProviderName Chocolatey -Location http://chocolatey.org/api/v2/
  • Install-Package -Name Sysinternals
  • Get-PackageSource

Azure Powershell Module

  • Install-Module -Name Azure -Repository PSGallery -Force -Verbose
  • Install-Module -Name AzureAD -Verbose
  • Install-Module -Name Az -AllowClobber
  • Install-Module -Name AzureADPreview -Verbose
  • Install-Module -Name Microsoft.Azure.ActiveDirectory.PIM.PSModule -Verbose
  • Install-Module -Name xPSDesiredStateConfiguration -Verbose

Azure Active Directory Connect

Manage Windows updates

  • Install-Module -Name PSWindowsUpdate -Verbose

O365

Requires Windows 10 and the .NET Framework 3.5

Azure Active Directory module

  • Install modules MSOnline -Verbose

Exchange Online

Exchange Online Remote Powershell MFA. Download from the Exchange Admin Center

Activate Windows Remote Management Basic Authentication

  • winrm get winrm / config / client / auth
  • winrm set winrm / config / client / auth @ {Basic = ”true”}

SharePoint Online

Windows Virtual Desktop

  • Install-Module -Name Microsoft.RDInfra.RDPowershell

Powershell modules update

  • Update help
  • Update modules

PSRemoting automatic configuration with certificate

source