Home

RD Session Host stuck at Status: "Upgrading"

%3CLINGO-SUB%20id%3D%22lingo-sub-386781%22%20slang%3D%22en-US%22%3ERD%20Session%20Host%20stuck%20at%20Status%3A%20%22Upgrading%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-386781%22%20slang%3D%22en-US%22%3EHi%2C%20I%20am%20trying%20to%20add%20a%20Windows%20Server%202016%20as%20a%20session%20host.%20I%20have%20followed%20the%20steps%20at%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Fcreate-host-pools-powershell%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Fcreate-host-pools-powershell%3C%2FA%3E%20and%20it%20shows%20up%20as%20a%20session%20host%20with%20PS%20with%20the%20Get-RdsSessionHost%20command%2C%20but%20the%20status%20in%20the%20output%20is%20stuck%20at%20Status%20%3A%20Upgrading.%20In%20the%20event%20logs%20in%20gives%20a%20bunch%20of%20errors%2C%20these%20are%20a%20couple%20of%20them%3A%20Events%3A%20Microsoft.RDInfra.Agent.Monitoring.MonitoringAgentInstallSettings%20Value%20of%20the%20'AgentMonitoringAuthId'%20is%20empty%20Microsoft.RDInfra.Agent.Monitoring.MonitoringAgentInstallSettings%20RDInfraAgent%20key%20doesn't%20exist%20Unable%20to%20retrieve%20DefaultAgent%20from%20registry%3A%20System.NullReferenceException%20RDAgentBootLoader.BootLoaderSettings.get_DefaultAgentPath()%20i%20C%3A%5Cagent%5C_work%5C1%5Cs%5Csrc%5CRDAgent%5Csrc%5CRDAgentBootLoader%5CBootLoaderSettings.cs%3Arad%2082%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-395109%22%20slang%3D%22en-US%22%3ERe%3A%20RD%20Session%20Host%20stuck%20at%20Status%3A%20%22Upgrading%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-395109%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F312165%22%20target%3D%22_blank%22%3E%40alhenriq_ms%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20know%20the%20versions.%20What%20I'm%20saying%20is%20the%20downloadable%20version%20in%20the%20MS%20docs%20is%20wrong%20which%20is%20probably%20why%20it%20keeps%20upgrading%20and%20getting%20stuck.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'd%20rather%20not%20provide%20my%20FQDN%20because%20it's%20part%20of%20my%20companies%20network.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-394804%22%20slang%3D%22en-US%22%3ERe%3A%20RD%20Session%20Host%20stuck%20at%20Status%3A%20%22Upgrading%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-394804%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F314157%22%20target%3D%22_blank%22%3E%40aspicola2605%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20determine%20the%20versions%20via%20control%20panel%20%22uninstall%20or%20change%20a%20program%22%3C%2FP%3E%3CP%3EAs%20of%20now%20the%20current%20versions%20pushed%20are%3A%3C%2FP%3E%3CP%3EThe%20bootloader%20at%20this%20time%20should%20report%20version%20%221.0.0.0%22%3C%2FP%3E%3CP%3E%22Remote%20Desktop%20Services%20Sxs%20Network%20Stack%22%20-%20%221.0.1902.17001%22%3C%2FP%3E%3CP%3E%22Remote%20Desktop%20Services%20Infrastructure%20Agent%22%20-%20%221.0.1.10%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20interested%20why%20the%20agent%20is%20failing%20the%20upgrade%20can%20you%20forward%20me%20your%20VM%20FQDN%20(private%20message)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethanks%2C%3C%2FP%3E%3CP%3E-al%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-394637%22%20slang%3D%22en-US%22%3ERe%3A%20RD%20Session%20Host%20stuck%20at%20Status%3A%20%22Upgrading%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-394637%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F312165%22%20target%3D%22_blank%22%3E%40alhenriq_ms%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F307422%22%20target%3D%22_blank%22%3E%40andersidahl%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20looks%20like%20the%20RDAgent%20on%20the%20doc%20for%20manually%20configuring%20is%20different%20than%20the%20version%20being%20pushed%20using%20the%20deployment%20for%20a%20host%20pool.%20The%20downloaded%20agent%20version%20appears%20to%20be%201.0.0.1462%20and%20the%20version%20of%20the%20agent%20on%20the%20provisioned%20host%20pools%20is%201.0.1.10.%20It%20seems%20to%20upgrade%20it%20automatically%20but%20never%20complete%20for%20one%20reason%20or%20another.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20boot%20loader%20and%20sxs%20installers%20don't%20have%20version%20numbers%20in%20them%20that%20I%20can%20find%20to%20confirm%20they%20are%20the%20same.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20download%20link%20for%20the%20correct%20agent%20version%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-393396%22%20slang%3D%22en-US%22%3ERe%3A%20RD%20Session%20Host%20stuck%20at%20Status%3A%20%22Upgrading%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-393396%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F307422%22%20target%3D%22_blank%22%3E%40andersidahl%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOk%20I%20misunderstood%2C%20I%20thought%20you%20had%20issues%20with%20the%20bootloader%20loading%20the%20agent.%20I%20can%20check%20your%20logs%20from%20my%20end%2C%20if%20you%20like.%20You%20can%20send%20me%20your%20VM%20name%20(FQDN%20helps)%26nbsp%3B%20via%20Private%20Message.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethanks%2C%3C%2FP%3E%3CP%3E-al%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-392997%22%20slang%3D%22en-US%22%3ERe%3A%20RD%20Session%20Host%20stuck%20at%20Status%3A%20%22Upgrading%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-392997%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F312165%22%20target%3D%22_blank%22%3E%40alhenriq_ms%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%2C%20I%20can%20verify%20that%20this%20was%20already%20tested.%20I%20also%20tried%20pulling%20the%20newer%20versjon%20setup%20from%20another%20server-setup%20that%20worked%20and%20installing%20manually%20and%20changing%20the%20registerkey%2C%20but%20it%20kept%20reconfiguring%20back%20to%201.6%2F1.7%20i%20believe%20the%20version%20was.%20Also%20a%20lot%20of%20reboots%20inbetween%20and%20waiting%2C%20though%20it%20kept%20going%20back%20to%20Upgrading.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-392689%22%20slang%3D%22en-US%22%3ERe%3A%20RD%20Session%20Host%20stuck%20at%20Status%3A%20%22Upgrading%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-392689%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1349%22%20target%3D%22_blank%22%3E%40Stephen%20Ferrero%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%20Stephen%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20monitoring%20agent%20is%20reporting%20this%20because%20there%20was%20a%20failure%20onboarding%20-%20please%20stop%20the%20bootloader%20service%20and%20try%20re-installing%20the%20WVD%20Agent.%20Verify%20that%20the%20DefaultAgent%20key%20exists%20under%3C%2FP%3E%3CP%3EHKEY_LOCAL_MACHINE%5CSOFTWARE%5CMicrosoft%5CRDAgentBootLoader%20-%26gt%3B%20DefaultAgent.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThen%20start%20the%20bootloader%20service.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethanks%2C%3C%2FP%3E%3CP%3E-al%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-392685%22%20slang%3D%22en-US%22%3ERe%3A%20RD%20Session%20Host%20stuck%20at%20Status%3A%20%22Upgrading%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-392685%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F309748%22%20target%3D%22_blank%22%3E%40smithanc%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20you%20verify%20if%20the%20reverse%20connect%20listener%20is%20up%20and%20running%3F%20On%20the%20VM%20that%20is%20stuck%20upgrading%20open%20a%20cmd%20window%20and%20run%20'Qwinsta'%26nbsp%3B%20you%20should%20see%20%3CSESSIONNAME%3E%20rdp-sxs190217001%20%3CID%3E%20655..%20%3CSTATE%3EListen%3C%2FSTATE%3E%3C%2FID%3E%3C%2FSESSIONNAME%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eif%20you%20do%20-%20typically%20rebooting%20the%20VM%20can%20help%20work%20around%20this.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3E-al%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-392641%22%20slang%3D%22en-US%22%3ERe%3A%20RD%20Session%20Host%20stuck%20at%20Status%3A%20%22Upgrading%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-392641%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F307422%22%20target%3D%22_blank%22%3E%40andersidahl%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%20Anders%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20above%20exception%2C%20to%20me%2C%20indicates%20that%20the%20bootloader%20cannot%20find%20the%20agent%20because%20the%20required%20location%20is%20missing%20a%20registry%20key%20(Unable%20to%20retrieve%20DefaultAgent%20path%20from%20registry).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAfter%20installing%20the%20WVD%20Agent%20-%20it%20should%20have%20declared%20itself%20the%20default%20agent%20by%20creating%20this%20key%20in%20the%20AgentBootLoader%20regkey%20location%26nbsp%3BHKEY_LOCAL_MACHINE%5CSOFTWARE%5CMicrosoft%5CRDAgentBootLoader%20-%26gt%3B%20DefaultAgent%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20you%20verify%20that%20this%20key%20exists%3F%20Also%20please%20make%20sure%20you%20stop%20the%20AgentBootLoader%20service%20before%20trying%20to%20install%20the%20WVD%20Agent%20MSI.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethanks%2C%3C%2FP%3E%3CP%3E-al%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-392230%22%20slang%3D%22en-US%22%3ERe%3A%20RD%20Session%20Host%20stuck%20at%20Status%3A%20%22Upgrading%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-392230%22%20slang%3D%22en-US%22%3E%3CP%3ESame%20problem%20here.%20It%20seems%20like%20the%20agent%20is%20upgrading%20immediately%20after%20installing.%20I%20now%20have%20two%20versions%20of%20the%20agent%20installed.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20tried%20uninstalling%20the%20agent%20and%20re-installing%20using%20what%20looks%20like%20an%20upgraded%20installer%20(version%201.0.1.10)%20but%20now%20instead%20of%20Status%3A%20Upgrading%2C%20my%20RD%20host%20is%20in%20Status%3A%20Unavailable.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%20have%20these%20additional%20errors%20in%20the%20RemoteDesktopServices-MonitoringLogger%20and%26nbsp%3BRemoteDesktopServices-MonitoringAgentLoader%20logs%20respectively%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMicrosoft.RDInfra.Monitoring.AgentMonitoringService.AgentMonitoringServiceWorker%3CBR%20%2F%3EValue%20of%20the%20'AgentMonitoringAccount'%20in%20'SOFTWARE%5CMicrosoft%5CRDMonitoringAgent'%20is%20empty%3C%2FP%3E%3CP%3E-------%3C%2FP%3E%3CP%3EMicrosoft.RDInfra.Monitoring.AgentMonitoringService.AgentMonitoringServiceWorker%3CBR%20%2F%3EFail%20to%20set%20default%20dimensions%20Invalid%20Operation%3A%20Fail%20to%20set%20default%20dimensions%2C%20error%20code%20is%202147942487..%20Error%20code%20is%2080070057%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-390140%22%20slang%3D%22en-US%22%3ERe%3A%20RD%20Session%20Host%20stuck%20at%20Status%3A%20%22Upgrading%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-390140%22%20slang%3D%22en-US%22%3E%3CP%3EChecking%20Event%20Viewer%2C%20I%20see%20that%20the%20Remote%20Desktop%20Services%20SxS%20Network%20Stack%20is%20stuck%20in%20some%20sort%20of%20loop%20where%20the%20Session%20Host%20keeps%20re-running%20the%20MSI%20installer%20and%20re-configures%20the%20installed%20RDS%20SxS%20Network%20Stack%20product%20every%205%20minutes%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3ELog%20Name%3A%20Application%3CBR%20%2F%3ESource%3A%20Microsoft-Windows-RestartManager%3CBR%20%2F%3EDate%3A%203%2F28%2F2019%202%3A32%3A50%20PM%3CBR%20%2F%3EEvent%20ID%3A%2010001%3CBR%20%2F%3ETask%20Category%3A%20None%3CBR%20%2F%3ELevel%3A%20Information%3CBR%20%2F%3EKeywords%3A%20%3CBR%20%2F%3EUser%3A%20SYSTEM%3CBR%20%2F%3EComputer%3A%20wvdhost.test.com%3CBR%20%2F%3EDescription%3A%3CBR%20%2F%3EEnding%20session%200%20started%20%E2%80%8E2019%E2%80%8E-%E2%80%8E03%E2%80%8E-%E2%80%8E28T14%3A32%3A48.506934400Z.%3CBR%20%2F%3EEvent%20Xml%3A%3CBR%20%2F%3E%3CEVENT%20xmlns%3D%22http%3A%2F%2Fschemas.microsoft.com%2Fwin%2F2004%2F08%2Fevents%2Fevent%22%3E%3CBR%20%2F%3E%3CSYSTEM%3E%3CBR%20%2F%3E%3CPROVIDER%20name%3D%22Microsoft-Windows-RestartManager%22%20guid%3D%22%7B%7D%22%3E%3C%2FPROVIDER%3E%3CBR%20%2F%3E%3CEVENTID%3E10001%3C%2FEVENTID%3E%3CBR%20%2F%3E%3CVERSION%3E0%3C%2FVERSION%3E%3CBR%20%2F%3E%3CLEVEL%3E4%3C%2FLEVEL%3E%3CBR%20%2F%3E%3CTASK%3E0%3C%2FTASK%3E%3CBR%20%2F%3E%3COPCODE%3E0%3C%2FOPCODE%3E%3CBR%20%2F%3E%3CKEYWORDS%3E0x8000000000000000%3C%2FKEYWORDS%3E%3CBR%20%2F%3E%3CTIMECREATED%20systemtime%3D%222019-03-28T14%3A32%3A50.599897100Z%22%3E%3C%2FTIMECREATED%3E%3CBR%20%2F%3E%3CEVENTRECORDID%3E552%3C%2FEVENTRECORDID%3E%3CBR%20%2F%3E%3CCORRELATION%3E%3C%2FCORRELATION%3E%3CBR%20%2F%3E%3CEXECUTION%20processid%3D%225600%22%20threadid%3D%222720%22%3E%3C%2FEXECUTION%3E%3CBR%20%2F%3E%3CCHANNEL%3EApplication%3C%2FCHANNEL%3E%3CBR%20%2F%3E%3CCOMPUTER%3Ewvdhost.test.com%3C%2FCOMPUTER%3E%3CBR%20%2F%3E%3CSECURITY%20userid%3D%22%22%3E%3C%2FSECURITY%3E%3CBR%20%2F%3E%3C%2FSYSTEM%3E%3CBR%20%2F%3E%3CUSERDATA%3E%3CBR%20%2F%3E%3CRMSESSIONEVENT%20xmlns%3D%22http%3A%2F%2Fwww.microsoft.com%2F2005%2F08%2FWindows%2FReliability%2FRestartManager%2F%22%3E%3CBR%20%2F%3E%3CRMSESSIONID%3E0%3C%2FRMSESSIONID%3E%3CBR%20%2F%3E%3CUTCSTARTTIME%3E2019-03-28T14%3A32%3A48.506934400Z%3C%2FUTCSTARTTIME%3E%3CBR%20%2F%3E%3C%2FRMSESSIONEVENT%3E%3CBR%20%2F%3E%3C%2FUSERDATA%3E%3CBR%20%2F%3E%3C%2FEVENT%3E%3CBR%20%2F%3E%3CBR%20%2F%3ELog%20Name%3A%20Application%3CBR%20%2F%3ESource%3A%20MsiInstaller%3CBR%20%2F%3EDate%3A%203%2F28%2F2019%202%3A32%3A50%20PM%3CBR%20%2F%3EEvent%20ID%3A%201042%3CBR%20%2F%3ETask%20Category%3A%20None%3CBR%20%2F%3ELevel%3A%20Information%3CBR%20%2F%3EKeywords%3A%20Classic%3CBR%20%2F%3EUser%3A%20SYSTEM%3CBR%20%2F%3EComputer%3A%20wvdhost.test.com%3CBR%20%2F%3EDescription%3A%3CBR%20%2F%3EEnding%20a%20Windows%20Installer%20transaction%3A%20C%3A%5CProgram%20Files%5CMicrosoft%20RDInfra%5CSxSStack-1.0.1902.17001.msi.%20Client%20Process%20Id%3A%204400.%3CBR%20%2F%3EEvent%20Xml%3A%3CBR%20%2F%3E%3CEVENT%20xmlns%3D%22http%3A%2F%2Fschemas.microsoft.com%2Fwin%2F2004%2F08%2Fevents%2Fevent%22%3E%3CBR%20%2F%3E%3CSYSTEM%3E%3CBR%20%2F%3E%3CPROVIDER%20name%3D%22MsiInstaller%22%3E%3C%2FPROVIDER%3E%3CBR%20%2F%3E%3CEVENTID%20qualifiers%3D%220%22%3E1042%3C%2FEVENTID%3E%3CBR%20%2F%3E%3CLEVEL%3E4%3C%2FLEVEL%3E%3CBR%20%2F%3E%3CTASK%3E0%3C%2FTASK%3E%3CBR%20%2F%3E%3CKEYWORDS%3E0x80000000000000%3C%2FKEYWORDS%3E%3CBR%20%2F%3E%3CTIMECREATED%20systemtime%3D%222019-03-28T14%3A32%3A50.622450000Z%22%3E%3C%2FTIMECREATED%3E%3CBR%20%2F%3E%3CEVENTRECORDID%3E551%3C%2FEVENTRECORDID%3E%3CBR%20%2F%3E%3CCHANNEL%3EApplication%3C%2FCHANNEL%3E%3CBR%20%2F%3E%3CCOMPUTER%3Ewvdhost.test.com%3C%2FCOMPUTER%3E%3CBR%20%2F%3E%3CSECURITY%20userid%3D%22%22%3E%3C%2FSECURITY%3E%3CBR%20%2F%3E%3C%2FSYSTEM%3E%3CBR%20%2F%3E%3CEVENTDATA%3E%3CBR%20%2F%3E%3CDATA%3EC%3A%5CProgram%20Files%5CMicrosoft%20RDInfra%5CSxSStack-1.0.1902.17001.msi%3C%2FDATA%3E%3CBR%20%2F%3E%3CDATA%3E4400%3C%2FDATA%3E%3CBR%20%2F%3E%3CDATA%3E(NULL)%3C%2FDATA%3E%3CBR%20%2F%3E%3CDATA%3E(NULL)%3C%2FDATA%3E%3CBR%20%2F%3E%3CDATA%3E(NULL)%3C%2FDATA%3E%3CBR%20%2F%3E%3CDATA%3E(NULL)%3C%2FDATA%3E%3CBR%20%2F%3E%3CDATA%3E%3CBR%20%2F%3E%3C%2FDATA%3E%3CBR%20%2F%3E%3C%2FEVENTDATA%3E%3CBR%20%2F%3E%3C%2FEVENT%3E%3CBR%20%2F%3E%3CBR%20%2F%3ELog%20Name%3A%20Application%3CBR%20%2F%3ESource%3A%20MsiInstaller%3CBR%20%2F%3EDate%3A%203%2F28%2F2019%202%3A32%3A50%20PM%3CBR%20%2F%3EEvent%20ID%3A%201035%3CBR%20%2F%3ETask%20Category%3A%20None%3CBR%20%2F%3ELevel%3A%20Information%3CBR%20%2F%3EKeywords%3A%20Classic%3CBR%20%2F%3EUser%3A%20SYSTEM%3CBR%20%2F%3EComputer%3A%20wvdhost.test.com%3CBR%20%2F%3EDescription%3A%3CBR%20%2F%3EWindows%20Installer%20reconfigured%20the%20product.%20Product%20Name%3A%20Remote%20Desktop%20Services%20SxS%20Network%20Stack.%20Product%20Version%3A%201.0.1902.17001.%20Product%20Language%3A%201033.%20Manufacturer%3A%20Microsoft%20Corporation.%20Reconfiguration%20success%20or%20error%20status%3A%200.%3CBR%20%2F%3EEvent%20Xml%3A%3CBR%20%2F%3E%3CEVENT%20xmlns%3D%22http%3A%2F%2Fschemas.microsoft.com%2Fwin%2F2004%2F08%2Fevents%2Fevent%22%3E%3CBR%20%2F%3E%3CSYSTEM%3E%3CBR%20%2F%3E%3CPROVIDER%20name%3D%22MsiInstaller%22%3E%3C%2FPROVIDER%3E%3CBR%20%2F%3E%3CEVENTID%20qualifiers%3D%220%22%3E1035%3C%2FEVENTID%3E%3CBR%20%2F%3E%3CLEVEL%3E4%3C%2FLEVEL%3E%3CBR%20%2F%3E%3CTASK%3E0%3C%2FTASK%3E%3CBR%20%2F%3E%3CKEYWORDS%3E0x80000000000000%3C%2FKEYWORDS%3E%3CBR%20%2F%3E%3CTIMECREATED%20systemtime%3D%222019-03-28T14%3A32%3A50.591183400Z%22%3E%3C%2FTIMECREATED%3E%3CBR%20%2F%3E%3CEVENTRECORDID%3E550%3C%2FEVENTRECORDID%3E%3CBR%20%2F%3E%3CCHANNEL%3EApplication%3C%2FCHANNEL%3E%3CBR%20%2F%3E%3CCOMPUTER%3Ewvdhost.test.com%3C%2FCOMPUTER%3E%3CBR%20%2F%3E%3CSECURITY%20userid%3D%22%22%3E%3C%2FSECURITY%3E%3CBR%20%2F%3E%3C%2FSYSTEM%3E%3CBR%20%2F%3E%3CEVENTDATA%3E%3CBR%20%2F%3E%3CDATA%3ERemote%20Desktop%20Services%20SxS%20Network%20Stack%3C%2FDATA%3E%3CBR%20%2F%3E%3CDATA%3E1.0.1902.17001%3C%2FDATA%3E%3CBR%20%2F%3E%3CDATA%3E1033%3C%2FDATA%3E%3CBR%20%2F%3E%3CDATA%3E0%3C%2FDATA%3E%3CBR%20%2F%3E%3CDATA%3EMicrosoft%20Corporation%3C%2FDATA%3E%3CBR%20%2F%3E%3CDATA%3E(NULL)%3C%2FDATA%3E%3CBR%20%2F%3E%3CDATA%3E%3CBR%20%2F%3E%3C%2FDATA%3E%3CBR%20%2F%3E%3CBINARY%3E%3C%2FBINARY%3E%3CBR%20%2F%3E%3C%2FEVENTDATA%3E%3CBR%20%2F%3E%3C%2FEVENT%3E%3CBR%20%2F%3E%3CBR%20%2F%3ELog%20Name%3A%20Application%3CBR%20%2F%3ESource%3A%20MsiInstaller%3CBR%20%2F%3EDate%3A%203%2F28%2F2019%202%3A32%3A50%20PM%3CBR%20%2F%3EEvent%20ID%3A%2011728%3CBR%20%2F%3ETask%20Category%3A%20None%3CBR%20%2F%3ELevel%3A%20Information%3CBR%20%2F%3EKeywords%3A%20Classic%3CBR%20%2F%3EUser%3A%20SYSTEM%3CBR%20%2F%3EComputer%3A%20wvdhost.test.com%3CBR%20%2F%3EDescription%3A%3CBR%20%2F%3EProduct%3A%20Remote%20Desktop%20Services%20SxS%20Network%20Stack%20--%20Configuration%20completed%20successfully.%3CBR%20%2F%3EEvent%20Xml%3A%3CBR%20%2F%3E%3CEVENT%20xmlns%3D%22http%3A%2F%2Fschemas.microsoft.com%2Fwin%2F2004%2F08%2Fevents%2Fevent%22%3E%3CBR%20%2F%3E%3CSYSTEM%3E%3CBR%20%2F%3E%3CPROVIDER%20name%3D%22MsiInstaller%22%3E%3C%2FPROVIDER%3E%3CBR%20%2F%3E%3CEVENTID%20qualifiers%3D%220%22%3E11728%3C%2FEVENTID%3E%3CBR%20%2F%3E%3CLEVEL%3E4%3C%2FLEVEL%3E%3CBR%20%2F%3E%3CTASK%3E0%3C%2FTASK%3E%3CBR%20%2F%3E%3CKEYWORDS%3E0x80000000000000%3C%2FKEYWORDS%3E%3CBR%20%2F%3E%3CTIMECREATED%20systemtime%3D%222019-03-28T14%3A32%3A50.575597200Z%22%3E%3C%2FTIMECREATED%3E%3CBR%20%2F%3E%3CEVENTRECORDID%3E549%3C%2FEVENTRECORDID%3E%3CBR%20%2F%3E%3CCHANNEL%3EApplication%3C%2FCHANNEL%3E%3CBR%20%2F%3E%3CCOMPUTER%3Ewvdhost.test.com%3C%2FCOMPUTER%3E%3CBR%20%2F%3E%3CSECURITY%20userid%3D%22%22%3E%3C%2FSECURITY%3E%3CBR%20%2F%3E%3C%2FSYSTEM%3E%3CBR%20%2F%3E%3CEVENTDATA%3E%3CBR%20%2F%3E%3CDATA%3EProduct%3A%20Remote%20Desktop%20Services%20SxS%20Network%20Stack%20--%20Configuration%20completed%20successfully.%3C%2FDATA%3E%3CBR%20%2F%3E%3CDATA%3E(NULL)%3C%2FDATA%3E%3CBR%20%2F%3E%3CDATA%3E(NULL)%3C%2FDATA%3E%3CBR%20%2F%3E%3CDATA%3E(NULL)%3C%2FDATA%3E%3CBR%20%2F%3E%3CDATA%3E(NULL)%3C%2FDATA%3E%3CBR%20%2F%3E%3CDATA%3E(NULL)%3C%2FDATA%3E%3CBR%20%2F%3E%3CDATA%3E%3CBR%20%2F%3E%3C%2FDATA%3E%3CBR%20%2F%3E%3CBINARY%3E%3C%2FBINARY%3E%3CBR%20%2F%3E%3C%2FEVENTDATA%3E%3CBR%20%2F%3E%3C%2FEVENT%3E%3CBR%20%2F%3E%3CBR%20%2F%3ELog%20Name%3A%20Application%3CBR%20%2F%3ESource%3A%20Microsoft-Windows-RestartManager%3CBR%20%2F%3EDate%3A%203%2F28%2F2019%202%3A32%3A48%20PM%3CBR%20%2F%3EEvent%20ID%3A%2010000%3CBR%20%2F%3ETask%20Category%3A%20None%3CBR%20%2F%3ELevel%3A%20Information%3CBR%20%2F%3EKeywords%3A%20%3CBR%20%2F%3EUser%3A%20SYSTEM%3CBR%20%2F%3EComputer%3A%20wvdhost.test.com%3CBR%20%2F%3EDescription%3A%3CBR%20%2F%3EStarting%20session%200%20-%20%E2%80%8E2019%E2%80%8E-%E2%80%8E03%E2%80%8E-%E2%80%8E28T14%3A32%3A48.506934400Z.%3CBR%20%2F%3EEvent%20Xml%3A%3CBR%20%2F%3E%3CEVENT%20xmlns%3D%22http%3A%2F%2Fschemas.microsoft.com%2Fwin%2F2004%2F08%2Fevents%2Fevent%22%3E%3CBR%20%2F%3E%3CSYSTEM%3E%3CBR%20%2F%3E%3CPROVIDER%20name%3D%22Microsoft-Windows-RestartManager%22%20guid%3D%22%7B%7D%22%3E%3C%2FPROVIDER%3E%3CBR%20%2F%3E%3CEVENTID%3E10000%3C%2FEVENTID%3E%3CBR%20%2F%3E%3CVERSION%3E0%3C%2FVERSION%3E%3CBR%20%2F%3E%3CLEVEL%3E4%3C%2FLEVEL%3E%3CBR%20%2F%3E%3CTASK%3E0%3C%2FTASK%3E%3CBR%20%2F%3E%3COPCODE%3E0%3C%2FOPCODE%3E%3CBR%20%2F%3E%3CKEYWORDS%3E0x8000000000000000%3C%2FKEYWORDS%3E%3CBR%20%2F%3E%3CTIMECREATED%20systemtime%3D%222019-03-28T14%3A32%3A48.518299200Z%22%3E%3C%2FTIMECREATED%3E%3CBR%20%2F%3E%3CEVENTRECORDID%3E548%3C%2FEVENTRECORDID%3E%3CBR%20%2F%3E%3CCORRELATION%3E%3C%2FCORRELATION%3E%3CBR%20%2F%3E%3CEXECUTION%20processid%3D%225600%22%20threadid%3D%226308%22%3E%3C%2FEXECUTION%3E%3CBR%20%2F%3E%3CCHANNEL%3EApplication%3C%2FCHANNEL%3E%3CBR%20%2F%3E%3CCOMPUTER%3Ewvdhost.test.com%3C%2FCOMPUTER%3E%3CBR%20%2F%3E%3CSECURITY%20userid%3D%22%22%3E%3C%2FSECURITY%3E%3CBR%20%2F%3E%3C%2FSYSTEM%3E%3CBR%20%2F%3E%3CUSERDATA%3E%3CBR%20%2F%3E%3CRMSESSIONEVENT%20xmlns%3D%22http%3A%2F%2Fwww.microsoft.com%2F2005%2F08%2FWindows%2FReliability%2FRestartManager%2F%22%3E%3CBR%20%2F%3E%3CRMSESSIONID%3E0%3C%2FRMSESSIONID%3E%3CBR%20%2F%3E%3CUTCSTARTTIME%3E2019-03-28T14%3A32%3A48.506934400Z%3C%2FUTCSTARTTIME%3E%3CBR%20%2F%3E%3C%2FRMSESSIONEVENT%3E%3CBR%20%2F%3E%3C%2FUSERDATA%3E%3CBR%20%2F%3E%3C%2FEVENT%3E%3CBR%20%2F%3E%3CBR%20%2F%3ELog%20Name%3A%20Application%3CBR%20%2F%3ESource%3A%20MsiInstaller%3CBR%20%2F%3EDate%3A%203%2F28%2F2019%202%3A32%3A48%20PM%3CBR%20%2F%3EEvent%20ID%3A%201040%3CBR%20%2F%3ETask%20Category%3A%20None%3CBR%20%2F%3ELevel%3A%20Information%3CBR%20%2F%3EKeywords%3A%20Classic%3CBR%20%2F%3EUser%3A%20SYSTEM%3CBR%20%2F%3EComputer%3A%20wvdhost.test.com%3CBR%20%2F%3EDescription%3A%3CBR%20%2F%3EBeginning%20a%20Windows%20Installer%20transaction%3A%20C%3A%5CProgram%20Files%5CMicrosoft%20RDInfra%5CSxSStack-1.0.1902.17001.msi.%20Client%20Process%20Id%3A%204400.%3CBR%20%2F%3EEvent%20Xml%3A%3CBR%20%2F%3E%3CEVENT%20xmlns%3D%22http%3A%2F%2Fschemas.microsoft.com%2Fwin%2F2004%2F08%2Fevents%2Fevent%22%3E%3CBR%20%2F%3E%3CSYSTEM%3E%3CBR%20%2F%3E%3CPROVIDER%20name%3D%22MsiInstaller%22%3E%3C%2FPROVIDER%3E%3CBR%20%2F%3E%3CEVENTID%20qualifiers%3D%220%22%3E1040%3C%2FEVENTID%3E%3CBR%20%2F%3E%3CLEVEL%3E4%3C%2FLEVEL%3E%3CBR%20%2F%3E%3CTASK%3E0%3C%2FTASK%3E%3CBR%20%2F%3E%3CKEYWORDS%3E0x80000000000000%3C%2FKEYWORDS%3E%3CBR%20%2F%3E%3CTIMECREATED%20systemtime%3D%222019-03-28T14%3A32%3A48.491308300Z%22%3E%3C%2FTIMECREATED%3E%3CBR%20%2F%3E%3CEVENTRECORDID%3E547%3C%2FEVENTRECORDID%3E%3CBR%20%2F%3E%3CCHANNEL%3EApplication%3C%2FCHANNEL%3E%3CBR%20%2F%3E%3CCOMPUTER%3Ewvdhost.test.com%3C%2FCOMPUTER%3E%3CBR%20%2F%3E%3CSECURITY%20userid%3D%22%22%3E%3C%2FSECURITY%3E%3CBR%20%2F%3E%3C%2FSYSTEM%3E%3CBR%20%2F%3E%3CEVENTDATA%3E%3CBR%20%2F%3E%3CDATA%3EC%3A%5CProgram%20Files%5CMicrosoft%20RDInfra%5CSxSStack-1.0.1902.17001.msi%3C%2FDATA%3E%3CBR%20%2F%3E%3CDATA%3E4400%3C%2FDATA%3E%3CBR%20%2F%3E%3CDATA%3E(NULL)%3C%2FDATA%3E%3CBR%20%2F%3E%3CDATA%3E(NULL)%3C%2FDATA%3E%3CBR%20%2F%3E%3CDATA%3E(NULL)%3C%2FDATA%3E%3CBR%20%2F%3E%3CDATA%3E(NULL)%3C%2FDATA%3E%3CBR%20%2F%3E%3CDATA%3E%3CBR%20%2F%3E%3C%2FDATA%3E%3CBR%20%2F%3E%3C%2FEVENTDATA%3E%3CBR%20%2F%3E%26lt%3B%2FEvent%26gt%3B%3C%2FEVENT%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3BAny%20thoughts%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-390019%22%20slang%3D%22en-US%22%3ERe%3A%20RD%20Session%20Host%20stuck%20at%20Status%3A%20%22Upgrading%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-390019%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F307422%22%20target%3D%22_blank%22%3E%40andersidahl%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20in%20the%20same%20boat.%20Everything%20works%20fine%20with%20the%20template%20but%20I%20would%20like%20to%20be%20able%20to%20automate%20the%20creation%20of%20my%20own%20Session%20Hosts%20and%20can%20get%20everything%20moving%20to%20the%20point%20of%20where%20the%20RD%20Session%20Host%20is%20stuck%20with%20the%20Status%3A%20Upgrading.%20Status%20remained%20the%20same%20overnight.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnyway%20we%20can%20check%20what%20could%20be%20failing.%20RDSDiagnosticActivities%20does%20not%20seem%20to%20have%20anything%20regarding%20the%20failing%20of%20that%20registration%20process.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-388483%22%20slang%3D%22en-US%22%3ERe%3A%20RD%20Session%20Host%20stuck%20at%20Status%3A%20%22Upgrading%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-388483%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F139744%22%20target%3D%22_blank%22%3E%40Eva%20Seydl%3C%2FA%3E%26nbsp%3BHi%20Eva%2C%20thanks%20for%20reaching%20out.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20not%20deploying%20with%20a%20template%2C%20that%20one%20works%20fine.%20I%20am%20trying%20to%20deploy%20to%20a%20Windows%20Server%202016%20previously%20deployed.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20steps%20done%20are%20from%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Fcreate-host-pools-powershell%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Fcreate-host-pools-powershell%3C%2FA%3E.%20Everything%20seems%20to%20go%20fine%20with%20all%20steps%2C%20except%20that%20we%20are%20unable%20to%20connect%20after%20doing%20such%20steps%20and%20also%20when%20running%20the%20Get-RdsSessionHost%20it%20shows%20the%20agent%20as%20still%20updating.%20On%20the%20server%20its%20also%20some%20events%20which%20shows%20some%20error%2C%20I%20could%20send%20that%20directly%20if%20you%20have%20a%20secure%20drop%20for%20that%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20regards%2C%20Anders%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-387539%22%20slang%3D%22en-US%22%3ERe%3A%20RD%20Session%20Host%20stuck%20at%20Status%3A%20%22Upgrading%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-387539%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F307422%22%20target%3D%22_blank%22%3E%40andersidahl%3C%2FA%3E%3A%20Can%20you%20please%20re-run%20the%20template%20and%20create%20a%20new%20host%20pool%3F%20Delete%20the%20existing%20one%20it%20got%20into%20a%20bad%20state.%20If%20this%20happens%20again%20please%20let%20us%20know%20as%20we%20would%20like%20to%20get%20into%20the%20root%20cause%20of%20those%20issues.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-409909%22%20slang%3D%22en-US%22%3ERe%3A%20RD%20Session%20Host%20stuck%20at%20Status%3A%20%22Upgrading%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-409909%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F312165%22%20target%3D%22_blank%22%3E%40alhenriq_ms%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20the%20response!%20I%20had%20a%20look%20at%20the%20%22Qwinsta%22%20(result%20below)%20and%20saw%20that%20the%20SXS%20was%20running%2C%20so%20I%20rebooted%20the%20server%20and%20waited%2015%20minutes%20with%20no%20change.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESESSIONNAME%20USERNAME%20ID%20STATE%20TYPE%20DEVICE%3CBR%20%2F%3Eservices%200%20Disc%3CBR%20%2F%3Econsole%201%20Conn%3CBR%20%2F%3E%26gt%3Brdp-tcp%231%26nbsp%3B%202%20Active%3CBR%20%2F%3E31c5ce94259d4...%2065536%20Listen%3CBR%20%2F%3Erdp-tcp%2065537%20Listen%3CBR%20%2F%3Erdp-sxs%23%23%23%23%23%2065538%20Listen%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EStill%20have%20the%20same%20behavior%20of%20SXS%20seeming%20like%20its%20trying%20to%20reinstall%20every%205%20minutes%20with%20regards%20to%20entries%20in%20the%20Event%20Viewer.%3C%2FP%3E%3CP%3ECheers%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-456909%22%20slang%3D%22en-US%22%3ERe%3A%20RD%20Session%20Host%20stuck%20at%20Status%3A%20%22Upgrading%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-456909%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F312165%22%20target%3D%22_blank%22%3E%40alhenriq_ms%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20seem%20to%20be%20OK%20now%20after%20a%20complete%20removal%20and%20re-install.%20I%20see%20the%20agent%20version%20incremented%20to%201.0.1.18%20so%20perhaps%20something%20has%20changed.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20do%20still%20see%20duplicated%20entries%20in%20appwiz%20for%20the%20RDS%20Infrastructure%20Agent.%20Looks%20like%20the%20original%20version%20I%20installed%2C%20and%20the%20updated%20agent%20are%20both%20still%20installed.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
andersidahl
Occasional Contributor
Hi, I am trying to add a Windows Server 2016 as a session host. I have followed the steps at: https://docs.microsoft.com/en-us/azure/virtual-desktop/create-host-pools-powershell and it shows up as a session host with PS with the Get-RdsSessionHost command, but the status in the output is stuck at Status : Upgrading. In the event logs in gives a bunch of errors, these are a couple of them: Events: Microsoft.RDInfra.Agent.Monitoring.MonitoringAgentInstallSettings Value of the 'AgentMonitoringAuthId' is empty Microsoft.RDInfra.Agent.Monitoring.MonitoringAgentInstallSettings RDInfraAgent key doesn't exist Unable to retrieve DefaultAgent from registry: System.NullReferenceException RDAgentBootLoader.BootLoaderSettings.get_DefaultAgentPath() i C:\agent\_work\1\s\src\RDAgent\src\RDAgentBootLoader\BootLoaderSettings.cs:rad 82
15 Replies

