Skip to main content

A simple Batch File script


If you read this post, that's mean the "End of Days" is a HOAX! Moving on.

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  M: \\KINGdotNET\Marketing
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 M: "\\KINGdotNET\Marketing" /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.

Comments

Popular posts from this blog

Office365 - This resource doesn't accept meetings longer than 1440 minutes

When you create a meeting schedule for number of days, you will see an error  "This resource doesn't accept meetings longer than 1440 minutes". By default the mailbox or room was set for a maximum limit of 1440 minutes.

Here's how you can disable this limit.
Login to the Office 365 Administration ConsoleIn Microsoft Office 365 Exchange, click on Manage.In Manage My Orgnization, click the drop down arrow, and click on Select on Another User. This will prompt you to select the mailbox or room to manage.Select a Mailbox or Room, click OK.In Option, click on Settings.In Scheduling Options, un-check the "Limit meeting duration", then click on Save. That's all. You can now schedule a meeting or reserve a room for number of days.

Hope this help you.

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

Out of Office Reply for Termed Employee

This is a sample Out of Office message that I used for termed employees, unless HR staff specified a different message.

=== Example for KING.NET Employee ===
John Doe (employee or consultant) is no longer with KING.NET effective June 1, 2013 (termination date). For matters relating to "Project Name here" please direct your concerns to John Smith at johnsmith@king.net (Manager or Supervisor). For all other matters, please direct your email to Mary Smith HR at marysmith@king.net.

Please call our main office 703-345-6789 if you have other concerns.
Thank you.

=== End of message ===

I posted this article year 2008 from my old blog.
http://whaddya.blogspot.com/2008/11/example-of-out-of-office-reply-for.html


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

Facebook Business Valuation

Interesting post from Techcrunch.com about the Facebook valuation and I would like to share this to you folks. The picture graph provide a thousand words to fully explain their growth. Please click the image to see in full screen.