Windows 2003 Logs on and then imediately logs me off

  • Thread starter Thread starter steve
  • Start date Start date
S

steve

Guest
I have a test comptuer. So this is not a productions machine. I have
been testing converting from dynamic back to basic disks. I was
testing a program called ptedit that several have had success with in
doing this.

I made the required changed to the hard drive and then rebooted the
system. The server reboots fine, but after I log in it imedietly logs
me out. There is no time to do anything. I cannot connect to it over
the network.

I try to reboot vi cd and run the program to put the drive back to the
way it was but cannt do this. It seems it cant find the usb drive that
had the program on it. My reading tells me that the reason its doing
this is becasue it detects that the hard drive is different. (which it
thinks because I changed some of the drive type numbers. )

Does anyone have a way I can stop the server from logging me out
imedietely after I log in.

thanks.
 
Re: Windows 2003 Logs on and then imediately logs me off


"steve" <stevesemple@lycos.com> wrote in message
news:7b21e58f-7d97-4c4a-b1ec-d709dffee22e@l33g2000pri.googlegroups.com...
>I have a test comptuer. So this is not a productions machine. I have
> been testing converting from dynamic back to basic disks. I was
> testing a program called ptedit that several have had success with in
> doing this.
>
> I made the required changed to the hard drive and then rebooted the
> system. The server reboots fine, but after I log in it imedietly logs
> me out. There is no time to do anything. I cannot connect to it over
> the network.
>
> I try to reboot vi cd and run the program to put the drive back to the
> way it was but cannt do this. It seems it cant find the usb drive that
> had the program on it. My reading tells me that the reason its doing
> this is becasue it detects that the hard drive is different. (which it
> thinks because I changed some of the drive type numbers. )
>
> Does anyone have a way I can stop the server from logging me out
> imedietely after I log in.
>
> thanks.


Changing a partition type from dynamic to basic is an unsupported operation
that may result in unpredictable behaviour.

A looping logon process is almost always the result of Windows being unable
to locate the file userinit.exe, either because it no longer exists, or
because it is not where it should be, or because the registry points at the
wrong location. A changed System Drive letter will cause this behaviour.

To fix the problem you could do this:
1. Restore network connectivity.
2. Start a remote Command Prompt on the machine, using psexec.exe.
3. Make a note of the System Drive letter.
4. Edit the remote registry.
5. Change the wrong System Drive letter back to C:.
Drive letters are kept here: HKLM\SYSTEM\MountedDevices.
6. Reboot the problem machine, preferably with shutdown.exe.

You could also undo the change you made with ptedit.exe. As a server
administrator you will know how to create a Win98 boot diskette or boot CD
that carries a copy of ptedit.
 
Re: Windows 2003 Logs on and then imediately logs me off

Generally it's either the drive permissions were altered or the drive letter
has changed.

http://support.microsoft.com/kb/249321


--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect


"steve" wrote:
>I have a test comptuer. So this is not a productions machine. I have
> been testing converting from dynamic back to basic disks. I was
> testing a program called ptedit that several have had success with in
> doing this.
>
> I made the required changed to the hard drive and then rebooted the
> system. The server reboots fine, but after I log in it imedietly logs
> me out. There is no time to do anything. I cannot connect to it over
> the network.
>
> I try to reboot vi cd and run the program to put the drive back to the
> way it was but cannt do this. It seems it cant find the usb drive that
> had the program on it. My reading tells me that the reason its doing
> this is becasue it detects that the hard drive is different. (which it
> thinks because I changed some of the drive type numbers. )
>
> Does anyone have a way I can stop the server from logging me out
> imedietely after I log in.
>
> thanks.
 
Re: Windows 2003 Logs on and then imediately logs me off

Thanks.

Strangely I booted into console mode then ran ptedit from usb key to
change. Now when I go into console mode it doesnt find usb key so I
cant put back. Ive been trying to boot from usb key to re run ptedit
but, I never knew it was so hard to create a bootable usb key. finally
I found a tool from hp (because one from bart for some reason didnt
work) But now Im struggling with the dell 860 server to get it to boot
from usb. Its not straight forward. One wonders why it cant just have
a bios setting boot fom usb but no they have to have several rather
obscure settings.

thanks for your helpfull advice, I will look at the psexec. however I
fear that I may ? not be able to connect to the machine over the net
(?) I did try earlier. I will persever. Thanks. Its a all a big
experiment.
 
Re: Windows 2003 Logs on and then imediately logs me off

Thanks I will look at the solution from MS and see if I can apply it.
Thanks for the help.
 
Re: Windows 2003 Logs on and then imediately logs me off