@andersidahl: Can you please re-run the template and create a new host pool? Delete the existing one it got into a bad state. If this happens again please let us know as we would like to get into the root cause of those issues.

@Eva Seydl Hi Eva, thanks for reaching out.

 

I am not deploying with a template, that one works fine. I am trying to deploy to a Windows Server 2016 previously deployed.

 

The steps done are from: https://docs.microsoft.com/en-us/azure/virtual-desktop/create-host-pools-powershell. Everything seems to go fine with all steps, except that we are unable to connect after doing such steps and also when running the Get-RdsSessionHost it shows the agent as still updating. On the server its also some events which shows some error, I could send that directly if you have a secure drop for that?

 

Best regards, Anders

@andersidahl 

 

I am in the same boat. Everything works fine with the template but I would like to be able to automate the creation of my own Session Hosts and can get everything moving to the point of where the RD Session Host is stuck with the Status: Upgrading. Status remained the same overnight.

 

Anyway we can check what could be failing. RDSDiagnosticActivities does not seem to have anything regarding the failing of that registration process.

Checking Event Viewer, I see that the Remote Desktop Services SxS Network Stack is stuck in some sort of loop where the Session Host keeps re-running the MSI installer and re-configures the installed RDS SxS Network Stack product every 5 minutes:

 

