I have a Run .net Script Activity where i have kept a powershell script.
The script is :
Enter-PSSession -computername hyperv
Dir > $a
When i run the runbook its showing error The host not implemented the method or operation.
But when i run this script manually its working fine
The Enter-PSSession command is creating problem.
Pleas help me ...
- Edited by MuthuKumar Duraisamy Thursday, October 10, 2013 7:45 AM
the reason is, 'Enter-PSSession' per default uses the current user (so it was using the user account that you logged in when you ran it manually)
where the runbook (.Net Script) uses the 'Orchestrator Service Account', so you need to make sure that the 'Orchestrator Service Account' has the right persmssions on the target machine (e.g. hyperv )
or, you can specify the username & password (plain text) for 'Enter-PSSession' http://social.technet.microsoft.com/Forums/windowsserver/en-US/38e6d350-9ef8-40a8-adfa-40fcadbe579c/user-and-pwd-for-enterpssession?forum=winserverpowershell