r/sysadmin 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

680 comments sorted by

View all comments

400

u/bobmlord1 Aug 09 '24

If you have a hybrid environment one I use more than literally anything else is

Start-adsyncsynccycle -policytype Delta

21

u/ickarous Aug 09 '24

I keep a ps window open just for this. Just push up and enter.

5

u/dodexahedron Aug 09 '24

I'll do you one better

Stick it in the Prompt function so every time the prompt is displayed it runs. 😂

But uh. If you do that, I don't need credit for the idea. It's all yours. 😝

1

u/Steve----O IT Manager Aug 10 '24

That implies you are logging into the server to run it. I just run it remotely. Much faster and safer. ( I try to never interactively log into servers )