Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 506 Bytes

Powershell Commands.md

File metadata and controls

30 lines (17 loc) · 506 Bytes

Powershell Commands

File directory

Set-Location -Path "drive:" Get-Location "(gets location of directory)"

Poweshell version

$PSVersionTable - "Checks Powershell version"

Net use - "(Lists network drives connected)"

Finds out details & versions of programs installed

Get-WmiObject -Class Win32_Product

Bypasses the execution policy

Set-ExecutionPolicy Bypass -Scope Process

More commands

Hostname - "(device name)"

Nslookup "Looks up server

Default server: Address: "