Failed to launch process powershell -ExecutionPolicy error during DiscoveryIssue When performing Discovery against a Windows device, an error message such as the following can be seen: Failed to launch process powershell -ExecutionPolicy ByPass -NonInteractive -WindowStyle Hidden -command "& {mode con lines=1 cols=9999; Set-Variable -Name 'SNC_isWmi' -Value $true -Scope Global; function printValues{Process{foreach-object{if($_.Properties){$a=$_.Properties}else{$a=$_.PsObject.Properties}foreach($p in $a){$o=$p.Name+' : ';if ($p.Value -is [Array]){$o+=[string]::Join(',', $p.Value);}else{$o+=$p.Value;}$o;if($p.Value -is [System.Management.ManagementBaseObject] -or $p.Value -is [System.Management.ManagementBaseObject[]]){'_EXTENDED_START:';$p.Value|printValues;'_EXTENDED_END!';}}}}}gwmi -namespace root/MSCluster MSCluster_Cluster -EA SilentlyContinue|select __CLASS,Name|printValues|format-list;gwmi -namespace root/MSCluster MSCluster_ClusterToResource -EA SilentlyContinue|select __CLASS,GroupComponent,PartComponent|printValues|format-list;gwmi -namespace root/MSCluster MSCluster_ClusterToNode -EA SilentlyContinue|select __CLASS,Antecedent,Dependent|printValues|format-list;gwmi -namespace root/virtualization/v2 Msvm_ComputerSystem -EA SilentlyContinue|select __CLASS,Name|printValues|format-list;gwmi -namespace root/virtualization Msvm_ComputerSystem -EA SilentlyContinue|select __CLASS,Name|printValues|format-list;gwmi -namespace root/MSCluster MSCluster_Resource -EA SilentlyContinue|select __CLASS,PrivateProperties,Name,Type|printValues|format-list;gwmi -namespace root\cimv2 Win32_ComputerSystem -EA SilentlyContinue|select __CLASS,Domain,Name|printValues|format-list;gwmi -namespace root\cimv2 Win32_OperatingSystem -EA SilentlyContinue|select __CLASS,Caption,Version|printValues|format-list;gwmi -namespace root/MSCluster MSCluster_Node -EA SilentlyContinue|select __CLASS,Name|printValues|format-list;'---SNC-SEPERATOR---REGISTRY-SECTION---';Get-ItemProperty -Path 'HKLM:/SYSTEM/CurrentControlSet/Services/Tcpip/Parameters' -EA SilentlyContinue|select PSPath,Domain,Hostname|format-list;}" with error System.Management.ManagementBaseObjectReleaseThis error message can be seen in all versions after Madrid Patch 3CauseThere is no single cause when receiving this error; it illustrates when something is blocking Powershell execution on the target machine.ResolutionWhen troubleshooting this error message, different fixes may work for different devices. The following may be useful steps to take to resolve this error: Verify that the MID Server and target devices have a compatible version of Powershell installed.Set the Powershell execution policy to unrestricted in the target device.Verify that no firewall/security policies are blocking this connection from being established.Ensure that PSRemoting is enabled on the target device (steps available in KB0813330 - How to Enable/Test PowerShell Remoting on Windows Host)Set all hosts to trusted hosts for PSRemoting on the target device (steps available in KB0813330 - How to Enable/Test PowerShell Remoting on Windows Host)flushdns and registerdns on the target deviceCheck for temp profiles of login being created on the target device which could block Discovery. Through the registry you can delete the temp profile & restart the user profile services service.