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