Solved

Can't find startup script

Posted on 2004-08-07
9
2,774 Views
Last Modified: 2008-03-10
Background:  Windows 2003 Server Single DC Domain.  I once had a startup script called map_m.bat and was playing around with the GPO. I don't remember where I put it but, I believe it was long since gone.  I would always get an error in my event long that the script could not be found.   I could never find where I had this script configured.  I recently had a thought that there must be some reference to this script in the registry.  Sooooo I stupidly searched the registry for any reference to the map_m.bat file and I did find some entries.  I cleared the data from the entry leaving the key in place on each entry i found.  Now my startup is all screwed up.

Now when I reboot I get the error message below plus when this message is being displayed a desktop comes up for the default user.  The system stays in this state for about 10 min until the GPO script times out at which time a normal login screen will appear and everything else appears fine.

Of course my last systemstate backup is from January and I am afraid what might happen if I restore it.   The network is pretty static with only 4 users.  The only major change since January is I removed a second DC from the AD recently.

How can I best clean up this mess???     If I loose my other GP entries it would not be the end of the world.  I just want it to start up normal.

Here is the error: "Windows cannot find 'idlist,:232:3548,\\domainname.org\sysvol\domainname.org\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\Machine\Scripts\Startup\'.  Make sure you typed the name correctly, and then try again.  To search for a file, click the Start button, and then click Search."
0
Comment
Question by:avsc
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 2

Expert Comment

by:Rob_991
ID: 11742078
Have you looked within GP objects and checked

Computer Configuration
Windows Settings
Scripts Startup/Shutdown

Also....

User Configuration
Windows Settings
Scripts Login/Logoff

Make sure that inside these you are not calling the batch file.
0
 
LVL 40

Expert Comment

by:Fatal_Exception
ID: 11742530
Yes, you should have just deleted the call for the script from your Group Policy..  Did you backup your registry before you deleted these entries?  

Although not exactly your problem, this may help guide you:

http://www.jsiinc.com/SUBP/tip7500/rh7557.htm
0
 

Author Comment

by:avsc
ID: 11743390
Yes, I checked the GP objects for the script and it was not there.  There is a newer script that I just added and it seems to be working.  A simple script to sync the workstation time with the server.

And, no I was stupid and did not create a current backup of the registry before I made the change.  I have a backup from January 2004.
0
 
LVL 1

Expert Comment

by:asafganot
ID: 11744132
On which computer did U edit the registry? a workstation or the DC?
On which computer do U get the message? a workstation or the DC?

Try going to:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System\Scripts\Startup

You'll find registry keys named as numbers.
Expand each registry key and it's sub keys. look for a value named 'Script'. If it is empty, Delete the whole registry key with the same number (I'm talking about the primary "numbered" key, right under HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System\Scripts\Startup)

This time, Backup it all up before ;)

Good luck.
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 

Author Comment

by:avsc
ID: 11744214
asfganot:  I edited and got the message on the DC.

I looked at HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System\Scripts\Startup and have a key Default which is empty and a sub folder of 0 which also had a default key which is empty.

NEXT?
0
 
LVL 1

Accepted Solution

by:
asafganot earned 500 total points
ID: 11745531
If you disable all group policies at the domain level and at domain controllers OU and then run gpupdate /force on oyour DC, Do you still get the message?

Also, Open a new GPO and link it to the domain controllers OU. Set the following policy on the GPO:
Computer Configuration --> Administrative Templates --> System --> Scripts --> Run Startup scripts asyncronously : ENABLED and
mak sure that Computer Configuration --> Administrative Templates --> System --> Scripts --> Run Startup scripts syncronously is set to disabled or not configured.

Then, run the GPUpdate /force again.
0
 

Author Comment

by:avsc
ID: 11755116
asfganot:  Thanks!  I ran the gpupdate /force and that seemed to do the trick.   Do changes to the gp need to be forced or will it happen automatically eventually?
0
 
LVL 1

Expert Comment

by:AsafG
ID: 11767501
AVSV: (I changed my login name),
Normal Group Policy updateds occur only if the GPO has been updated.
The /force switch forces the GPO to be reapplied even if it was not updated.
0
 
LVL 1

Expert Comment

by:AsafG
ID: 11767511
BTW, Don't forget to close the question.
:)
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Occasionally Windows/Microsoft Updates will fail to update. We have found a code that will delete all temporary files and re-register all dll's related to Windows/Microsoft Updates! This works 99% of the time to get the updates working again! The…
Hello I read in a discussion about a person who configured a very simple mirror RAID with two hard drives; the system and data were on the same partition. He asked how to repair the system as it was not booting up anymore. In his case running …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now