Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 455
  • Last Modified:

Icacls & moving folders

I am faced with the following:

Users my documents folders have bean redirected to:

1)      \\myserver\departments\<department name>\users\%username%\My Documents

I want to tidy this up to

2)      \\myserver\users\%username%\My Documents

By moving the folders from location 1 to location 2

 I do not have F permission for a lot of <department name> folders so my thinking is:

Step 1 Take ownership of \\myserver\departments\<department name>\users folder
Step 2 Grant administrator F to \\myserver\departments\<department name>\users folder
Step 3 Move \\myserver\departments\<department name>\users\* to  myserver\users\*
Step 4 Set F for administrator and User on \\myserver\users\%username%\

I am going to do this one department at a time

So I am using

icacls A:\Departments\IT\Users\ /setowner domainname\administrator /T /C

And my problems are

It iterates only trough the first %username% folder in D:\Departments\IT\Users\

I get

My Music: Access is denied.
My Pictures: Access is denied.
My Videos: Access is denied.

help with compleating the full task for 500 points
0
spd21
Asked:
spd21
  • 2
1 Solution
 
Jim P.Commented:
You may want to look at robocopy or "Robust File Copy" -- command line utility from the Server Resource Kit.

http://technet.microsoft.com/en-us/magazine/2006.11.utilityspotlight.aspx

http://en.wikipedia.org/wiki/Robocopy
0
 
Jim P.Commented:
Glad to be of assistance. May all your days get brighter and brighter.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now