Solved

Script to copy roaming profile desktop to a server folder

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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
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 the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

729 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