"steve" <stevesemple@lycos.com> wrote in message
news:e8069e25-e6b5-45b8-acf9-8525b766f182@u40g2000pru.googlegroups.com...
> Thanks.
>
> Strangely I booted into console mode then ran ptedit from usb key to
> change. Now when I go into console mode it doesnt find usb key so I
> cant put back. Ive been trying to boot from usb key to re run ptedit
> but, I never knew it was so hard to create a bootable usb key. finally
> I found a tool from hp (because one from bart for some reason didnt
> work) But now Im struggling with the dell 860 server to get it to boot
> from usb. Its not straight forward. One wonders why it cant just have
> a bios setting boot fom usb but no they have to have several rather
> obscure settings.
>
> thanks for your helpfull advice, I will look at the psexec. however I
> fear that I may ? not be able to connect to the machine over the net
> (?) I did try earlier. I will persever. Thanks. Its a all a big
> experiment.
>


In the olden days we used to boot off a floppy boot disk, e.g. one from
www.bootdisk.com. Dead easy. These days many machines don't have a FDD, so
we boot off a boot CD based on a bootable floppy disk or downloaded from the
same site. Still very easy. Furthermore, if you're experimenting then having
a DOS/Win98 boot disk/CD is an absolute must. Bart PE boot CDs are great but
they can't do everything, e.g. run ptedit.
 
Re: Windows 2003 Logs on and then imediately logs me off

Well I have tried a variety of things but to no avail.

Unfortunetely the psexec does not seems work. It gives me an error
about a trust relationship not being able to be created.
I have also tried the net command " net use \\remote_machine_name\IPC
$ /user:administrator * "
Basically same error. I booted with Ultimate boot cd and used ptedit
to put the drive back into the original state it doesnt seems to
work.
I also tried useing some remote registery tools but it doesnt work. I
used ultemate boot cd and its registry editor to go to
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\Current Version
\Winlogon\Userinit:Reg_SZ:userinit.exe
and put the userinit.exe path in or no path at all like ms tells you
to but it doesnt work. When I look at the registery its actually
pointing to the X: drive which is waht the ultemate boot cd is booting
from.

I cant see any problems with HKLM\SYSTEM\MountedDevices. They seem to
be the same as are on my other servers.

So Im sort of stumped as to what to do. I wonder is there a registery
program that can be put on a floppy or run from console mode ?? if
that would fix my problem?

Regards
 
Re: Windows 2003 Logs on and then imediately logs me off

