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

Powershell – breaking a command down to multilines

So yeah .. I like things to be neat and clean and having a single line command in powershell is the norm for a lot of people. Example: New-MailContact -DomainController $dc -Name $alias.ContactName -ExternalEmailAddress $alias.ExternalEmailAddress -Alias $alias.ContactAlias -FirstName $alias.FirstName -Initials ” -LastName $alias.LastName -OrganizationalUnit $OU But like stated I like… Continue reading