Aprire un prompt di DOS con privilegy SYSTEM in Windows 2003

From RVM Wiki
Jump to navigation Jump to search

Si crea un servizio, lo si lancia e poi lo si cancella:

@echo off
sc create CmdAsSystem type= own type= interact binPath= "cmd /c start cmd /k (cd c:\ ^& color ec ^& title ***** SYSTEM *****)"
net start CmdAsSystem
sc delete CmdAsSystem

Riferimenti