You can boot your machine with a Nordahl boot diskette
(http://home.eunet.no/~pnordahl/ntpasswd/bootdisk.html) and edit the
registry from there. Unfortunately it's an uphill battle unless you're
familiar with the syntax of this Linux-based environment. Furthermore I
don't think it will give you anything that a Bart PE boot CD will not give
you too - but with a much more familiar user interface.

Since this is a test machine you might be better off rebuilding it.


"steve" <stevesemple@lycos.com> wrote in message
news:82ef89d1-696d-44f5-a02c-8e43085cfc58@f37g2000pri.googlegroups.com...
> Well I have tried a variety of things but to no avail.
>
> Unfortunetely the psexec does not seems work. It gives me an error
> about a trust relationship not being able to be created.
> I have also tried the net command " net use \\remote_machine_name\IPC
> $ /user:administrator * "
> Basically same error. I booted with Ultimate boot cd and used ptedit
> to put the drive back into the original state it doesnt seems to
> work.
> I also tried useing some remote registery tools but it doesnt work. I
> used ultemate boot cd and its registry editor to go to
> HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\Current Version
> \Winlogon\Userinit:Reg_SZ:userinit.exe
> and put the userinit.exe path in or no path at all like ms tells you
> to but it doesnt work. When I look at the registery its actually
> pointing to the X: drive which is waht the ultemate boot cd is booting
> from.
>
> I cant see any problems with HKLM\SYSTEM\MountedDevices. They seem to
> be the same as are on my other servers.
>
> So Im sort of stumped as to what to do. I wonder is there a registery
> program that can be put on a floppy or run from console mode ?? if
> that would fix my problem?
>
> Regards
 
Re: Windows 2003 Logs on and then imediately logs me off

Thanks. That looks like yet another tool to put in the arsenal.

I also found this ...
http://windowsxp.mvps.org/peboot.htm

Which is instuctions on how to edit the registry and make changes to
the path of the Userinit.exe file.

So I booted with ultimate Boot CD used regedit. Strangely when I
looked at the registery setting it appears that it was pointing to the
right place. eg c:\winnt\system32 (its a winnt) path because it was an
upgrade from nt. So bearing in mind that the right path as far as I
know was already in the registry I extrapolated the info from
http://support.microsoft.com/kb/249321 which basically says to get rid
of the path, I did this and it allowed me to log back in.

So to recap for anyone else caught in this.

1. boot ultimate boot cd.
2. open command prompt and start regedit.
3. Follow the instructions in http://windowsxp.mvps.org/peboot.htm
4. If the proper path is listed in the registry. Try putting in no
path as the microsoft kb article states http://support.microsoft.com/kb/249321
eg
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\Current Version
\Winlogon\Userinit:Reg_SZ:userinit.exe

Reboot.

Thanks for all your assitance.
Now back to testing and playing about.
 
Re: Windows 2003 Logs on and then imediately logs me off

Hello Steve,
You may not be done. You still may have the incorrect drive letter in
place.
The reboot was just one failure which relied on the explicit drive pathing.
There may be other failures as well, that are not as obvious as the reboot
at logon.

Open a CMD prompt
Run set hit enter
What is system drive set to? It should be C: according to the registry
setting.
run regedit
Look at HKLM\system\mounteddevices
The dosdevices\C: needs to point to the correct volume GUID

Thanks,
Darrell Gorter[MSFT]

This posting is provided "AS IS" with no warranties, and confers no rights
--------------------
| >From: steve <stevesemple@lycos.com>
| >Newsgroups: microsoft.public.windows.server.general
| >Subject: Re: Windows 2003 Logs on and then imediately logs me off
| >Date: Wed, 15 Oct 2008 10:51:08 -0700 (PDT)
| >Organization: http://groups.google.com
| >Lines: 31
| >Message-ID:
<cbd77e91-61c6-4428-9a58-e1752a4a9c2e@u57g2000hsf.googlegroups.com>
| >References:
<7b21e58f-7d97-4c4a-b1ec-d709dffee22e@l33g2000pri.googlegroups.com>
| > <e$iPWiiLJHA.4452@TK2MSFTNGP05.phx.gbl>
<e8069e25-e6b5-45b8-acf9-8525b766f182@u40g2000pru.googlegroups.com>
| > <O0rUXyjLJHA.2760@TK2MSFTNGP06.phx.gbl>
<82ef89d1-696d-44f5-a02c-8e43085cfc58@f37g2000pri.googlegroups.com>
| > <#2LJL$tLJHA.4324@TK2MSFTNGP05.phx.gbl>
| >NNTP-Posting-Host: 74.13.217.91
| >Mime-Version: 1.0
| >Content-Type: text/plain; charset=ISO-8859-1
| >Content-Transfer-Encoding: 7bit
| >X-Trace: posting.google.com 1224093068 24124 127.0.0.1 (15 Oct 2008
17:51:08 GMT)
| >X-Complaints-To: groups-abuse@google.com
| >NNTP-Posting-Date: Wed, 15 Oct 2008 17:51:08 +0000 (UTC)
| >Complaints-To: groups-abuse@google.com
| >Injection-Info: u57g2000hsf.googlegroups.com; posting-host=74.13.217.91;
| > posting-account=5dEUnwkAAADop7OMqhpVbfNx7o9IPEm1
| >User-Agent: G2/1.0
| >X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1;
.NET CLR
| > 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe)
| >X-HTTP-Via: 1.1 mail.scottmission.com:3128 (Squid/2.4.STABLE6)
| >Bytes: 2808
| >Path:
TK2MSFTNGHUB02.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSFTFEEDS01.phx.gbl!newsfeed0
0.sul.t-online.de!t-online.de!border2.nntp.dca.giganews.com!nntp.giganews.co
m!postnews.google.com!u57g2000hsf.googlegroups.com!not-for-mail
| >Xref: TK2MSFTNGHUB02.phx.gbl
microsoft.public.windows.server.general:46330
| >X-Tomcat-NG: microsoft.public.windows.server.general
| >
| >Thanks. That looks like yet another tool to put in the arsenal.
| >
| >I also found this ...
| >http://windowsxp.mvps.org/peboot.htm
| >
| >Which is instuctions on how to edit the registry and make changes to
| >the path of the Userinit.exe file.
| >
| >So I booted with ultimate Boot CD used regedit. Strangely when I
| >looked at the registery setting it appears that it was pointing to the
| >right place. eg c:\winnt\system32 (its a winnt) path because it was an
| >upgrade from nt. So bearing in mind that the right path as far as I
| >know was already in the registry I extrapolated the info from
| >http://support.microsoft.com/kb/249321 which basically says to get rid
| >of the path, I did this and it allowed me to log back in.
| >
| >So to recap for anyone else caught in this.
| >
| >1. boot ultimate boot cd.
| >2. open command prompt and start regedit.
| >3. Follow the instructions in http://windowsxp.mvps.org/peboot.htm
| >4. If the proper path is listed in the registry. Try putting in no
| >path as the microsoft kb article states
http://support.microsoft.com/kb/249321
| >eg
| >HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\Current Version
| >\Winlogon\Userinit:Reg_SZ:userinit.exe
| >
| >Reboot.
| >
| >Thanks for all your assitance.
| >Now back to testing and playing about.
| >
 
Re: Windows 2003 Logs on and then imediately logs me off

Your a sharp guy.

Yes I noticed that. So I used kb223188 to resolve it.

Thanks for your thoroughness.


Regards
Steve
 

Similar threads

Back
Top