transitioning to scvmm

This commit is contained in:
ofilter
2022-04-07 06:15:57 +02:00
parent 330f111590
commit 4edadde27d
3 changed files with 244 additions and 3 deletions

View File

@ -21,9 +21,39 @@ At C:\Users\Mamoncete\Desktop\test.ps1:93 char:17
El for fa el lio?
```sh
You cannot call a method on a null-valued expression.
At C:\Users\Mamoncete\Desktop\test.ps1:50 char:8
+ $this._connected_servers[$num].FindHost("Test")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : InvokeMethodOnNull
+ FullyQualifiedErrorId : InvokeMethodOnNull
```
======================================
```sh
Get-SCVMMServer -ComputerName "VMMServer01.Contoso.com" -TCPPort 8100
```
https://docs.microsoft.com/en-us/powershell/module/virtualmachinemanager/get-scvmmserver?view=systemcenter-ps-2022
```
Get-SCVMMServer -ComputerName "VMMServer01.Contoso.com" -TCPPort 8100
$list = Get-SCVirtualMachine
$list is an array now
foreach ($element in $list){$element.Name}
```
### GOD
```
Get-Command -Module hyper-v | Out-GridView
```
##### https://quick-adviser.com/where-can-i-find-scvmm-server/
##### Niputis
https://livebook.manning.com/book/windows-powershell-in-action-third-edition/chapter-2/40