Simple PowerShell script to move members of one group to be also members of new group that you have just created. I am using this…
View More Copy Group Members from One group to AnotherCategory: How-To
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 PowerShellList 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: 123Import-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 PowerShellFind 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 SchemaPowerShell – 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 informationStop opening Server Manager at logon in Windows Server 2012 R2
The Server Manager wizard provides information of installed roles and features in [easyazon_link identifier=”1118289420″ locale=”US” tag=”wn0d5-20″] Windows Server 2012 R2 [/easyazon_link]. This Server Manager wizard…
View More Stop opening Server Manager at logon in Windows Server 2012 R2How to repair corrupted USB storage and reset to defaults
Whenever I connect my USB to PC it says “you need to format the disk in drive before you can use it”. When I try to format, it shows the disk capacity as 662MB which is the Linux image file size and not the original size of 8GB. How do I format the USB drive and start using it like before?
View More How to repair corrupted USB storage and reset to defaultsRemove 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 [easyazon_link identifier=”1449361420″ locale=”US” tag=”wn0d5-20″] Active Directory [/easyazon_link]. We will remove all…
View More Remove all Group Membership from Disabled user except Domain User Group in PowerShellList Direct Reports to Manager in PowerShell
Here is the task for today to use [easyazon_link identifier=”1787122042″ locale=”US” tag=”wn0d5-20″] PowerShell [/easyazon_link]. I was asked to find the list of employees under a…
View More List Direct Reports to Manager in PowerShellChange or Update UPN for users of specific group in Active Directory
Here is a quick almost one liner in [easyazon_link identifier=”B07883YKV1″ locale=”US” tag=”wn0d5-20″] PowerShell [/easyazon_link] to update/change UPN for users of specific group in [easyazon_link identifier=”1449361420″…
View More Change or Update UPN for users of specific group in Active Directory