List all users with a roaming profile (PowerShell)

by itwebresources on December 3, 2012

roaming profiles win2008r2 List all users with a roaming profile (PowerShell)Scan your entire domain and list all the users account with a roaming profile and export them to csv file.

Prerequisite:


How To:

  1. Run ActiveRoles Management Shell for Active Directory. You will need to be login or Run As with an account that have enough rights to read all users account in ADUC
  2. Run this PowerShell command:
Get-QADUser -sizelimit 0 | where {$_.profilepath -ne $NULL} | Select-object SamAccountName,profilepath | export-csv c:UsersProfiles.csv

The command might take a long time to run depending on the size of your active directory database. Once the command is completed you will find a file called UserProfiles.csv at the root of your C drive. This file will have 2 columns: samAccountName and ProfilePath.

Share this article

{ 2 comments… read them below or add one }

Roy35 May 19, 2013 at 4:54 am

Fantastic it works but only after you install Quest Software PowerShell CMDLET’s

thank you

Reply

itwebresources itwebresources May 19, 2013 at 5:03 am

You welcome Roy I’m glad it helped.

Reply

Leave a Comment

Previous post:

Next post: