fachinformatiker-wiki

it's easy when it's here

User Tools

Site Tools


microsoft:allgemeines:powershell

This is an old revision of the document!


PowerShell Befehle

Befehl Beschreibung
Get-ADDomainController Informationen zu den DCs und der Domäne
Get-ADForest | Select ForestMode Forest-Funktionsebene
Get-ADDomain | select DomainMode Domain-Funktionsebene
Get-Childitem -file C:\Path\To\Folder\ Gibt alle Dateien im Ordner “Folder” aus
Get-Childitem -folder C:\Path\To\Folder\ Gibt alle Ordner im Ordner “Folder” aus
Get-Childitem c:\Path\To\Folder\*.wav Gibt alle WAV-Files im Ordner “Folder” aus
Get-WindowsFeature FS-SMB1 Status von SMBv1 prüfen
Enable-WindowsOptionalFeature -Online -FeatureName smb1protocol SMBv1 aktivieren
Disable-WindowsOptionalFeature -Online -FeatureName smb1protocol SMBv1 dektivieren
Get-Content C:\log.txt –Wait (Log-)File Inhalt “live” ausgeben
Get-Content C:\log.txt -Tail 3 Letzte 3 Zeilen eines (Log-)Files ausgeben

Default Apps neuinstallieren

Get-AppxPackage -allusers | foreach {Add-AppxPackage -register "$($_.InstallLocation)appxmanifest.xml" -DisableDevelopmentMode}
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.  More information about cookies 
microsoft/allgemeines/powershell.1636211799.txt.gz · Last modified: 2024/02/17 19:03 (external edit)