windows - Identifying special folders of other users in powershell -
i have file server hosts users home drives. subset of users have folder redirection folder names called 'my documents' when viewed explorer.
e.g. \auser \buser ... \kuser \my documents \my documents \my documents \nuser ....
powershell seems ignore special 'my documents' name , list real folder name underneath. powershell properties of normal folder , redirected folder seem identical.
how can utilize powershell identify folders have special 'my documents' name?
if looking special redirection folders find in windows 7 user directories @ to the lowest degree need utilize get-childitem
-force
allows cmdlet items cannot otherwise not accessed user, such hidden or scheme files per technet.
get-childitem c:\users\someuser -force | where-object {$_.attributes.tostring().contains("reparsepoint")}
this above homecoming aforementioned folders since have reparsepoint attribute. more info on can located here. bare minimum need -force
think looking for.
windows powershell
No comments:
Post a Comment