Solved

Script to copy roaming profile desktop to a server folder

Posted on 2012-03-15
1
519 Views
Last Modified: 2012-04-03
I need to implement desktop redirection. I'm familiar with how GP works.

However, I first need to copy the desktops from \\srv1\roamprof\user\desktop to \\srv2\home\users\desktop.

What kind of script can I use for that?

Something for then they log in, or something that I can run manually and the users see nothing?

Thank you
0
Comment
Question by:cas_three
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 10

Accepted Solution

by:
Thorrsson earned 500 total points
ID: 37727102
you can create a text file with a list of users and then run something similar to:

get-content c:\users.txt | foreach-object -process {move-item c:\users\$_\ \\srv2\home\users\$_}

You will be copying across the network, so it could be slow and painful...
You can also use something like teracopy
0

Featured Post

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates probably the easiest way to configure domain-wide tier isolation within Active Directory. If you do not know tier isolation read https://technet.microsoft.com/en-us/windows-server-docs/security/securing-privileged-access/s…
Uncontrolled local administrators groups within any organization pose a huge security risk. Because these groups are locally managed it becomes difficult to audit and maintain them.
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
Suggested Courses

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question