![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| Guest | executing powershell scripts on server 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 |
My System Specs![]() |
| | #2 (permalink) |
| Scripting Guru | Re: executing powershell scripts on server If you are running your script on your machine that uses Get-WMIObject to manage a remote machine, the remote machine's execution policy is irrelevant. But if you have an interactive session and the policy is set to restricted you're out of luck running a script. you can try copying and pasting the contents of the script into a PowerShell session, but if you don't have admin rights to begin with, I doubt you'll be any more successful. |
My System Specs![]() |
| | #3 (permalink) |
| Guest | Re: executing powershell scripts on server 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 as Administrator" in some cases. --tj |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| executing scripts within a web browser control under the system ac | .NET General | |||
| Executing PowerShell Scripts with IIS | PowerShell | |||
| Executing batch files in PS scripts | PowerShell | |||
| Running scripts from powershell on exchange server | PowerShell | |||
| Executing scripts in the current directory | PowerShell | |||