Log Name: Application
Source: Microsoft-Windows-RestartManager
Date: 3/28/2019 2:32:50 PM
Event ID: 10001
Task Category: None
Level: Information
Keywords:
User: SYSTEM
Computer: wvdhost.test.com
Description:
Ending session 0 started ‎2019‎-‎03‎-‎28T14:32:48.506934400Z.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-RestartManager" Guid="{}" />
<EventID>10001</EventID>
<Version>0</Version>
<Level>4</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8000000000000000</Keywords>
<TimeCreated SystemTime="2019-03-28T14:32:50.599897100Z" />
<EventRecordID>552</EventRecordID>
<Correlation />
<Execution ProcessID="5600" ThreadID="2720" />
<Channel>Application</Channel>
<Computer>wvdhost.test.com</Computer>
<Security UserID="" />
</System>
<UserData>
<RmSessionEvent xmlns="http://www.microsoft.com/2005/08/Windows/Reliability/RestartManager/">
<RmSessionId>0</RmSessionId>
<UTCStartTime>2019-03-28T14:32:48.506934400Z</UTCStartTime>
</RmSessionEvent>
</UserData>
</Event>

Log Name: Application
Source: MsiInstaller
Date: 3/28/2019 2:32:50 PM
Event ID: 1042
Task Category: None
Level: Information
Keywords: Classic
User: SYSTEM
Computer: wvdhost.test.com
Description:
Ending a Windows Installer transaction: C:\Program Files\Microsoft RDInfra\SxSStack-1.0.1902.17001.msi. Client Process Id: 4400.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="MsiInstaller" />
<EventID Qualifiers="0">1042</EventID>
<Level>4</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2019-03-28T14:32:50.622450000Z" />
<EventRecordID>551</EventRecordID>
<Channel>Application</Channel>
<Computer>wvdhost.test.com</Computer>
<Security UserID="" />
</System>
<EventData>
<Data>C:\Program Files\Microsoft RDInfra\SxSStack-1.0.1902.17001.msi</Data>
<Data>4400</Data>
<Data>(NULL)</Data>
<Data>(NULL)</Data>
<Data>(NULL)</Data>
<Data>(NULL)</Data>
<Data>
</Data>
</EventData>
</Event>

