Link to home
Start Free TrialLog in
Avatar of downtownva
downtownva

asked on

SBS Logon Script

I have an SBS 2003 server.  Currently when you logon to the domain network drives are mapped to the computer and the home page is set.  I need to change the mapped drives, and change the home page.  How do I edit the script or policy in place?
Avatar of Jeffrey Kane - TechSoEasy
Jeffrey Kane - TechSoEasy
Flag of United States of America image

The script can be found here:  \\<servername>\netlogon

It is suggested that you create a separate batch file for mapping the drives and then use the CALL command within the SBS_LOGIN_SCRIPT.bat file.  Do not delete the line that's already in that file or you will lose the ability to manage your workstations from the Server.... such as setting the home page as described below.

To change the homepage, you need to modify this file:  \\<servername>\clients\Setup\install.ins
Open it with Notepad and change the homepage to anything you like.  The change will take place the next time a person logs onto the workstation.

Jeff
TechSoEasy
Avatar of downtownva
downtownva

ASKER

The only line in the batch file SBS_Logon_Script.bat is


\\TOASBS\Clients\Setup\setup.exe /s TOASBS

and the install.ins files does not reference the current home page.
\\TOASBS\Clients\Setup\setup.exe /s TOASBS is the correct line to keep in it's place. Don't delete that.

And the default configuration of the install.ins file should look like this (SBS being the name of your server):

[Branding]
Type=2
Wizard_Version=6.00.2800.1106
Language Locale=EN
Language ID=1033
Platform=2

[URL]
Home_Page=http://companyweb
Quick_Link_1_Name=Microsoft bCentral.url
Quick_Link_1=http://www.bCentral.com
Quick_Link_2_Name=My company's internal Web site.url
Quick_Link_2=http://companyweb
Quick_Link_3_Name=Remote E-mail Access.url
Quick_Link_3=http://SBS/exchange
FirstHomePage=http://companyweb
AutoConfigJSURL=http://companyweb

[Proxy]
HTTP_Proxy_Server=
FTP_Proxy_Server=
Gopher_Proxy_Server=
Secure_Proxy_Server=
Socks_Proxy_Server=
Use_Same_Proxy=0
Proxy_Enable=0
Proxy_Override=
AutoDetect=0

[FavoritesEx]
Title1=My company's internal Web site.url
URL1=http://companyweb
Title2=Information and Answers.url
URL2=http://SBS/clienthelp
Title3=Remote Server Management.url
URL3=http://SBS/tsweb/Default.htm?AutoConnect=1
Title4=Microsoft Small Business Server Website.url
URL4=http://www.microsoft.com/sbserver
Title5=Remote E-mail Access.url
URL5=http://SBS/exchange


Does yours look different?

Jeff
TechSoEasy
I agree the the line \\TOASBS\Clients\Setup\setup.exe /s  is correct in the batch file,  the part I don't see in the batch files is the CALL command.  So I don't see how the systems are receiving the mapped drive info.

My install.ins does look like this one, but it does not reference the url we use for internal intranet. So I don't know where the computers are getting this information.
No, there isn't a call command you would need to create that.  CALL is a batch file command that will call up another batch file.  What I'm suggesting is that you write a separate batch file for the mapping which contains the following line:

net use X: \\TOASBS\ShareName


Where X: is the drive you want to map to, and ShareName is the name of your share.  Then save the batch file in the same directory as SBS_Logon_Script.bat and call it drivemap.bat

Then, add this line to the SBS_Logon_Script.bat

CALL \\TOASBS\NetLogon\drivemap.bat

There is a good overview of this here:  http://msmvps.com/blogs/kwsupport/archive/2004/11/03/17830.aspx#38710

As for the install.ins, are you saying that there is NOT a line:

[URL]
Home_Page=http://companyweb  ???

If there isn't then someone has probably created a group policy to change this behavior because that line is created when you run the Configure Email and Internet Connection Wizard (CEICW) .  You can rerun the wizard to see if it will generate the install.ins file.

But, at any rate, a Group Policy would override that setting... so you can just create a new GPO for your homepage assignment and delegate it to whatever OU you like... (all users are in MyBusiness\Users\SBSUsers)

Jeff
TechSoEasy
I don't think I was clear.  

I do not want to know how to create maps.  I want to find the script or source that is currently in place tellling the machines which drives to use.  we have maps in place, that are loaded with every machine including new ones.  so I need to know how to change what is already in place.
ASKER CERTIFIED SOLUTION
Avatar of Jeffrey Kane - TechSoEasy
Jeffrey Kane - TechSoEasy
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial