Showing results for PowerTip - Scripting Blog [archived]

Jul 31, 2019
Post comments count0
Post likes count0

PowerTip: Identify the last time a User was Synchronized to AzureAD

Doctor Scripto
Doctor Scripto

Summary: Use PowerShell to identify the property in AzureAD with the Synchronization time in AzureAD Hey, Doctor Scripto. Is there a way with PowerShell to identify when a user was last synchronized with AzureAD? Absolutely! We just need to examine the LastDirSyncTime when using the Get-Msoluser cmdlet. Here’s an example below (Get...

PowerTipPowerShellDoctor Scripto
Nov 13, 2018
Post comments count0
Post likes count1

PowerShell PowerTip: Customizing your prompt

Kory Thacher
Kory Thacher

I've been taking a break from the blog for a while due to some personal reasons, but I had a few people ask me about my PowerShell prompt recently. I like extra horizontal space, so I removed the path from the prompt and put it in the window title bar. I also just display the current time in the prompt itself. ...

PowerTipPowerShellkoryt
Aug 21, 2018
Post comments count0
Post likes count1

PowerShell PowerTip: searching and installing modules on the command line

Kory Thacher
Kory Thacher

PowerShell 5+ ships with the module PowerShellGet, which lets us search and install modules from cmdlets. The default nuget repository is the PowerShell Gallery, but you could add others yourself (including custom ones for internal modules). There are a lot of reasons this could help you: There are a lot of cmdlets in the module, but th...

PowerTipPowerShellkoryt
Aug 7, 2018
Post comments count0
Post likes count0

PowerShell PowerTip: History of commands with PSReadline

Kory Thacher
Kory Thacher

One of the really cool things PSReadline provides (module shipping on v5+) isn't as immediately obvious as the syntax highlighting. It offers a persistent history that is stored from session to session. This means if you run commands in a window, close it, and open a new one later you can still hit the up arrow and scroll through them. I use thi...

PowerTipPowerShellkoryt