Jump to content

Windows 7 renamed our user network folders to my documents


Recommended Posts

Posted
Is there a fix for this yet?

 

Were still having the same problem

 

I just used FSRM to disable the desktop.ini file. Seems to have worked here and I've not seen any real negative effects.

Posted
I just used FSRM to disable the desktop.ini file. Seems to have worked here and I've not seen any real negative effects.

Was the first fix I tried when I was testing 7 during the summer, whenever I did that it would cause logon to hang at "Redirecting folders" for an extra 10/15 seconds per logon.

  • 1 year later...
Posted
No as far as i know, we got round it by deleting all the desktop.ini files on the users homespaces. Then using Windows server file screening prevent users from creating a new desktop.ini file. Its worked for us without any problems.
Posted

Actually I've decided to have a session moving all the user areas.

 

Bit of excel, bit of robocopy and I can move all the data into a drive:\users\username\documents folder fairly quicly and then Win7 can do what it wants.

Posted

I've not seen any ill effects from just setting a logoff script to delete it from My Documents...

On Error Resume Next
Set WSHShell = WScript.CreateObject("WScript.Shell")
Set FSO = CreateObject("Scripting.FileSystemObject")

DocsPath = WSHShell.SpecialFolders("MyDocuments")

If FSO.FileExists (DocsPath & "\desktop.ini") Then
 FSO.DeleteFile (DocsPath & "\desktop.ini")
End If

Unless anyone wants to tell me why that's a bad idea before Win7 goes out over the six weeks.

Posted

We have had windows 7 for over a year now and i have used file screening to prevent it being added. the problem you hae is that is slows login times down considerably.

 

I guess that adding the file name column is the easiest way but we use mandatory profiles so staff will need to do this ebery time.

 

Is there a setting for this in gp.

Posted
I've not seen any ill effects from just setting a logoff script to delete it from My Documents...

On Error Resume Next
Set WSHShell = WScript.CreateObject("WScript.Shell")
Set FSO = CreateObject("Scripting.FileSystemObject")

DocsPath = WSHShell.SpecialFolders("MyDocuments")

If FSO.FileExists (DocsPath & "\desktop.ini") Then
 FSO.DeleteFile (DocsPath & "\desktop.ini")
End If

Unless anyone wants to tell me why that's a bad idea before Win7 goes out over the six weeks.

 

I use this and the adding of the name column.. all works well.

  • 3 weeks later...
Posted

I have decided to go with the sub folder option in the user documents

 

What is the easist way to achieve this.

 

There is a group policy option to prevent student saving to their root folder that i will apply.

 

i want to create a folder called documents and then transfer all the work into that.

Posted
I created a little database that opens the students home folder for the teachers. All they do is put the name in. It took a while to do but as I had excel spreadsheets with all usernames generated on it anyway it's been a useful tools for me too. Added a section so I can get passwords as well as we set them in year 7 for the whole time a student is with us.

 

We have moved all staff/students files from 2003 R2 servers to 2008 R2 making the adjustments below and working fine.

 

1. Manually create a "My Documents" subfolder in the user's home folder. Maybe someone has a script to do this.

2. Move all files into the sub folder.

3. Delete the desktop.ini file at the root of the users home folder. NOTE: This can be tricky on 2008 R2. The "ownership" will mess things up. More steps to take ownership and delete. If scripted much easier.

4. The folder redirect will point to the sub folder. exp=\\servername\share\%USERNAME%\My Documents

 

Since implementing this we have had no issues. Yes it took a lot of work but this is the permanent fix to the issue. I do not see M$ changing this as they see this to be correct 'by design'.

 

Also to check permissions and verify the 'desktop.ini' file does not mess you up use the NTFSFix tool which you can find at WiseSoft - Resources for IT Professionals. This is a creat tool to update/change/add permissions quickly.

 

Bob

Systems Specialist

Posted (edited)

Script to move folders (will need tweaking with relevant details)

 

First grab the details of all your users:

cd \
dsquery user -limit 0 "ou=Students,ou=Users,ou=School,dc=domain,dc=local" | dsget user -hmdir >students.txt

- change the ou= part to reflect your OU structure. I broke it down into staff and students to reduce the load and split the work but you should be able to do the lot at once.

 

Copy and paste the contents of that text file into Excel, tidy it up so you just have a long list of home directory paths. In the second column use =CONCATENATE() to construct the new path, e.g. =CONCATENATE(A2,"Documents/") and drag that down the whole list.

Title the first column oldhmdir and the second column newhmdir

 

Save that as a CSV somewhere onto a domain controller - C:\Scripts\students.csv for example - then open up a powershell on that domain controller. Copy and paste the following code into it:

cd \
cd Scripts\
$inputFile = Import-CSV  C:\Scripts\students.csv 
foreach($line in $inputFile) 
{
   robocopy /move $line.oldhmdir $line.newhmdir /s /MINAGE:1
   Write-Host "`n"
}

The minage is set so it doesn't try and move the new folder (hopefully), other flags listed @ Robocopy

 

It may need some tweaking (I was copying from one location to another, not trying to move content down a level) but the gist of it should be right, anyway. Will save you trawling through hoards of folders. Test it by using a copy of the CSV with all but the top two or three lines deleted so it doesn't take too long to fail or mess too much up.

 

EDIT: @macdaddy - new directories can be created programatically (in PowerShell, at least) with

New-Item $UNC_PATH -type directory

Edited by sonofsanta
Posted
Script to move folders (will need tweaking with relevant details)

 

First grab the details of all your users:

cd \
dsquery user -limit 0 "ou=Students,ou=Users,ou=School,dc=domain,dc=local" | dsget user -hmdir >students.txt

- change the ou= part to reflect your OU structure. I broke it down into staff and students to reduce the load and split the work but you should be able to do the lot at once.

 

Copy and paste the contents of that text file into Excel, tidy it up so you just have a long list of home directory paths. In the second column use =CONCATENATE() to construct the new path, e.g. =CONCATENATE(A2,"Documents/") and drag that down the whole list.

Title the first column oldhmdir and the second column newhmdir

 

Save that as a CSV somewhere onto a domain controller - C:\Scripts\students.csv for example - then open up a powershell on that domain controller. Copy and paste the following code into it:

cd \
cd Scripts\
$inputFile = Import-CSV  C:\Scripts\students.csv 
foreach($line in $inputFile) 
{
   robocopy /move $line.oldhmdir $line.newhmdir /s /MINAGE:1
   Write-Host "`n"
}

The minage is set so it doesn't try and move the new folder (hopefully), other flags listed @ Robocopy

 

It may need some tweaking (I was copying from one location to another, not trying to move content down a level) but the gist of it should be right, anyway. Will save you trawling through hoards of folders. Test it by using a copy of the CSV with all but the top two or three lines deleted so it doesn't take too long to fail or mess too much up.

 

EDIT: @macdaddy - new directories can be created programatically (in PowerShell, at least) with

New-Item $UNC_PATH -type directory

 

Thanks. I achieved this by exporting a user list from ad then using robycopy I then created a and for every user and set it to copy all work into a new documents folder.

 

Got the robocopy commands if anyone wants them

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...