Category Archives: File sharing

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