2
我想獲得替換或重命名utilman.exe
的權限。下面的腳本不起作用。如何獲取替換utilman.exe的權限
Dim strFolder, strUser, strDomain
strFolder = "c:\windows\system32\utilman.exe"
Set FSO = CreateObject("Scripting.FileSystemObject")
Set ObjShell = Wscript.CreateObject("Wscript.Shell")
objShell.Run("takeown /A /f" & Chr(34) & strFolder & chr(34)),1,True
objShell.Run("icacls chr(34) & strFodler & chr(34) /grant administrator:F"),1,True
Wscript.quit
什麼是你得到錯誤信息? – Tim