Advertisement
Cogger

VMware-RDS-Fix.ps1

Jan 10th, 2022
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Fixes - Unable to launch RDS based desktop or application session (67479)
  2. New-Item -Path Registry::"HKLM\SOFTWARE\VMware, Inc.\VMware VDM\Plugins\wsnm\desktop\Params" -Name Main -EA SilentlyContinue
  3. reg load HKLM\Default_User C:\Users\Default\NTUSER.DAT >$null
  4. New-ItemProperty -Path "HKLM:\SOFTWARE\VMware, Inc.\VMware VDM\Plugins\wsnm\desktop\Params" -Name "UsePPNotificationsForSessions = true" -PropertyType String -Value " " -EA SilentlyContinue
  5. Start-Sleep -Seconds 60; cls ; Write-Host('This machine will reboot in exactly 1 minute.') -Fore Yellow
  6. Invoke-CimMethod -ComputerName $env:COMPUTERNAME -ClassName 'Win32_OperatingSystem' -MethodName 'Reboot'
  7.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement