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?
ASKER
The only line in the batch file SBS_Logon_Script.bat is
\\TOASBS\Clients\Setup\set up.exe /s TOASBS
and the install.ins files does not reference the current home page.
\\TOASBS\Clients\Setup\set
and the install.ins files does not reference the current home page.
\\TOASBS\Clients\Setup\set up.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.1 106
Language Locale=EN
Language ID=1033
Platform=2
[URL]
Home_Page=http://companyweb
Quick_Link_1_Name=Microsof t 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
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.1
Language Locale=EN
Language ID=1033
Platform=2
[URL]
Home_Page=http://companyweb
Quick_Link_1_Name=Microsof
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
ASKER
I agree the the line \\TOASBS\Clients\Setup\set up.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.
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
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
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
ASKER
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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\Set
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