something |Select –Property Get-Member Select-Object https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/select-object?view=powershell-7.2 Get-Process Explorer | Select-Object -Property ProcessName -ExpandProperty Modules | Format-List ======== Stuck at ``` Method invocation failed because [System.Management.Automation.PSMethod] does not contain a method named 'FindHost'. At C:\Users\Mamoncete\Desktop\test.ps1:93 char:17 + $result = $server.FindHost($_vname) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], ParentContainsErrorRecordException + FullyQualifiedErrorId : MethodNotFound ``` 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 ``` ====================================== ```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 # At the authentication side. was considering something like ## Background login for (object in auth_list){ if (can_do_backround_login){ try{ object.login_ended=False check_login() # Emphasis on sending it to the background } catch $error { finally.login_ended=True } } } ## Front login for (object in auth_list){ try{ object.login_ended=False check_login() # Emphasis on sending it to the background } catch $error { finally.login_ended=True } } While (there is something that still has login_ended=False){ wait }