Log Name: Application
Source: MsiInstaller
Date: 3/28/2019 2:32:50 PM
Event ID: 1035
Task Category: None
Level: Information
Keywords: Classic
User: SYSTEM
Computer: wvdhost.test.com
Description:
Windows Installer reconfigured the product. Product Name: Remote Desktop Services SxS Network Stack. Product Version: 1.0.1902.17001. Product Language: 1033. Manufacturer: Microsoft Corporation. Reconfiguration success or error status: 0.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="MsiInstaller" />
<EventID Qualifiers="0">1035</EventID>
<Level>4</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2019-03-28T14:32:50.591183400Z" />
<EventRecordID>550</EventRecordID>
<Channel>Application</Channel>
<Computer>wvdhost.test.com</Computer>
<Security UserID="" />
</System>
<EventData>
<Data>Remote Desktop Services SxS Network Stack</Data>
<Data>1.0.1902.17001</Data>
<Data>1033</Data>
<Data>0</Data>
<Data>Microsoft Corporation</Data>
<Data>(NULL)</Data>
<Data>
</Data>
<Binary></Binary>
</EventData>
</Event>

Log Name: Application
Source: MsiInstaller
Date: 3/28/2019 2:32:50 PM
Event ID: 11728
Task Category: None
Level: Information
Keywords: Classic
User: SYSTEM
Computer: wvdhost.test.com
Description:
Product: Remote Desktop Services SxS Network Stack -- Configuration completed successfully.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="MsiInstaller" />
<EventID Qualifiers="0">11728</EventID>
<Level>4</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2019-03-28T14:32:50.575597200Z" />
<EventRecordID>549</EventRecordID>
<Channel>Application</Channel>
<Computer>wvdhost.test.com</Computer>
<Security UserID="" />
</System>
<EventData>
<Data>Product: Remote Desktop Services SxS Network Stack -- Configuration completed successfully.</Data>
<Data>(NULL)</Data>
<Data>(NULL)</Data>
<Data>(NULL)</Data>
<Data>(NULL)</Data>
<Data>(NULL)</Data>
<Data>
</Data>
<Binary></Binary>
</EventData>
</Event>

