954,315 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

GPO Drive Map based on COMPUTER name

Hello,
I am wondering if it is possible to do a GPO Drive map based on the computer name, rather than the user name. I would like to do this to set up a backup share for each computer where I can place the backup files.

ex. COMPUTER1 would be mapped to \\fileserver\backups\COMPUTER1

mdm7923
Newbie Poster
21 posts since Feb 2009
Reputation Points: 11
Solved Threads: 2
 

I don't see why not. COMPUTERNAME is a system variable. I'm not 100% about mapping drives with the variable, but you can try it anyway.

It would be something like \\fileserver\backups\%COMPUTERNAME%

CimmerianX
Junior Poster
170 posts since Jul 2010
Reputation Points: 22
Solved Threads: 29
 

So simply, it would just be a GPO on Domain Computers that says to map drive X to \\servername\sharename\%COMPUTERNAME%?

mdm7923
Newbie Poster
21 posts since Feb 2009
Reputation Points: 11
Solved Threads: 2
 

I have a hunch that you may have to make that a batch file and use a GPO to run the file at logon. I've done similiar stuff with user home directories in VBS so it can't be much different.

CimmerianX
Junior Poster
170 posts since Jul 2010
Reputation Points: 22
Solved Threads: 29
 

Well, it was easy enough. No batch file needed. was just able to map the drive to \\SERVER\Backups\%COMPUTERNAME% within the GPO Manager in 2k8 R2.

Gotta love environment variables :)

mdm7923
Newbie Poster
21 posts since Feb 2009
Reputation Points: 11
Solved Threads: 2
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You