Why does this file reboot? - TechRepublic
General discussion
August 9, 2000 at 02:12 AM
edrox

Why does this file reboot?

by edrox . Updated 25 years, 10 months ago

Hi,

I have created a file which sets rights and userIDs. The PC reboots during!! the execution of this command file if I do this during my unattended setup.
If I run it on a normal moment on a Winnt WS 4 SP5 machine, it doesn’t reboot.
Even if this file is renaming the user which is logged in.

The file:
@ECHO OFF
REM This creates, renames and assigns group memberships
ECHO Creation of userIDs…
C:\I386\$OEM$\security\net user encore XXXXXX /add /comment:”Encore userID” /fullname:”Store manager”
C:\I386\$OEM$\security\renuser guest MIS
C:\I386\$OEM$\security\net user mis XXXXXX /comment:”MIS administration account” /fullname:”MIS”
C:\I386\$OEM$\security\net user administrator XXXXXX
C:\I386\$OEM$\security\net LOCALGROUP administrators mis /add
C:\I386\$OEM$\security\net LOCALGROUP guests mis /delete
C:\I386\$OEM$\security\net user mis /active:yes /passwordchg:yes /passwordreq:yes /expires:never
C:\I386\$OEM$\security\net user administrator /passwordreq:yes /expires:never
C:\I386\$OEM

This discussion is locked

All Comments