PowerShell

Attempting to use VMware vSphere PowerCLI’s Connect-VIServer to a vCenter instance fails with: “The underlying connection was closed: An unexpected error occurred on a send.”

Problem You have VMware vSphere PowerCLI version 5.1.0.4977 installed: You attempt to connect to a vSphere vCenter 6.7: … using the Connect-VIServer cmdlet but it immediately fails with: PowerCLI C:Program Files (x86)VMwareInfrastructurevSphere PowerCLI> Connect-VIServer vCenter.contoso.local

Read More...

Attempting to use the Invoke-Command PowerShell cmdlet to remotely install an application hangs indefinitely without starting the installation

Problem You’ve enabled PSRemoting on a remote server or desktop and attempt to use the Invoke-Command PowerShell cmdlet to remotely install an application with the following cmdlet: Invoke-Command -computername wkst-122 -ScriptBlock {Start-Process -FilePath ‘C:tempagentVMware-viewagent-x86_64-6.2.1-3284564.exe’ -ArgumentList

Read More...

Attempting to use Windows Azure Active Directory Module for Windows PowerShell “Connect-MsolService” to connect to Azure throws the error: “Connect-MsolService : Method not found: ‘Void”

Problem You attempt to use the cmdlet Connect-MsolService in Windows Azure Active Directory Module for Windows PowerShell to connect to Azure but receive the following error: PS C:> Connect-MsolServiceConnect-MsolService : Method not found: ‘VoidSystem.Runtime.InteropServices.Marshal.PtrToStructure(IntPtr, !!0)’.At

Read More...