Archive for February, 2015

Quick Post: Get Login Script for Users

February 12, 2015 Leave a comment

Get-ADUser -Filter * -SearchBase “DC=domainname,DC=com” -properties ScriptPath | select Name,ScriptPath


Music Signs in Microsoft Word

February 8, 2015 Leave a comment

To type a flat sign (♭) type 266d then press Alt+X.

To type a natural sign (♮) type 266e then press Alt+X.

To type a sharp sign (♯) type 266f then press Alt+X.

Categories: Computers, Music Tags:

Quick Post: Count users in an OU structure in AD

February 5, 2015 Leave a comment

Get-ADUser -Filter * -SearchBase “OU=Users,OU=Company,DC=domain,DC=com” | Measure

You’ll get something like this.

Count    : 377
Average  :
Sum      :
Maximum  :
Minimum  :
Property :

Quick Post: Get a user’s group membership via PowerShell

February 4, 2015 Leave a comment

Get-ADPrincipalGroupMembership -Identity USERNAME | select name


Get-ADUser -Identity USERNAME -Properties MemberOf | Select -ExpandProperty MemberOf

%d bloggers like this: