English 中文(简体)
作为管理员运行 VBS
原标题:Run VBS as administrator
  • 时间:2012-05-22 12:13:40
  •  标签:
  • vbscript

我有一个VBScript 需要作为一个管理员运行。

能否在剧本中添加一些代码,

问题回答

海伦,看看微软的高级指挥器

http://technet.microsoft.com/en-us/magazine/2007.06. utlityspotrelight.aspx" rel=“不随从 Noreferrer'>>http://technet.microsoft.com/en-us/magazine/2007.06. utlitysplight.aspx

公布您想要使用的代码, 然后我们可以提供更多的建议。

以上评论中的“a href”=“https://stackoverflow.com/ questions/5344021/bypass-uac-in-vbscript” > VbScript < /a>中的Bypass UAC(VbScript < /a>)也有效,但有缺点,我还使用来自精神科的RUNAS和PSEXEC工具。





相关问题
What approach should I use to test a VBScript?

I ve been asked to help out with a project which has made extensive use of VBScript to process a whole bunch of text files and generate certain outputs - sanitized files, SQL entries etc.. The script ...

Unable to call c# code from vbscript - ActiveX error

I am trying to call a method I have written in C# from VBScript. I have followed just about all of the instructions I can find on the web and am still having problems. Specifically I am getting Error:...

How to set delay in vbscript

How to set delay in vbscript? WScript.Sleep(100) does not work on Windows XP, Vista.

Using Classes in a Dictionary in Classic ASP

I usually do C# but have inherited a classic ASP project. I have defined a class: Class clsPayment Public Name End Class Set objPayment = New clsPayment objPayment.Name = "...

How to check which Operating System?

How can I check OS version in a batch file or through a vbs in an Windows 2k/2k3 environment ? You know ... Something like ... : "If winver Win2k then ... or if winver Win2k3 then ....

Problem casting field when querying spreadsheet

I am trying to query an .xls spreadsheet with VBScript, but I have run into an issue when trying to cast a field. I connect to the spreadsheet like this. Set objConnection = CreateObject("ADODB....

热门标签