Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Aufzeichnung der PowerShell-Sitzung
- Start-Transcript -Path $env:USERPROFILE\PowerShellTranscript_2201.txt -Append
- # Alias-Namen
- cd hkcu:
- Set-Location hkcu:
- Set-Location -Path hkcu:
- # Abfrage von Befehlsnamen per Get-Command und Get-Module
- get-command -Name changelocation
- get-command *group* | out-gridview
- Get-Module -ListAvailable *group*
- # Rekursive Aufrufe
- # Ohne Aliase
- Get-ChildItem C:\Windows\*.log -Recurse -ErrorAction Ignore |
- Select-String "2020-01-21"
- # Mit Aliase
- dir C:\Windows\*.log -r -E Ignore | sls "2020-01-21"
- $Gestern = (Get-Date).AddDays(-1).ToString("d")
- dir C:\Windows\*.log -r -E Ignore | Select-String "$Gestern.*Error" -EA Ignore
- dir C:\Windows\Installer\1a93a7e.msi | Select *
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement