Search through previous powershell commands with grep

By admin

It can be really difficult trying to remember that command you used a few weeks ago in Powershell.  Here’s an easy way to search through your previous commands to find the right one and jog your memory. First, run [cc lang=”powershell”](Get-PSReadlineOption).HistorySavePath C:\Users\username\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadline\ConsoleHost_history.txt[/cc] Then you can cat the output to look for the command [cc lang=”powershell”]cat…

Confused about deprecated O365 commands?

By admin

I was getting pretty confused with the various options around powershell commands to use with Exchange online.  For example, to add a user to a distribution group in O365, I had come across 4 different commands: [cc lang=”powershell”]Add-AzureADGroupMember Add-AzureRMADGroupMember Add-DistributionGroupMember Add-MsolGroupMember[/cc] So after some digging I realised that the *-AzureRM* are powershell cmdlets to modify…