ImportOsLayer.ps1 script
PS C:\windows\Setup\Scripts> .\ImportOsLayer.ps1 -ElmAddress -IgnoreCertError ModuleType Version Name ExportedCommands ---------- ------- ---- ---------------- Script 0.0 __DynamicModule_1cbe0359-cdf4-45... {New-CALOperatingSystem, New-CALSession} Failed to call API at and Method Login. System.Net.WebException: The remote server returned an error: (400) Bad Request. at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request) at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord() At line:56 char:9 + throw "Failed to call API at $address and Method $method. $Ex ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OperationStopped: (Failed to call ...ProcessRecord():String) [], RuntimeException + FullyQualifiedErrorId : Failed to call API at and Method Login. System.Net.WebException: The remote server returned an error: (400) Bad Request. at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request) at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()