sample log on script to add network drive and shortcut

March 24, 2009

I am posting a working bat file to automate network drive and shortcut for AD users. This bat file works excellent if you desire to push network drive through AD logon script. You can copy these in a notepad and save it as filename.bat  and put this bat file  in \\yourserver\sysvol\yourdomainname\scripts  folder.

Here is sample file.

@echo off

echo !   _________________________     !  

echo !                                 !

echo !    MAPPING NETWORK DRIVES       ! 

echo !                                 !  

echo !    * * * LEAVE OPEN * * *       ! 

echo !  OR IT WILL NOT MAP YOUR DRIVES ! 

echo !                                 ! 

echo !  _________________________      ! 

net use r: \\yourserver\data

REM

copy “\\yourserver\data\Shortcuts\company policy.lnk” “C:\Documents and Settings\%username%\Desktop\”

Here \\yourserver\data is the path of the folder. Make sure you got appropriate permission setup in network drive i.e. NTFS permission applied in the folder you want to use as network drive. Now go to Active Directory users and computers. Select number of users or individual user and right click on selected and click on to properties. Go to profile and type filename.bat  in log on script box.


slow internet behind ISA 2004

March 24, 2009

I was stuck with my internet and ISA2004. I got ISA 2004 that work as proxy and web filter in my organisation. I found very slow internet after installing ISA 2004. But I found faster internet speed if I bypass ISA. I have AD and DNS installed in my current work place.

Here is a clue I google and found in microsoft.com. You may experience slow internet behind ISA 2004 with SP2 or SP3. This happens when you have a DNS server in internal network and ISA 2004 try to resolve external address in that DNS server. It takes too long to browse yahoo or google or any sites. This may occur even you have configured allow HTTP/HTTPS or routing rules.

Microsoft released a script that help you to resolve this issue. Before you apply this script please make sure you dont install ISA server in a domain controller. Also dont install ISA 2004 in a server that got DNS, DHCP, IIS or WINS installed. Try to install in a seperate box. Do not install any third party application that may use port 80, 443 and other port. make sure you have correct internal and external IP configured. proper routing must be in place such as gateway. confgiure you desired allow rules in ISA. After all these  if you find a slow internet then go ahead with these script. copy the script in a notepad and save it as filename.vbs in c drive and run it. it will take while to finish.  wait and it will popup done. now you test your internet.

You can get the script from http://support.microsoft.com/kb/839510/en-us?spid=2108&sid=global


Follow

Get every new post delivered to your Inbox.

Join 344 other followers