[BUG] WAC 1910.2 - cannot enable role access and user connection to VM using browser

%3CLINGO-SUB%20id%3D%22lingo-sub-1379309%22%20slang%3D%22en-US%22%3E%5BBUG%5D%20WAC%201910.2%20-%20cannot%20enable%20role%20access%20and%20user%20connection%20to%20VM%20using%20browser%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1379309%22%20slang%3D%22en-US%22%3E%3CP%3EAfter%20installing%20Windows%20Hyper-V%20Server%202019%20i%20installed%20WAC%201910%20but%20after%20installing%20Windows%20Update%20was%20updated%20to%201910.2%20when%20i%20try%20enable%20role%20base%20access%20i%20see%20this%20information%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3EAt%20C%3A%5CWindows%5CTemp%5CWindowsAdminCenter.Jea%5CInstallJeaFeature.ps1%3A1%20char%3A15%20%2B%20Configuration%20InstallJeaFeature%20%2B%20~~~~~~~~~~~~~~~~~%20System.Management.Automation.PSArgumentException%3A%20Cannot%20process%20argument%20because%20the%20value%20of%20argument%20%22fullFilePath%22%20is%20not%20valid.%20Change%20the%20value%20of%20the%20%22fullFilePath%22%20argument%20and%20run%20the%20operation%20again.%20at%20Microsoft.PowerShell.DesiredStateConfiguration.CimDSCParser.GetFileContent(String%20fullFilePath)%20at%20Microsoft.PowerShell.DesiredStateConfiguration.CimDSCParser.ParseSchemaMof(String%20filePath)%20at%20Microsoft.PowerShell.DesiredStateConfiguration.Internal.DscClassCache.ImportClasses(String%20path%2C%20Tuple%602%20moduleInfo%2C%20Collection%601%20errors%2C%20Boolean%20importInBoxResourcesImplicitly)%20at%20Microsoft.PowerShell.DesiredStateConfiguration.Internal.DscClassCache.Initialize(Collection%601%20errors%2C%20List%601%20modulePathList)%20at%20Microsoft.PowerShell.DesiredStateConfiguration.Internal.DscClassCache.LoadDefaultCimKeywords(Dictionary%602%20functionsToDefine%2C%20Collection%601%20errors%2C%20List%601%20modulePathList%2C%20Boolean%20cacheResourcesFromMultipleModuleVersions)%20at%20System.Management.Automation.Language.Parser.ConfigurationStatementRule(IEnumerable%601%20customAttributes%2C%20Token%20configurationToken)%20At%20C%3A%5CWindows%5CTemp%5CWindowsAdminCenter.Jea%5CInstallJeaFeature.ps1%3A2%20char%3A1%20%2B%20%7B%20%2B%20~%20Unexpected%20token%20'%7B'%20in%20expression%20or%20statement.%20At%20C%3A%5CWindows%5CTemp%5CWindowsAdminCenter.Jea%5CInstallJeaFeature.ps1%3A69%20char%3A1%20%2B%20%7D%20%2B%20~%20Unexpected%20token%20'%7D'%20in%20expression%20or%20statement.%20At%20C%3A%5CWindows%5CTemp%5CWindowsAdminCenter.Jea%5CInstallJeaFeature.ps1%3A5%20char%3A37%20%2B%20%5BString%5D%20%24ConfigurationId%20%3D%20'localhost'%2C%20%2B%20~~~~~~~~~~~%20The%20assignment%20expression%20is%20not%20valid.%20The%20input%20to%20an%20assignment%20operator%20must%20be%20an%20object%20that%20is%20able%20to%20accept%20assignments%2C%20such%20as%20a%20variable%20or%20a%20property.%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EI%20didn't%20found%20any%20fix%20for%20this%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnother%20thing%20is%20that%20no%20matter%20witch%20browser%20user%20(i%20don't%20have%20old%20version%20od%20EDGE%2C%20only%20chromium%20version)%20i%20cannot%20user%20connect%20to%20VM%20by%20browse.%20To%20connect%20VM%20i%20need%20download%20RDP%20file%20%3A%5C%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1592140%22%20slang%3D%22en-US%22%3ERe%3A%20%5BBUG%5D%20WAC%201910.2%20-%20cannot%20enable%20role%20access%20and%20user%20connection%20to%20VM%20using%20browser%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1592140%22%20slang%3D%22en-US%22%3E%3CP%3ESo%20we%20have%20now%20version%202007%20and%20still%20that%20same%20problem%20%3A%5C%3C%2Fimg%3E%3C%2FP%3E%3CP%3EDid%20someone%20form%20WAC%20team%20even%20check%20this%20%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1593256%22%20slang%3D%22en-US%22%3ERe%3A%20%5BBUG%5D%20WAC%201910.2%20-%20cannot%20enable%20role%20access%20and%20user%20connection%20to%20VM%20using%20browser%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1593256%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F440088%22%20target%3D%22_blank%22%3E%40_bolek_%3C%2FA%3E%26nbsp%3BYes!%20We%20are%20looking%20into%20this.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1594305%22%20slang%3D%22en-US%22%3ERe%3A%20%5BBUG%5D%20WAC%201910.2%20-%20cannot%20enable%20role%20access%20and%20user%20connection%20to%20VM%20using%20browser%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1594305%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F548197%22%20target%3D%22_blank%22%3E%40Prasidh_Arora%3C%2FA%3E%26nbsp%3Bi%20cen%20give%20you%20some%20insight%20about%20this%20bug%20after%20trying%20to%20resolve%20it.%3C%2FP%3E%3CP%3EFor%20some%20reason%20no%20matter%20what%20i%20try%20%22Get-DscResource%22%20did%20not%20work%20on%20Windows%20Hyper-V%20server%202016%20and%202019.%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20thing%20is%20that%20i%20was%20able%20to%20install%20Role-Base%20on%2018xx%20version%20of%20WAC%20but%20after%20upgrade%20it%20was%20impossible%20to%20do.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20install%20modules%20of%20DSCResources%2C%20PSDSCResources%2C%20xDSCResources%20and%20still%20not%20working%20%3A%5C%3C%2Fimg%3E%20still%20%22Get-DscResource%22%20not%20present.%20Basically%20when%20i%20try%20type%20this%20i%20got%20error%20that%20this%20(in%20fresh%20installed%20OS)%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3EThe%20term%20'Get-DscResource'%20is%20not%20recognized%20as%20the%20name%20of%20a%20cmdlet...%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3Ei%20tried%20to%20reinstall%20WMF%205.1%20still%20no%20result%20%3A%5C%3C%2Fimg%3E%3C%2FP%3E%3CP%3Ei%20tried%20to%20install%20modules%20and%20sill%20that%20same%3C%2FP%3E%3CP%3ESo%20its%20related%20to%20DCS%20not%20present%20in%20other%20version%20of%20Windows%20Server%20then%20Essentials%2C%20Standard%2C%20Datacenter.%20I%20know%20that%20some%20variation%20of%20DSC%20is%20present%20in%20Nano%20server%20after%20reading%20in%20blog%20post%20and%20uservoice%2C%20more%20precise%20package%20%22%3CSPAN%20class%3D%22hljs-pscommand%22%3EMicrosoft-NanoServer%3C%2FSPAN%3E%3CSPAN%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-pscommand%22%3EDSC-Package%3C%2FSPAN%3E%22%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

