Category Archives: File sharing

(re)Setting rights on user home folders [batch script]

After some troubles with copied user home folders during a migration, the rights were set incorrectly. As this was about more than just a handful of users, re-setting the rights manually wasn’t a good idea. After digging around on the … Continue reading

Posted in .bat, Active Directory, batch, command line, File sharing | Comments Off on (re)Setting rights on user home folders [batch script]

User folder displayed as “Documents”: Remove desktop.ini

A users’ folder is displayed as “Documents” and you don’t want that. To e.g. remove desktop.ini files (which are hidden: use -force): Get-ChildItem “\\SERVER\d$\Users\Userdata\” -recurse -filter desktop.ini -force | foreach ($_) {remove-item $_.fullname -force} This deletes all the desktop.ini files … Continue reading

Posted in File sharing, powershell | Comments Off on User folder displayed as “Documents”: Remove desktop.ini