Log Name: Application
Source: Microsoft-Windows-RestartManager
Date: 3/28/2019 2:32:48 PM
Event ID: 10000
Task Category: None
Level: Information
Keywords:
User: SYSTEM
Computer: wvdhost.test.com
Description:
Starting session 0 - ‎2019‎-‎03‎-‎28T14:32:48.506934400Z.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-RestartManager" Guid="{}" />
<EventID>10000</EventID>
<Version>0</Version>
<Level>4</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8000000000000000</Keywords>
<TimeCreated SystemTime="2019-03-28T14:32:48.518299200Z" />
<EventRecordID>548</EventRecordID>
<Correlation />
<Execution ProcessID="5600" ThreadID="6308" />
<Channel>Application</Channel>
<Computer>wvdhost.test.com</Computer>
<Security UserID="" />
</System>
<UserData>
<RmSessionEvent xmlns="http://www.microsoft.com/2005/08/Windows/Reliability/RestartManager/">
<RmSessionId>0</RmSessionId>
<UTCStartTime>2019-03-28T14:32:48.506934400Z</UTCStartTime>
</RmSessionEvent>
</UserData>
</Event>

Log Name: Application
Source: MsiInstaller
Date: 3/28/2019 2:32:48 PM
Event ID: 1040
Task Category: None
Level: Information
Keywords: Classic
User: SYSTEM
Computer: wvdhost.test.com
Description:
Beginning a Windows Installer transaction: C:\Program Files\Microsoft RDInfra\SxSStack-1.0.1902.17001.msi. Client Process Id: 4400.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="MsiInstaller" />
<EventID Qualifiers="0">1040</EventID>
<Level>4</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2019-03-28T14:32:48.491308300Z" />
<EventRecordID>547</EventRecordID>
<Channel>Application</Channel>
<Computer>wvdhost.test.com</Computer>
<Security UserID="" />
</System>
<EventData>
<Data>C:\Program Files\Microsoft RDInfra\SxSStack-1.0.1902.17001.msi</Data>
<Data>4400</Data>
<Data>(NULL)</Data>
<Data>(NULL)</Data>
<Data>(NULL)</Data>
<Data>(NULL)</Data>
<Data>
</Data>
</EventData>
</Event>

 Any thoughts?

