Bug / Winrm crash on Windows Server 2019 Preview build 17666

Senior Member

I have a bug / winrm crash on Windows Server 2019 Preview build 17666, same command on Win Server 2016 work fine:

$Credssp_admin = New-Object System.Management.Automation.PSCredential("domainName\spadmin", ("SPpassword19!" | ConvertTo-SecureString -asPlainText -Force))
$s = New-PSSession -ComputerName $env:COMPUTERNAME -Credential $Credssp_admin -Authentication Credssp -SessionOption (New-PSSessionOption -OperationTimeout 0 -IdleTimeout 600000)
$result = Invoke-Command -Session $s -Scriptblock {
Add-PSSnapin Microsoft.SharePoint.PowerShell
$Credssp_farm = New-Object System.Management.Automation.PSCredential("domainName\spfarm", ("SharePoint2019!" | ConvertTo-SecureString -asPlainText -Force))

New-SPConfigurationDatabase -DatabaseName SP_Config -DatabaseServer sqlsp -LocalServerRole SingleServerFarm -AdministrationContentDatabaseName SP_CentralAdmin -FarmCredentials $Credssp_farm -Passphrase (New-Object System.Management.Automation.PSCredential ('Passphrase', (ConvertTo-SecureString "Sharepoint2019" -AsPlainText -Force))).Password -Verbose
Remove-PSSession $s


The error:
VERBOSE: Now joining to farm at server sqlsp database SP_Config
Processing data for a remote command failed with the following error message: The WSMan provider host process did not return a
proper response. A provider in the host process may have behaved improperly. For more information, see the
about_Remote_Troubleshooting Help topic.
+ CategoryInfo : OperationStopped: (Win19SP19Prview:String) [], PSRemotingTransportException
+ FullyQualifiedErrorId : JobFailure
+ PSComputerName : Win19SP19Prview



In event viewer:
Faulting application name: wsmprovhost.exe, version: 10.0.17666.1000, time stamp: 0x5241da4a
Faulting module name: ntdll.dll, version: 10.0.17666.1000, time stamp: 0x2b6f1d68
Exception code: 0xc0000409
Fault offset: 0x0000000000089dbf
Faulting process id: 0xb20
Faulting application start time: 0x01d4404c2d69de51
Faulting application path: C:\Windows\system32\wsmprovhost.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report Id: 47cfaa49-3a19-4c3f-a209-ff7d9d3d92f1
Faulting package full name:
Faulting package-relative application ID:

0 Replies