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
AntiMalware Status

PowerShell – Get user’s Manager, Department and Title information

Here is another quick helper for Help Desk guys to pull quickly information about user in PowerShell: SamAccountName Title Department Manager In this case the…

View More PowerShell – Get user’s Manager, Department and Title information
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
AntiMalware Status

List Direct Reports to Manager in PowerShell

Here is the task for today to use . I was asked to find the list of employees under a specific manager. In you can…

View More List Direct Reports to Manager in PowerShell
AntiMalware Status

Change or Update UPN for users of specific group in Active Directory

Here is a quick almost one liner in to update/change UPN for users of specific group in . Lets say we need to change UPN…

View More Change or Update UPN for users of specific group in Active Directory
Google Chromebook

How to install PowerShell on Google Chromebook Linux mode

Here is quick code for installation of PowerShell on Google ChromeBook Pixel when support is turned on: sudo apt install curl gnupg apt-transport-https liblttng-ust-ctl2 liblttng-ust0…

View More How to install PowerShell on Google Chromebook Linux mode