Same problem here. It seems like the agent is upgrading immediately after installing. I now have two versions of the agent installed.

I tried uninstalling the agent and re-installing using what looks like an upgraded installer (version 1.0.1.10) but now instead of Status: Upgrading, my RD host is in Status: Unavailable.

 

Also have these additional errors in the RemoteDesktopServices-MonitoringLogger and RemoteDesktopServices-MonitoringAgentLoader logs respectively

 

Microsoft.RDInfra.Monitoring.AgentMonitoringService.AgentMonitoringServiceWorker
Value of the 'AgentMonitoringAccount' in 'SOFTWARE\Microsoft\RDMonitoringAgent' is empty

-------

Microsoft.RDInfra.Monitoring.AgentMonitoringService.AgentMonitoringServiceWorker
Fail to set default dimensions Invalid Operation: Fail to set default dimensions, error code is 2147942487.. Error code is 80070057

@andersidahl 

Hi Anders,

 

The above exception, to me, indicates that the bootloader cannot find the agent because the required location is missing a registry key (Unable to retrieve DefaultAgent path from registry).

 

After installing the WVD Agent - it should have declared itself the default agent by creating this key in the AgentBootLoader regkey location HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\RDAgentBootLoader -> DefaultAgent

 

Can you verify that this key exists? Also please make sure you stop the AgentBootLoader service before trying to install the WVD Agent MSI.

 

