We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, the RDP deployment task depends on WMIC.exe, which has been deprecated by Microsoft
Although this issue can temporarily be resolved manually installing the WMIC feature, a different approach (e.g. PowerShell + WMI/CIM) is recommended.
The text was updated successfully, but these errors were encountered:
Hi @MichaelGrafnetter thanks for raising this issue and we'll look to getting the existing task deprecated and new replacement task added.
Sorry, something went wrong.
@webprofusion-chrisc You could just maybe modify the RDPListenerService.ps1 file and replace this line:
RDPListenerService.ps1
wmic /namespace:\\root\cimv2\TerminalServices PATH Win32_TSGeneralSetting Set SSLCertificateSHA1Hash="$($result.ManagedItem.CertificateThumbprintHash)"
with the following one:
Get-WmiObject -Class Win32_TSGeneralSetting -Namespace 'root\cimv2\TerminalServices' -Filter 'TerminalName="RDP-Tcp"' | Set-WmiInstance -Arguments @{ SSLCertificateSHA1Hash = $result.ManagedItem.CertificateThumbprintHash } -PutType UpdateOnly
It should do the same thing, while not requiring the external wmic.exe tool. I have not tested it though.
wmic.exe
No branches or pull requests
Hello, the RDP deployment task depends on WMIC.exe, which has been deprecated by Microsoft
Although this issue can temporarily be resolved manually installing the WMIC feature, a different approach (e.g. PowerShell + WMI/CIM) is recommended.
The text was updated successfully, but these errors were encountered: