VMM PowershellI've created a Virtual Machine Manager PS script which runs perfectly well from the server hosting VMM, but when I try to run it from a remote PC I receive the following error everytime I try to execute a command;<br/><br/>&quot;Contact the Virtual Machine Manager administrator to verify that your account is a member of a valid user role and then try the operation again.&quot;<br/><br/>The account I am logged in with is a member of the VMM Administrator role, and I'm even using the same account from the server when it works.<br/><br/>Does anyone know what could be causing this?© 2009 Microsoft Corporation. All rights reserved.Tue, 23 Jun 2009 15:00:00 Zb9c8a474-b85e-4c46-920c-5be5d50623dahttp://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/b9c8a474-b85e-4c46-920c-5be5d50623da#b9c8a474-b85e-4c46-920c-5be5d50623dahttp://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/b9c8a474-b85e-4c46-920c-5be5d50623da#b9c8a474-b85e-4c46-920c-5be5d50623daCollege Guyhttp://social.technet.microsoft.com/Profile/en-US/?user=College%20GuyVMM PowershellI've created a Virtual Machine Manager PS script which runs perfectly well from the server hosting VMM, but when I try to run it from a remote PC I receive the following error everytime I try to execute a command;<br/><br/>&quot;Contact the Virtual Machine Manager administrator to verify that your account is a member of a valid user role and then try the operation again.&quot;<br/><br/>The account I am logged in with is a member of the VMM Administrator role, and I'm even using the same account from the server when it works.<br/><br/>Does anyone know what could be causing this?Fri, 24 Apr 2009 08:42:58 Z2009-04-24T08:42:58Zhttp://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/b9c8a474-b85e-4c46-920c-5be5d50623da#795ed0fa-4788-4ae3-a0d7-2d414bf7c250http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/b9c8a474-b85e-4c46-920c-5be5d50623da#795ed0fa-4788-4ae3-a0d7-2d414bf7c250Fredrik Wallhttp://social.technet.microsoft.com/Profile/en-US/?user=Fredrik%20WallVMM PowershellAre they in the same domain, the server and the remote PC?<br/>Have you the firewall on?<br/><br/><hr class="sig">Regards, Fredrik Wall http://poweradmin.se/blogFri, 24 Apr 2009 09:02:31 Z2009-04-24T09:02:31Zhttp://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/b9c8a474-b85e-4c46-920c-5be5d50623da#caa456eb-9501-48d3-9223-c2f88bf5329chttp://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/b9c8a474-b85e-4c46-920c-5be5d50623da#caa456eb-9501-48d3-9223-c2f88bf5329cCollege Guyhttp://social.technet.microsoft.com/Profile/en-US/?user=College%20GuyVMM PowershellYes they are in the same domain, firewall is turned off opn the PC and server.  I can access all of the resources on the server (outside of powershell), using for example the VMM admin console, or browsing shares.Fri, 24 Apr 2009 09:03:57 Z2009-04-24T09:03:57Zhttp://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/b9c8a474-b85e-4c46-920c-5be5d50623da#9f04d3d2-ea4e-46a5-8f0e-4efa572c6cf2http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/b9c8a474-b85e-4c46-920c-5be5d50623da#9f04d3d2-ea4e-46a5-8f0e-4efa572c6cf2College Guyhttp://social.technet.microsoft.com/Profile/en-US/?user=College%20GuyVMM PowershellAnyone have any ideas on this one?Mon, 27 Apr 2009 11:29:49 Z2009-04-27T11:29:49Zhttp://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/b9c8a474-b85e-4c46-920c-5be5d50623da#590acb71-cd1d-4e7a-b59e-ace295d33a83http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/b9c8a474-b85e-4c46-920c-5be5d50623da#590acb71-cd1d-4e7a-b59e-ace295d33a83Marco Shawhttp://social.technet.microsoft.com/Profile/en-US/?user=Marco%20ShawVMM Powershell<p>So, if you create it via PowerShell, you can't start it from the remote PC...  If you create it via the UI, then can you start it from that same remote PC?</p>Mon, 27 Apr 2009 12:17:25 Z2009-04-27T12:17:25Zhttp://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/b9c8a474-b85e-4c46-920c-5be5d50623da#a8ecac82-5355-4eb8-8b9c-0ac407ac3b9ehttp://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/b9c8a474-b85e-4c46-920c-5be5d50623da#a8ecac82-5355-4eb8-8b9c-0ac407ac3b9eCollege Guyhttp://social.technet.microsoft.com/Profile/en-US/?user=College%20GuyVMM Powershell<p>No perhaps I need to clarify.</p> <p>If I load up powershell on the VMM Server, and run the script (which creates a VM), everything works perfectly..... just the same as if I had created the VM using the VMM Admin Console GUI.</p> <p>However, if I run the same script from a PC, I get an error saying;</p> <p>&quot;Contact the Virtual Machine Manager administrator to verify that your account is a member of a valid user role and then try the operation again.&quot;</p> <p>Im logged in with the same account I was using from the server.</p> <p>Does that make sense?</p>Mon, 27 Apr 2009 13:13:33 Z2009-04-27T13:13:33Zhttp://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/b9c8a474-b85e-4c46-920c-5be5d50623da#cafc8676-178e-4051-b81e-c871b8d75fe0http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/b9c8a474-b85e-4c46-920c-5be5d50623da#cafc8676-178e-4051-b81e-c871b8d75fe0Karl Mitschkehttp://social.technet.microsoft.com/Profile/en-US/?user=Karl%20MitschkeVMM Powershell<p>Did this ever get resolved?<br/><br/>If not, can you post the complete script, and show what line causes the error?<br/><br/>I have no SCVMM, so any response will be a SWAG on my part, but it might help, and if I get curious enough, I might load up SCVMM on my home system<br/><br/>Karl</p>Tue, 23 Jun 2009 14:53:53 Z2009-06-23T14:53:53Zhttp://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/b9c8a474-b85e-4c46-920c-5be5d50623da#e8026b21-5047-4b7f-8adf-ffdb3bf8bd16http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/b9c8a474-b85e-4c46-920c-5be5d50623da#e8026b21-5047-4b7f-8adf-ffdb3bf8bd16College Guyhttp://social.technet.microsoft.com/Profile/en-US/?user=College%20GuyVMM PowershellWell sort of, the workaround is to install the VMM Admin Console on the PC from which you wish to run the script.Tue, 23 Jun 2009 14:57:48 Z2009-06-23T14:57:48Zhttp://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/b9c8a474-b85e-4c46-920c-5be5d50623da#652b99f9-4bea-4131-89b9-7926f8edc060http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/b9c8a474-b85e-4c46-920c-5be5d50623da#652b99f9-4bea-4131-89b9-7926f8edc060Karl Mitschkehttp://social.technet.microsoft.com/Profile/en-US/?user=Karl%20MitschkeVMM Powershell<blockquote>Well sort of, the workaround is to install the VMM Admin Console on the PC from which you wish to run the script.</blockquote> <br/>That's not actually a workaround, it's the way things work with Version 1 powershell - you can't use the tools if they aren't installed locally ;)Tue, 23 Jun 2009 15:00:00 Z2009-06-23T15:00:00Z