I am using Visual studio Code with Powershell Pro Tools
Everything packages like it should.
One line of of the script continues to throw an error.
Get-RDUserSession : The term ‘Get-RDUserSession’ is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:3986 char:28
-
$ShadowInfo3 = Get-RDUserSession -ConnectionBroker $GW3 | ...
-
~~~~~~~~~~~~~~~~~
- CategoryInfo : ObjectNotFound: (Get-RDUserSession:String) [], CommandNotFoundException
- FullyQualifiedErrorId : CommandNotFoundException
However, if I use v5.4.3 of the tools with DotNetVersion = ‘v4.6.2’
. The entire script works as intended.
Thus far I have tried the following newer versions
5.9.0
5.10
5.11.0
5.12.5
5.12.6
I have also tried using DotNetVersion 4.8, 4.7.2 same thing
v5.4.3 will work but not any other version I have tried thus far.
Any assistance would be greatly appreciated.