Powershell tidbits - TheGetch/Penetration-Testing-Methodology GitHub Wiki
get-psdrive -psprovider filesystem
https://blog.netspi.com/15-ways-to-bypass-the-powershell-execution-policy/
Scenario: Workstation COE with local admin rights
- Set the ExcutionPolicy for the CurrentUser Scope via the Registry
- In this example I’ve shown how to change the execution policy for the current user’s environment persistently by modifying a registry key directly.
HKEY_CURRENT_USER\Software\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell
#powershell