AntiMalware Status

PowerShell – AD Group management

Here are few quick one liners such as add user to 2 AD groups at same time: "Managers","SalesRep" | Add-ADGroupMember -Members ` (Read-Host -Prompt "Enter…

View More PowerShell – AD Group management
AntiMalware Status

Get list of Departments and number of users per Department in PowerShell

I need to create a report from Active Directory. I need to provide list of all Departments and headcount per Department. Here is quick PowerShell…

View More Get list of Departments and number of users per Department in PowerShell
AntiMalware Status

List users from 3 different Active Directory Groups with PowerShell

Here is a quick sample of Power Shell snippet to list users from 3 different Active Directory groups: Import-Module ActiveDirectory $groups = "AWS-IAM-PCI-Prod-Admin","AWS-IAM-PCI-Prod-Deploy","AWS-IAM-PCI-Prod-Monitoring" foreach($group in…

View More List users from 3 different Active Directory Groups with PowerShell
AntiMalware Status

Find out the current version of the Active Directory Schema

Quick one liner to find out current version of the Active Directory Schema on your network especially of you have mix of servers. Using dsquery…

View More Find out the current version of the Active Directory Schema
Windows Server 2019

How to activate Windows Server Core 2019 from command line

After you’ve logged into Windows Server Core, you’re presented with the Command Prompt. From there, you can activate your copy of Windows. First, you have…

View More How to activate Windows Server Core 2019 from command line
Windows 10

Get list of installed software on machine from command line

This is handy command line if you want pull quickly list of installed software on the machine. You can output it in to terminal or…

View More Get list of installed software on machine from command line
AntiMalware Status

Remove all Group Membership from Disabled user except Domain User Group in PowerShell

Here is quick PowerShell script to remove ALL Group Membership from Disabled user in . We will remove all Group membership from this user except…

View More Remove all Group Membership from Disabled user except Domain User Group in PowerShell
AntiMalware Status

Report on user count in Active Directory with PowerShell

Here is quick script that provides information on user count in : Total Number of All user accounts Total Number of Enabled accounts TotalNumber of…

View More Report on user count in Active Directory with PowerShell