Security 101 – Basic things a SysAdmin can do to better secure their environment(s) – Part 1 – LAPS

So the thought behind these Posts are to offer very basic things that System Administrators (you) can do to help secure the network. These are things I see time and time again when doing Assessments and worse, Incident Responses. I will try to break these down in SysAdmin talk and… Continue reading

Create SPN for Running PowerShell into Azure as Scheduled Task

So yes, It has been 2 years since I posted <sigh> You would think with Covid I would have been all over this, but well .. we all agree that time of our lives sucked and here we are. As we have all had, I recently had the requirement to… 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 “*”} you can use a question mark Get-Mailbox * | ? {$_.EmailAddress -like “*”} Some others I often use: Format-List = FL Format-Table = FT Get-Item = gi Export-CSV = epcsv Import-PSSession = ipsn Add-PsSnapIn =… Continue reading