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

Schannel Issue

Indexing Server

oclist /xml or /?