Discovery Error on Windows Machine with Powershell 1.0Issue Discovery on a Windows target device throw - Error: Missing expression after unary operator '-'.At line:1 char:2+ -E <<<< xecutionPolicy ByPass -NonInteractive -WindowStyle Hidden -command ..... ReleaseAllCausePowershell version on Target Machine or the MID Server Host Machine is Version 1.0ResolutionThere are two ways to resolve this issue: Avoid Using Powershell by MID Server Use MID Server Property 'mid.use_powershell'This property enables or disables PowerShell for Discovery.Default value: falseWhen set to true, Discovery reverts to using WMIRunner Probe.This probe cannot use the credentials defined in Discovery > Credentials.In this case, the MID Server connects to the WMI providers with the account the MID Server service is running.This account is required to have access to the remote machines so that WMIRunner works. Upgrade Powershell Version Upgrade Powershell Version on the Target Machine/Host Machine. Related LinksServiceNow supports these PowerShell versions: Version 2.0 Regular Discovery Version 3.0 Regular DiscoveryApplication Dependency Mapping (ADM)File-based DiscoveryPowerShell version 3.0 does not support Windows Server 2003. Version 4.0 Regular DiscoveryApplication Dependency Mapping (ADM)File-based Discovery Version 5.0 Regular DiscoveryApplication Dependency Mapping (ADM)File-based Discovery Useful documents: MID Server parameters for PowerShellAdd a MID Server parameterPowerShell for Discovery