Translate

Thursday, September 15, 2016

Command to connect to scvmm from powershell

For scvmm 2012

Import-Module 'C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\bin\psModules\virtualmachinemanager\virtualmachinemanager.psd1'

$username = "xxx"          
$password = "yyy"
$credentials = New-Object System.Management.Automation.PSCredential -ArgumentList @($username,(ConvertTo-SecureString -String $password -AsPlainText -Force))

Get-VMMServer –Computername "sssss" -TCPPort 8100 -Credential  $credentials


For scvmm 2012 r2

Import-Module 'C:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\bin\psModules\virtualmachinemanager\virtualmachinemanager.psd1'

The rest is the same

No comments:

Post a Comment

Comments will appear once they have been approved by the moderator