Batch File for automation.

Posted by EM MAJ_COM On Thursday, December 20, 2012
The batch file e.g. login.bat to automate the network drives assignment still working in the modern version of Windows Server 2008 or DataCenter. Just to remind me of this simple batch file, here's a simple code. I know you can get something similar if you search the Internet.

== This batch file will set up drive mappings for most user accounts. 

echo H: \\KINGdotNET\HR
echo J: \\KINGdotNET\Accounting
echo N: \\KINGdotNET\Contracts
echo O: \\KINGdotNET\Operations
echo P: \\KINGdotNET\Proposal
echo S: \\KINGdotNET\Shared Data
echo U: \\KINGdotNET\data\users\%username%

ECHO Now setting the drive mappings for username: %username%

echo on
net use H: "\\KINGdotNET\HR" /persistent:YES
net use J: "\\KINGdotNET\Accounting" /persistent:YES
net use N: "\\KINGdotNET\Contracts" /persistent:YES
net use O: "\\KINGdotNET\Operations" /persistent:YES
net use P: "\\KINGdotNET\Proposal" /persistent:YES
net use S: "\\KINGdotNET\Shared Data" /persistent:YES
net use U: "\\KINGdotNET\data\users\%username%" /persistent:YES

The batch file should be located (saved) in the following folder:
%SystemRoot%\SYSVOL\sysvol\<domain DNS name>\scripts

Then add the login.bat to the user profile.

I hope this help.

If this helped you, please take the time to share this post by sharing using Google+, Facebook, or Twitter.

Related Posts :



0 Response to "Batch File for automation."

Post a Comment

First things first: Connect through one of the following social media tools below:
Enter your email address:
Subscribe to KING.NET by Email http://www.twitter.com/kingnet
http://www.randompage.com/profile/king
Moscom.com Web Hosting 24x7 Phone Support. The ultimate in performance, control, and convenience.

Get a Free Bitcoin

NeedName.com - Domain Name Registration and DNS Management.
Breeder.co - All about Pets.
Pet By OWner.
Moscom.com Web Hosting, SSL, Email, DomainName, and Dedicated Server.
For Ad Campaign, please send email to Support[@]Whaddya.com. Thank you.