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 User Name") Add multiple user…
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 User Name") Add multiple user…
Here are few commands that you can use to view info about BIOS on DELL computers: List manufacture and version of BIOS Get-WmiObject -Class Win32_BIOS | Select-Object Manufacturer, SMBIOSBIOSVersion You…
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 that will list all Departments…
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 $groups){Get-ADGroupMember -Identity $group -Recursive |…
You can gen easily two reports about your laptop battery under Windows 10. Simply press [Windows]+[R] and type [cmd]. Once in command line window you can use these two commands…
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 utility: dsquery * cn=schema,cn=configuration,dc=domainname,dc=local -scope…
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 to set the key. You…
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 into text file for latter.…
Here is quick PowerShell script to remove ALL Group Membership from Disabled user in Active Directory. We will remove all Group membership from this user except Domain User group. So…
Here is quick [easyazon_link identifier="1787122042" locale="US" tag="wn0d5-20"] PowerShell [/easyazon_link] script that provides information on user count in [easyazon_link identifier="1782175997" locale="US" tag="wn0d5-20"] Active directory [/easyazon_link]: Total Number of All user accounts…