Page 1 of 1 1
Topic Options
#158194 - 2006-03-02 09:57 PM Change HKLM key upon boot up
Dmartin05 Offline
Fresh Scripter

Registered: 2006-02-01
Posts: 49
Hello my peeps!
I am trying to find out how to change the following reg key from a 1 to a O.
Here is the scenario:
When ever I unjoin a pc from the domain using this kix script from a previous post and then try to join it again, it changes my HKLM\System\CurrentControlSet\Control\LSA Forguest from a 0 to a 1. I don't know why it does this but it does. I need to have a way upon boot after joining the domain to AutoLogin and Run a script to change the 1 to a 0.
I already have the code to join the unjoin, rejoin and reboot the pc's, now I just need to know how to autologin and change that registry key.

**This is the link to my previous post that has the script to join the domain via netdom and kix****
http://www.kixtart.org/ubbthreads/showflat.php?Cat=0&Number=157817&an=0&page=0#157817

Top
#158195 - 2006-03-02 10:14 PM Re: Change HKLM key upon boot up
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Try using the MOVE command instead and see if that works.
Top
#158196 - 2006-03-03 08:40 PM Re: Change HKLM key upon boot up
Dmartin05 Offline
Fresh Scripter

Registered: 2006-02-01
Posts: 49
I was looking into that command, but the problem is the domain I'm attempting to join is the same one that I'm unjoining.
Here is the project:

I am re-installing my Windows SBS2003 server, before I start the uninstall, I am going to run the script you guys helped me with, to unjoin the domain on about 20 pcs. After the server is installed, i am going to run the script with the netdom join command to joint he pcs to the domain. This is why I can't use the move command.

Basically, with the netdom Join command, upon boot up of the machine I would like to create an autologin and change that registry key. The acct that will be autologging would be the admin acct.

Top
#158197 - 2006-03-03 09:02 PM Re: Change HKLM key upon boot up
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
sure you can. I think you can MOVE them into the WORKGROUP - though not really a "Domain" I think it will operate that way. Don't have time to test it out, but I think it would work.
Top
#158198 - 2006-03-06 04:05 PM Re: Change HKLM key upon boot up
Dmartin05 Offline
Fresh Scripter

Registered: 2006-02-01
Posts: 49
I just did some research and the netdom move command cannot move into a workgroup only another domain. I tried it and it did not work.
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 1607 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.132 seconds in which 0.105 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org