thanks,

-al

 

 

 

@smithanc 

Hi,

 

Can you verify if the reverse connect listener is up and running? On the VM that is stuck upgrading open a cmd window and run 'Qwinsta'  you should see <SESSIONNAME> rdp-sxs190217001 <id> 655.. <STATE>Listen

 

if you do - typically rebooting the VM can help work around this.

 

Thanks,

-al

@Stephen Ferrero 

Hi Stephen,

 

The monitoring agent is reporting this because there was a failure onboarding - please stop the bootloader service and try re-installing the WVD Agent. Verify that the DefaultAgent key exists under

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\RDAgentBootLoader -> DefaultAgent.

 

Then start the bootloader service.

 

thanks,

-al

 

@alhenriq_ms 

 

Hi, I can verify that this was already tested. I also tried pulling the newer versjon setup from another server-setup that worked and installing manually and changing the registerkey, but it kept reconfiguring back to 1.6/1.7 i believe the version was. Also a lot of reboots inbetween and waiting, though it kept going back to Upgrading.

@andersidahl 

 

Ok I misunderstood, I thought you had issues with the bootloader loading the agent. I can check your logs from my end, if you like. You can send me your VM name (FQDN helps)  via Private Message.

 

thanks,

-al

@alhenriq_ms 

@andersidahl 

 

