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
Solved

Script to copy roaming profile desktop to a server folder

Posted on 2012-03-15
1
516 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
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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
This article outlines the process to identify and resolve account lockout in an Active Directory environment.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

861 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