link470 Posted December 14, 2007 Posted December 14, 2007 (edited) So lets admit it. Probably a good number of us have had someone come up to us saying "I can't login" and it turns out they're trying to login to the local machine and didn't change the drop down box to your domain. What I'd like to do, is have a default domain appear in that box. I found a good article on Microsoft on how to do this: http://www.microsoft.com/technet/abouttn/flash/tips/tips_080305_2.mspx There's only one problem. The simple 8 line script they use errors out on line 8 when you try to import it as a template in a GPO. It says that it's expecting CATEGORY, and it found CATEGOR...doesn't make any sense. The two places that script says category, both say category in my script. I didn't miss a letter. Anyways, if anyone has a better idea on how to do this, or have come across that error before while trying to create that GPO, please let me know! Thanks! Edited July 11, 2008 by link470 3
Guest monkeyx Posted December 14, 2007 Posted December 14, 2007 This is our adm for default domain. If you posted yours may be able to help diagnose? Is your an exact copy of MSN adm as well? CATEGORY "Logon Settings" KEYNAME "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" POLICY "Default Domain" PART "Default Domain" EDITTEXT VALUENAME "DefaultDomainName" END PART END POLICY END CATEGORY
somabc Posted December 14, 2007 Posted December 14, 2007 I had to add a space after CATEGORY at the end of the file to make it work. 2
Michael Posted December 14, 2007 Posted December 14, 2007 I've rarely had this problem, but on the subject of the domain logon window, the more common problem I have is users ticking the "Log on using dial-up connection" box. This reg file greys out the box making it impossible to tick. Very handy and logon problems have reduced considerably! Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] "RasDisable"="1" 2
cookie_monster Posted December 14, 2007 Posted December 14, 2007 The .adm template seems a bit random and only works when it feels like it as far as i can tell.
link470 Posted December 14, 2007 Author Posted December 14, 2007 I had to add a space after CATEGORY at the end of the file to make it work. WOW... just WOW... lol. That worked perfectly. Thanks I've rarely had this problem, but on the subject of the domain logon window, the more common problem I have is users ticking the "Log on using dial-up connection" box. This reg file greys out the box making it impossible to tick. Very handy and logon problems have reduced considerably! Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] "RasDisable"="1" Excellent call on that, I like it.
link470 Posted December 17, 2007 Author Posted December 17, 2007 The .adm template seems a bit random and only works when it feels like it as far as i can tell. From what I've seen, it can take a few seconds for the policy to load. I've tested it and hit control+alt+delete to login and it's the local machine. I try again 5 seconds later [literally] and it's set to our domain. So what I'm going to try to do is just set the GPO to wait until all policies are loaded until the login window comes up.
srochford Posted December 18, 2007 Posted December 18, 2007 We use this subroutine in the machine startup script - replace "student" with the name of your domain. It sets the default logon domain and then hides the dropdown (it will appear if you click options or you ge the password wrong) it also makes the default option at shutdown change to "logoff" sub SetLogonOptions sRegPath="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\" o=oShell.RegWrite(sRegPath & "DefaultDomainName","STUDENT","REG_SZ") o=oShell.RegWrite(sRegPath & "ShowLogonOptions", "0","REG_DWORD") o=oShell.RegWrite(sRegPath & "LogoffSetting", "0","REG_DWORD") end sub
djones Posted February 7, 2008 Posted February 7, 2008 We use this subroutine in the machine startup script - replace "student" with the name of your domain. It sets the default logon domain and then hides the dropdown (it will appear if you click options or you ge the password wrong) it also makes the default option at shutdown change to "logoff" sub SetLogonOptions sRegPath="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\" o=oShell.RegWrite(sRegPath & "DefaultDomainName","STUDENT","REG_SZ") o=oShell.RegWrite(sRegPath & "ShowLogonOptions", "0","REG_DWORD") o=oShell.RegWrite(sRegPath & "LogoffSetting", "0","REG_DWORD") end sub I'm trying to implement something similar to this (adding some other reg entries too) but I can't seem to work out how to add it to an existing script - I use one to install printer drivers at startup due to restricted user permissions. Can anyone point me in the right direction? Dave.
ZeroHour Posted February 7, 2008 Posted February 7, 2008 Just FYI if someones advice helps you click the "thanks" button and add to there reputation and it tells other users that the solution helped you.
djones Posted February 8, 2008 Posted February 8, 2008 Just FYI if someones advice helps you click the "thanks" button and add to there reputation and it tells other users that the solution helped you. That's great and i have started to do that where appropriate but I'm still trying to work this out. Can anyone help with adding reg edits via startup and logon scripts or i suppose call .reg files from vb scripts? Dave
plock Posted February 8, 2008 Posted February 8, 2008 @djones - cmd /c regedit /s \\servershare\servername\key.reg Is that what you mean?
djones Posted February 8, 2008 Posted February 8, 2008 @djones - cmd /c regedit /s \\servershare\servername\key.reg Is that what you mean? Yeah, something like that. Would I need to wrap any commands around that line or could that be added, standalone, in an existing vbs login script? Edit: The /s switch I assume means 'silent' but what does the /c relate to - 'computer'?
djones Posted February 8, 2008 Posted February 8, 2008 Edit: The /s switch I assume means 'silent' but what does the /c relate to - 'computer'? Ignore that last edit. The /c switch means 'create' or 'replace' registry keys. Derr.
morganw Posted November 2, 2009 Posted November 2, 2009 Just spent a while trying to make a RasDisable adm, i'm a bit of an AD rookie but it seems work ok. CATEGORY "Logon Settings" KEYNAME "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" POLICY "RasDisable" VALUENAME "RasDisable" VALUEON "1" VALUEOFF "0" END POLICY END CATEGORY
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now