App Layering - (400) Bad Request with ImportOsLayer.ps1

App Layering - (400) Bad Request with ImportOsLayer.ps1

book

Article ID: CTX457818

calendar_today

Updated On:

Description

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()

Resolution

When prompted to login, please use the App Layering web console 'administrator' account. The script does not support LDAP users.
  • Please note: The default password for the administrator account is forced to be changed when the ELM is first installed. If you do not have this password, please see CTX230607