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:
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!
Last edited by link470; 11th July 2008 at 02:51 AM.
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?
Code: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
I had to add a space after CATEGORY at the end of the file to make it work.
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!
Code:Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] "RasDisable"="1"
The .adm template seems a bit random and only works when it feels like it as far as i can tell.
WOW...Originally Posted by somabc
lol. That worked perfectly. Thanks :P
Excellent call on that, I like it.Originally Posted by Michael
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.Originally Posted by cookie_monster
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"
Code: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
In a VB Script?
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?
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)