TinyApps.Org
Small is beautiful


 HOME

  0. Internet
  1. Text
  2. Graphics
  3. System
  4. File
  5. Misc
  6. Palm
  7. OS X

 BLOG

 DOCS

 FAQ

 RSS (?)




Run cmd.exe as Local System in Safe Mode #
When running Windows XP in Normal Mode, you can easily run cmd.exe as the LocalSystem Account (LSA) via:
at 14:02 /interactive cmd.exe
However, in Safe Mode, it returns:
This service cannot be started in Safe Mode
Microsoft points out that:
"The Task Scheduler service cannot be used while the computer is running in safe mode."
Creating a custom service with this neat hack from Adi Oltean also returns
This service cannot be started in Safe Mode
However, combining the hack with these instructions from Don Jones to add a service to the "safe" list did the trick. Here are the combined steps (which assume you are booted into Safe Mode):
  1. Add a key to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\SafeBoot\Minimal named lscmd or what have you.
  2. sc create lscmd binpath= "cmd /K start" type= own type= interact
  3. sc start lscmd
  4. A new cmd.exe window will open with LocalSystem privileges. When you are finished, close the window, delete the registry key you made, and delete the service: sc delete lscmd .
In retrospect, it may very well have been possible simply to add Task Scheduler to the list of safe services, but I wanted to share both of these hacks.

/windows | Dec 14, 2008



Categories
/blosxom
/mac
/misc
/nix
/palm
/windows

Blosxom Archive
2010: 9 8 7 6 5 4 3 2 1
2009: 12 11 10 9 8 7 6 5 4 3 2 1
2008: 12 11 10 9 8 7 6 5 4 3 2 1
2007: 12 11 10 9 8 7 6 5 4 3 2 1
2006: 12 11 10 9 8 7 6 5 4 3 2 1
2005: 12 11 10

Blogger Archive
2005: 10 9 8 7 6 5 4 3 2 1
2004: 12 11 10 9 8 7 6 5 4 3 2 1
2003: 12 11 10 9 8 7 6

Ezine Archive
2004: 4 3 2 1
2003: 12 9 8 7 6 5 4 2 1
2002: 12 10 9 8 7 6 5 3 2 1
2001: 12 11 10