Powershell Werkzeuge eines Admins

Admin Werkzeuge

Powershell Werkzeuge eines Admins

Die Tools die ein Admin zur Verwaltung seines Environments benötigt, sind…

Powershell Version 5.1

Remote Server Administration Tools

Remote Server Administration Tools per Powershell installieren

Mindestes WIndows 10 v1803 wird vorausgesetzt

  • 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

Powershell-Skripten ausnahmslos in der Ausführung vertrauen

  • Set-ExecutionPolicy Unrestricted -Force

PS Paketverwaltung

  • Install-Module -Name PowerShellGet -Force -Verbose
  • Set-PSRepository -Name ‘PSGallery’ -InstallationPolicy Trusted
  • Install-Module PSReadline -Verbose
  • Install-PackageProvider -Name NuGet -Verbose
  • Install-Module -Name Docker -Verbose
  • Register-PackageSource -Name chocolatey -ProviderName Chocolatey -Location https://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

Windows Updates verwalten

  • Install-Module -Name PSWindowsUpdate -Verbose

O365

Setzt Windows 10 und das .NET Framework 3.5 voraus

Azure Active Directory Modul

  • Install-Module MSOnline -Verbose

Exchange Online

Exchange Online Remote Powershell MFA. Download über das Exchange Admin Center

Windows Remote Management Basic Authentication aktivieren

  • 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

Update Powershell Module

  • Update-Help
  • Update-Module

PSRemoting automatische Konfiguration mit Zertifikat

Bildquelle