Skip to content

Instantly share code, notes, and snippets.

@jt0dd
Created August 25, 2021 14:02
Show Gist options
  • Save jt0dd/66011c76d6d63ff81f7c53d9f58ab878 to your computer and use it in GitHub Desktop.
Save jt0dd/66011c76d6d63ff81f7c53d9f58ab878 to your computer and use it in GitHub Desktop.
Set-mppreference –DisableRealtimeMonitoring $TRUE
new-item "HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\sethc.exe"
Get-psdrive
Start-transcript | out-null
Set-ExecutionPolicy Unrestricted
Update-Help -Force
-ErrorAction SilentlyContinue
2>$null 2>\dev\null
set-alias edit notepad.exe
Get-process | get-member
Get-member -InputObject (obj)
Array | sort-object
Get-process | select-object -Property propertyName1, propertyName2 
Where-object {} | stop-process
Get-help about_Automatic_Variables
$another = [pscustomobject]@{ Color=”Red”; ID=123 }
Get wmi-object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment