Created
July 8, 2020 11:56
-
-
Save Zyssetd/2208de9e4d2b48e8296058d771fafb59 to your computer and use it in GitHub Desktop.
[Diverse Grundlegende Scripts]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Scriptausführung in der Powershell aktivieren | |
set-executionpolicy RemoteSigned | |
# | |
#Verbindung mit Exchange aufbauen | |
$cred = Get-Credential | |
# | |
#Session eröffnen | |
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $cred -Authentication Basic -AllowRedirection | |
# | |
#Commandlets importieren | |
import-PSSession $Session | |
# | |
# | |
#Scriptausführung wieder deaktivieren | |
Set-ExecutionPolicy restricted | |
# | |
# Englische Hilfe aktualisieren | |
Update-Help -UICulture "en-US" -force | |
# | |
# PowerShell Version abfragen | |
$PSVersionTable.psversion | |
# oder | |
Get-Host | |
# oder | |
$PSVersionTable | |
# | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment