Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.2 KB

README.md

File metadata and controls

38 lines (25 loc) · 1.2 KB

Powershell

Powershell Functions that I use regularly at work. I've appropriately redacted them so that there is no identifying information present.

Cmdlets

Connect-SCCM

Imports Configuration Manager Module and Maps PSDrive to Primary server enabling SCCM cmdlets to be utilised.

Get-ADComputerOwner

Gets the owner of the Computer object from the ACL of the AD Object.

Get-ADExistence

Gets whether a computer AD object exists for a given machine name.

Get-ADLocalAdminGroup

Checks AD to see if a Local Admin Group exists for the corresponding computer account and it's members.

Get-ADUserAzure

Checks AzureAD using UPN from on-premises Active Directory account

Get-ADUserOwner

Gets the owner of the User object from the ACL of the AD Object.

Get-CMUserPrimaryDevice

Connects to SCCM and obtains a users primary device from the SMS database.

Get-FSMORoleLocations

Gets the servers which hold FSMO roles in domain.

Get-FSRM

Gets File Screen Monitoring filetypes from public API for recent ransomware attacks.

Get-O365Licenses

Gets the O365 license count and usage for SKU.

Search-GPOsForStringReturnAll

Searches Group Policy Objects for a provided string