After installing Windows Hyper-V Server 2019 i installed WAC 1910 but after installing Windows Update was updated to 1910.2 when i try enable role base access i see this information:

 

At C:\Windows\Temp\WindowsAdminCenter.Jea\InstallJeaFeature.ps1:1 char:15 + Configuration InstallJeaFeature + ~~~~~~~~~~~~~~~~~ System.Management.Automation.PSArgumentException: Cannot process argument because the value of argument "fullFilePath" is not valid. Change the value of the "fullFilePath" argument and run the operation again. at Microsoft.PowerShell.DesiredStateConfiguration.CimDSCParser.GetFileContent(String fullFilePath) at Microsoft.PowerShell.DesiredStateConfiguration.CimDSCParser.ParseSchemaMof(String filePath) at Microsoft.PowerShell.DesiredStateConfiguration.Internal.DscClassCache.ImportClasses(String path, Tuple`2 moduleInfo, Collection`1 errors, Boolean importInBoxResourcesImplicitly) at Microsoft.PowerShell.DesiredStateConfiguration.Internal.DscClassCache.Initialize(Collection`1 errors, List`1 modulePathList) at Microsoft.PowerShell.DesiredStateConfiguration.Internal.DscClassCache.LoadDefaultCimKeywords(Dictionary`2 functionsToDefine, Collection`1 errors, List`1 modulePathList, Boolean cacheResourcesFromMultipleModuleVersions) at System.Management.Automation.Language.Parser.ConfigurationStatementRule(IEnumerable`1 customAttributes, Token configurationToken) At C:\Windows\Temp\WindowsAdminCenter.Jea\InstallJeaFeature.ps1:2 char:1 + { + ~ Unexpected token '{' in expression or statement. At C:\Windows\Temp\WindowsAdminCenter.Jea\InstallJeaFeature.ps1:69 char:1 + } + ~ Unexpected token '}' in expression or statement. At C:\Windows\Temp\WindowsAdminCenter.Jea\InstallJeaFeature.ps1:5 char:37 + [String] $ConfigurationId = 'localhost', + ~~~~~~~~~~~ The assignment expression is not valid. The input to an assignment operator must be an object that is able to accept assignments, such as a variable or a property.

I didn't found any fix for this

 

Another thing is that no matter witch browser user (i don't have old version od EDGE, only chromium version) i cannot user connect to VM by browse. To connect VM i need download RDP file :\

3 Replies
Highlighted

So we have now version 2007 and still that same problem :\

Did someone form WAC team even check this ?

Highlighted
Highlighted

@Prasidh_Arora i cen give you some insight about this bug after trying to resolve it.

For some reason no matter what i try "Get-DscResource" did not work on Windows Hyper-V server 2016 and 2019. 

Best thing is that i was able to install Role-Base on 18xx version of WAC but after upgrade it was impossible to do.

 

I tried install modules of DSCResources, PSDSCResources, xDSCResources and still not working :\ still "Get-DscResource" not present. Basically when i try type this i got error that this (in fresh installed OS)

The term 'Get-DscResource' is not recognized as the name of a cmdlet...

i tried to reinstall WMF 5.1 still no result :\

i tried to install modules and sill that same

So its related to DCS not present in other version of Windows Server then Essentials, Standard, Datacenter. I know that some variation of DSC is present in Nano server after reading in blog post and uservoice, more precise package "Microsoft-NanoServer-DSC-Package