Script to query if an AD user has a roaming profile configured.


i need script that will query active users in a 2008r2 active directory environment , check whether or not roaming profile configured.  newbie when comes scripting if there can assist, appreicate it.

thank you,

here version retrieves users , outputs samaccountname , either true (if profilepath starts "\\" indicating unc path) or false (if profilepath has no value local path). 1 line:

get-aduser -filter * -properties profilepath | select samaccountname, @{name="roaming profile"; expression={$_.profilepath -like "`\`\*"}}

-----



richard mueller - mvp directory services



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Group Policy Event ID 1058 Error Code 1326 (The user name or password is incorrect)

Suspicious event log Event ID: 4905

DCOM received error "2147746132" from...