‘ls’ is not recognized as an internal or external command

Yeah .. we all do it, admit it or not. But I am tired of doing it so here is my work around. Create a file called ls.bat In the file put just dir Save that file to a folder in your System Path I saved to c:\users\<user>\AppData\Local\Microsoft\WindowsApps Alternatively you… Continue reading

Get-ADGroupMember : The size limit for this request was exceeded

This is due to a limit with Get-ADGroupMember having a 5k limit, so this is telling you that the group you are trying to get members from has more than 5k Members. To get around this you can use this Myself I ran it as such so I can do… Continue reading

o365 Domains – Possible Service Issues

These are just annoying, Everything works but we still have domains that show up as “Possible Service Issues” in the Domain setup in o365. I know there are no issues, you know there are no issues, but heaven forbid someone that doesn’t know what they are looking at sees it…. Continue reading

Powershell – Getting Formatted Date Info

This is a simple one, want to get today, yesterday, last month or last year .. try this $Date = Get-Date $Today = $Date | Get-date -Format MM/dd/yyyy $Yesterday = $Date.AddDays(-1) | Get-Date -Format MM/dd/yyyy $LastMonth = $Date.AddMonths(-1) | Get-date -Format MM/dd/yyyy $LastYear = $Date.AddYears(-1) | Get-Date -Format MM/dd/yyyy You… Continue reading

Quick Powershell ShortCut

Shortcut If you are using the where command Get-Mailbox * | Where-Object {$_.EmailAddress -like “*something.com”} you can use a question mark Get-Mailbox * | ? {$_.EmailAddress -like “*something.com”} Some others I often use: Format-List = FL Format-Table = FT Get-Item = gi Export-CSV = epcsv Import-PSSession = ipsn Add-PsSnapIn =… Continue reading