It looks like the RDAgent on the doc for manually configuring is different than the version being pushed using the deployment for a host pool. The downloaded agent version appears to be 1.0.0.1462 and the version of the agent on the provisioned host pools is 1.0.1.10. It seems to upgrade it automatically but never complete for one reason or another.

 

The boot loader and sxs installers don't have version numbers in them that I can find to confirm they are the same.

 

Is there a download link for the correct agent version?

Hi @aspicola2605 

 

You can determine the versions via control panel "uninstall or change a program"

As of now the current versions pushed are:

The bootloader at this time should report version "1.0.0.0"

"Remote Desktop Services Sxs Network Stack" - "1.0.1902.17001"

"Remote Desktop Services Infrastructure Agent" - "1.0.1.10"

 

I am interested why the agent is failing the upgrade can you forward me your VM FQDN (private message)

 

thanks,

-al

 

@alhenriq_ms 

 

I know the versions. What I'm saying is the downloadable version in the MS docs is wrong which is probably why it keeps upgrading and getting stuck.

 

I'd rather not provide my FQDN because it's part of my companies network.

@alhenriq_ms 

 

Thanks for the response! I had a look at the "Qwinsta" (result below) and saw that the SXS was running, so I rebooted the server and waited 15 minutes with no change.

 

SESSIONNAME USERNAME ID STATE TYPE DEVICE
services 0 Disc
console 1 Conn
>rdp-tcp#1  2 Active
31c5ce94259d4... 65536 Listen
rdp-tcp 65537 Listen
rdp-sxs##### 65538 Listen

 

Still have the same behavior of SXS seeming like its trying to reinstall every 5 minutes with regards to entries in the Event Viewer.

Cheers

@alhenriq_ms 

Thanks,

 

I seem to be OK now after a complete removal and re-install. I see the agent version incremented to 1.0.1.18 so perhaps something has changed.

 

I do still see duplicated entries in appwiz for the RDS Infrastructure Agent. Looks like the original version I installed, and the updated agent are both still installed.

 

Related Conversations
Extentions Synchronization
Deleted in Discussions on
3 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
36 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
9 Replies