Quantcast
Channel: PowerShell General
Viewing all articles
Browse latest Browse all 10624

Remote powershell execution

$
0
0

I have a mixture of Windows 7 and XP machines that I need to setup to enable them as clients to remote execute a SQL SSIS package. The package and RDBMS is located on a Windows 2008 server. On the windows server I have invoked enable-psremoting accepting Yes to all

For Windows 7 I have run the following commands:- set-executionpolicy -executionPolicy Unrestricted -force

invoke-command -computername <servername> -scriptblock { dir c:\<folder> }

This works when I run as a local administrator but not as a user. I have seen an article from Microsoft which states that you need to be administrator on the local machine to run the remote script. Is there a way to run the script using run as administrator from a shortcut on the users desktop or a preferred method for implementing this kind of functionality for invocation by users and setup by admins. Any help would be appreciated

 

 

 


Viewing all articles
Browse latest Browse all 10624

Trending Articles