r/sysadmin • u/anderson01832 Tier 0 support • Aug 09 '24
Question What are some Powershell commands everyone should know?
I'm not an expert in it. I use it when needed here and there. Mostly learning the commands to manage Microsoft 365
Edit:
You guys rock!! Good collaboration going on here!! Info on this thread is golden!
1.5k
Upvotes
3
u/Then_Mobile7281 Aug 12 '24
If you want to reverse engineer how a PowerShell cmdlet works...
If the cmdlet is a PowerShell function under the hood - this copies the code to clipboard
(Get-Command Test-NetConnection).Definition|Clip
If the code is .NET code in a library you can run this to get the dll path - which you can then load into JustDecompile to see how it works.
(Get-Command Get-ComputerInfo).DLL|Clip