Go Premium for a chance to win a PS4. Enter to Win

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

Creating backup directory and mapping network drive

I have 250 users that are about to begin using their domain login.  I wanted to create a directory for each user based upon their SamAccountName (\\server\$SamAccountName) and then map a network drive and put that shortcut on the desktop for them.  I installed Quest Active Directory tools.  I would appreciate any help.
0
LrdKanien
Asked:
LrdKanien
  • 3
  • 2
  • 2
  • +3
3 Solutions
 
Chris StauntonCommented:
ADUC does the folder creation for you if you have access to it.  Just select all users, right click and select properties, choose Profile and modify their Home Folder, you can even map their network drive by choosing Connect and specify the drive letter that you want their user mapping to point to.

IE:  U:  To  \\server\%username%

As for the shortcut you could create a login script that does that or set a group policy setting that maps their home folder to their "My Documents" directory.  

Shooter
0
 
LrdKanienAuthor Commented:
What does it put in the home folder by default? (if anything)
0
 
mds-cosCommented:
You can also accompliish what you want by using Active Directory Group Policies (then you don't have to touch each user).  Just turn on folder redirection under User Configuration/Folder Redirection!  You can configure so that every user gets a seperate folder under the network share with permissions set for only them to access.  The "My Documents" becomes their "shortcut".
0
Ready for your healthcare security check-up?

In the past few years, healthcare organizations have become a prime target for advanced attacks. Does your organization have what it needs to defend itself? Schedule your healthcare security check-up today and download our free Healthcare Security Resource Kit today!

 
LrdKanienAuthor Commented:
mds-cos - What about in the case of a laptop?  What would the experience be like if the desktop and documents were redirected to a file server.
0
 
Chris StauntonCommented:
Well the "desktop" wouldn't be redirected to the server, just the link to the My Documents folder, and in the case of a laptop that gets disconnected from the network, you could always setup File Sync to allow users to work on files while they are not on the network and merge those files back when they reconnect to the network.
If you are wanting desktop contents to be copied to a machine every time they log into the network then you might want to look at "Roaming Profiles" and what can be done with those and how to configure them.

Shooter
0
 
daveTechSearchCommented:
haven't tested this... but something like this could work:


get-qaduser * -sizelimit 0 | foreach { if (!(Test-Path -path \\SERVER\share\$($_.logonName))) {New-Item \\SERVER\share\$($_.logonName) -type directory}} |  %{
 set-qaduser $_ -HomeDirectory "\\SERVER\share\$($_.LogonName)" -HomeDrive "P"}

Open in new window

0
 
ArmenioCommented:
0
 
ArmenioCommented:
home folder by default is basically your my documents
0
 
mds-cosCommented:
No problem in case of laptop.  The way it works is a copy of files is placed on the comptuer and on the server (there are options that can be set to prevent this, but just leave default and this is how it will work).

When a user logs on or off, the files are synchronized between the server and the PC.  In case of a laptop, if the user takes the laptop on a trip the local copy will be used.  When the laptop is put back onto the network any changes will be synced up with the server.

For user experience, the user will have a "synchronizing" message when they log on or off.  Also of important note is that certain file types (like databases) do not synchronize by default.  They will produce an error stating that the file cannot be synchronized.
0
 
LrdKanienAuthor Commented:
Accepted.
0
 
Chris DentPowerShell DeveloperCommented:
This question has been classified as abandoned and is being closed as part of the Cleanup Program.  See my comment at the end of the question for more details.
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

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