Jump to content

Recommended Posts

Posted

Hi All,

 

Wonder if anyone can explain this and if possible how to fix.

 

Every now and again when I look at users home directory folder on the server some of the folders have been renamed Documents instead of the users .

 

Up until now I have just looked at the properties of the each users folder and reset the name and changed the icon back to the default yellow icon.

 

Can anyone point in the right direction for fixing the issue.

 

Image is attached of my users folders. Names hidden of course.

 

users folder.png

 

Any help would be welcomed.

 

Thanks:)

Posted

Is that desktop.ini, anywhere on the server or within each users home folder? would need to look up FSRM first never used it before.

 

Thanks

Posted

its in every folder thats renamed documents so if your users are

 

d:\users\staff\fred

d:\users\staff\freda

d:\users\staff\john

....

 

there will be a desktop.ini file in each one

 

d:\users\staff\fred\desktop.ini

d:\users\staff\freda\desktop.ini

d:\users\staff\john\desktop.ini

....

  • Thanks 2
Posted

You can use powershell to delete the desktop.ini

 

get-childitem D:\Users -filter desktop.ini -force -recurse | foreach ($_) {remove-item $_.fullname -force -whatif}

 

Replace D:\Users with the path to your users. -Whatif allows you to test the script without actually deleting anything and shows you what would have happened if allowed to run correctly. Once your happy with it, change -Whatif to -Verbose that way you can see files as they being deleted.

  • Thanks 2

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...