English 中文(简体)
我怎么能够执行一个权力轮指挥系统,作为科索沃信托局的行政管理?
原标题:How can I execute a powershell command as admin from VBS?

目前,我有一份VB文本,允许我称之为专横的权力指挥,其中包括整个权力书。 当我叫他们时,由于登记限制,我无法制定执行政策。 Meaning, powerhell isn t entre as administrative.

我如何能够改变这种状况?

我认为,下面是维博尔语中称为权力的部分。 页: 1

cmd = "C:WindowsSystem32WindowsPowerShellv1.0powershell.exe -OutputFormat text -EncodedCommand " & b64 & " > " & logstd & " 2> " & logerr
最佳回答

你们可以采取各种方式提升程序,但就这一用途而言,我认为,你应仅具体说明指挥线的执行政策:

cmd = "C:WindowsSystem32WindowsPowerShellv1.0powershell.exe -ExecutionPolicy unrestricted -OutputFormat text -EncodedCommand " & b64 & " > " & logstd & " 2> " & logerr
问题回答

暂无回答




相关问题
Mutually exclusive powershell parameters

SCENARIO I m writing a cmdlet for Powershell 2.0 using Visual Studio 2008 and .NET 3.5 the cmdlet requires 3 arguments. my intended grammar of the cmdlet is something like this: cmdletname [foo|...

Run a program from PowerShell with timeout

I ll write a script that runs a program and wait for it finished. But if the program is not finished within a specified time I want that the program is killed.

How to transpose data in powershell

I have a file that looks like this: a,1 b,2 c,3 a,4 b,5 c,6 (...repeat 1,000s of lines) How can I transpose it into this? a,b,c 1,2,3 4,5,6 Thanks

Powershell v2 remoting and delegation

I have installed Powershell V2 on 2 machines and run Enable-PsRemoting on both of them. Both machines are Win 2003 R2 and are joined to the same active directory domain and I can successfully run ...

PowerShell -match operator and multiple groups

I have the following log entry that I am processing in PowerShell I m trying to extract all the activity names and durations using the -match operator but I am only getting one match group back. I m ...

热门标签