# Permit script execution (Admin)
Set-ExecutionPolicy Unrestricted
# List mount
Get-Volume
# Local Mounts like C: D:
Get-WmiObject -Class Win32_NetworkConnection
# Network Mounts like Z: W:Remote Powershell
Get-NetConectionProfile : Get interfaceSet-NetConectionProfil -IntercaceIndex 9 -NetworkCategory Private
: Enable PS RemoteSet-Item wsmon:\localhost\client\trustedhosts\ *
: Enable trustRestart-Service WimRMTest-WsMan COMPUTEREnter-PSSession -ComputerName COMPUTER -Credential USERVariable Afectation
$a = ls 'HKLM:/Software/'$a[0].PropertyAbout
[environment]::OSVersion.Version : get os version
(aparently :)Help
Comment
# mycomment Single line< # mycomment #>multilineEnable scripts
Script location
Load script
Last Error
$? # True if last operation succeed$LastExitCode # Exit code of last windows-based program
that was runEnvironment
Random
Find
ls -Recurse -Fiel | select *