On Oct 2, 5:32*pm, how to display variable value?
<howtodisplayvariableva...@xxxxxx> wrote:
Quote:
> Hi ,
>
> I want to execute powershell script on the server where I am not added as
> the admin and Powershell "ExecutionPolicy" is set to "Restcrited" and when I
> try to change the ExecutionPolicy to unrestricted by Set-ExecutionPolicy it
> throws me an error like
>
> Get-WmiObject : Access is denied. (Exception from HRESULT: 0x80070005
> (E_ACCESSDENIED))
>
> is there other way to execute that script.
>
> Thnx in advance
Which OS are you running PS on? If it's Vista/08 you'll need to "Run
as Administrator" in some cases.
--tj