Recently Updated Pages
DNS Change Via CMD Line
First find the network name by using: netsh interface show interface You should see someth...
Add user to Administrators Group
net localgroup administrators [username] /add From <http://superuser.com/questions/515175/cr...
Network Share Folder
net share Docs=E:\Documents /grant:everyone,FULL From <http://www.windows-commandline.com/li...
Invalid H:\ Drive
You receive an "Error " error message when you try to install or remove a Microso...
Remote GPResult
Cmd line that can be ran remotely. gpresult /scope computer /v /user FKC\mpeak > %systemdriv...
Hyper-V
netsh firewall set opmode disable Pasted from <http://www.wantmoore.com/archives/2007/02/20/...
Choice Command
http://www.techrepublic.com/blog/window-on-windows/make-the-choice-command-work-for-you-even-in-w...
Configure TCP/IP from the Command Prompt
Save current settings netsh -c interface dump > c:'location1.txt When you reach location #...
CMD Line Registry Delete
September 14, 1999 05:14 PM How can I delete a registry value/key from the command line? ...
Run Commands
In case you wanted to get a command line thrill today.... Useful RUN Commands To Access…. ...
CMD Line Admin
CMD Line as ADMINISTRATOR runas /user:%computername%\administrator cmd device manager s...
Count Users in AD Group
(Get-ADGroup MFA_Users-Properties*).Member.Count From <https://help.clouduss.com/mfa-knowled...
Import Users from CSV to Group Name
Import-csv "filename.csv" | %{ add-adgroupmember "groupname" -member $_.samaccountname } Fro...
Modules
Find-Module -Name AzureAd | Install-Module
Crazy Mouse
Add-Type -AssemblyName System.Windows.Forms;Add-Type -AssemblyName System.Drawing;for($d=0;;$d+=....
Get Hash of a File
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/get-filehash?view...
Parameters and Variables
To get Powershell variables available hit CTRL + Enter Then to get paramet...
Network
Lookup MAC in ARP with Powershell with exact address - Get-NetNeighbor | ? { $_.LinkLayerAddress ...
Alias
To get the Alias of a command: Get-Alias - Definition "yourCommandHere" Reverse: G...
Cross Forest Resource Security
Cross-forest resource security To grant access to resources from one forest to another: ...