Jump to content

NeilBryant

Member
  • Posts

    3
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Everything posted by NeilBryant

  1. np. Note the bang (!) prefix as well . . . handy if you need something to RunOnce repeatedly until it is successful.
  2. mon faut; I didn't even think about that (the script I wrote didn't need to restart itself). OTOH, you can force a run key to run in Safe Mode by putting an asterisk (*) before the value name: http://support.microsoft.com/kb/314866 You can actually get any of the services to run (mostly -- I've had dismal luck getting video drivers to override safemode VGA) if you want them to, with more registry hacks. The remote safe mode tool I wrote needed to run our remote desktop service in safe mode. It's a matter of configuring it under CurrentControlSet\Control\SafeBoot.
  3. I've done the first part of this, before, so I will comment only on that. I wrote a script for our help desk to remotely reboot PCs into Safe Mode. editing the boot.ini file is the only way, as far as I could find out. I looked around; nada -- which makes sense. Windows doesn't decide to hit safe mode until the boot menu, so that's where you tell it to do so. The safe way of doing it (the one I used) was to stick to minimal changes in the boot.ini, and backup a copy first. Reverting changes is a matter of recopying the original file back, which I did with a PendingFileRaname. That way, your file is replaced at the first available opportunity (before logon). For the logon, I used the autoadminlogon (yes, by editing the registry) which I have used without a problem many times. I wasn't clear if that was the method you have, but I find it best. Don't be afraid of the registry - just stick to simple, verified changes, and it's pretty reliable. As far as the last part, getting your second-half script to run is a matter of putting it (or a reference to it) in one of the startup folders, or one of the runkeys in the registry. If you use the HKLM Run key, your script will run before logon completes, but should do fine. If you opt for running it after logon completes, you might be better off putting it in your admin account's Start Menu Startup folder -- as it's easier to write that than try to get into HKCU for a not-logged-in user. hth
×
×
  • Create New...