Search This Blog
Showing posts with label remote desktop. Show all posts
Showing posts with label remote desktop. Show all posts
Sunday, December 9, 2012
How to enable remote desktop via command line
How to enable remote desktop via command line
http://vishnuvalentino.com/tips-and-trick/how-to-enable-remote-desktop-using-command-prompt/
Tuesday, May 3, 2011
Remote Desktop Not Working in Vista
Remote desktop is enabled, exception is checked, still remote desktop does not work.
"I've got the same problem: Vista+SP2, same event in logs, no access to remote desktop.
But, after some magic dances around my box with a process monitor, I found a solution. Basically all u need is to grant full control permission to HKLM\System\CurrentControlSet\Control\Terminal Server\RCM registry key to NETWORK SERVICE local account and restart "Terminal Services" service or reboot."
"I've got the same problem: Vista+SP2, same event in logs, no access to remote desktop.
But, after some magic dances around my box with a process monitor, I found a solution. Basically all u need is to grant full control permission to HKLM\System\CurrentControlSet\Control\Terminal Server\RCM registry key to NETWORK SERVICE local account and restart "Terminal Services" service or reboot."
Saturday, September 25, 2010
Generate RDP Files for Remote Desktop
Barebones RDP File (3 lines)
full address:s:
username:s:
password 51:b:
Group Policy: Run his CMD script at beginning of user login to generate the RDP file for Remote Desktop.
VBS:
Set oExec = WshShell.Exec("cryptRDP5.exe password")
pwdhash = oExec.StdOut.readall
To prevent dialog box from coming up, decimal 76
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\LocalDevices]
"XXX.XXX.XXX"=dword:0000004c
Script below will encrypt the password into the RDP code, generate a RDP file on the desktop, and run the RDP file. Run script at user login.
-----
Set WshShell = CreateObject("WScript.Shell")
computername = WshShell.ExpandEnvironmentStrings("%COMPUTERNAME%")
Select Case computername
Case "COMPUTER1"
user = "user1"
Case "COMPUTER2"
user = "user2"
End Select
Set oExec = WshShell.Exec("\\server\cryptRDP5.exe password")
pwdhash = oExec.StdOut.readall
outputfile = WshShell.ExpandEnvironmentStrings("%USERPROFILE%") & "\Desktop\Remote.rdp"
Set fso = CreateObject("Scripting.FileSystemObject")
Set fsofile = fso.CreateTextFile(outputfile)
fsofile.WriteLine("full address:s:remoteaddress")
fsofile.WriteLine("username:s:" & user)
fsofile.WriteLine("password 51:b:" & pwdhash)
fsofile.Close
WshShell.Run("mstsc " & outputfile), 1, true
full address:s:
username:s:
password 51:b:
Group Policy: Run his CMD script at beginning of user login to generate the RDP file for Remote Desktop.
VBS:
Set oExec = WshShell.Exec("cryptRDP5.exe password")
pwdhash = oExec.StdOut.readall
To prevent dialog box from coming up, decimal 76
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\LocalDevices]
"XXX.XXX.XXX"=dword:0000004c
Script below will encrypt the password into the RDP code, generate a RDP file on the desktop, and run the RDP file. Run script at user login.
-----
Set WshShell = CreateObject("WScript.Shell")
computername = WshShell.ExpandEnvironmentStrings("%COMPUTERNAME%")
Select Case computername
Case "COMPUTER1"
user = "user1"
Case "COMPUTER2"
user = "user2"
End Select
Set oExec = WshShell.Exec("\\server\cryptRDP5.exe password")
pwdhash = oExec.StdOut.readall
outputfile = WshShell.ExpandEnvironmentStrings("%USERPROFILE%") & "\Desktop\Remote.rdp"
Set fso = CreateObject("Scripting.FileSystemObject")
Set fsofile = fso.CreateTextFile(outputfile)
fsofile.WriteLine("full address:s:remoteaddress")
fsofile.WriteLine("username:s:" & user)
fsofile.WriteLine("password 51:b:" & pwdhash)
fsofile.Close
WshShell.Run("mstsc " & outputfile), 1, true
Monday, September 15, 2008
Server Execution Failed in Windows Vista
Special thanks to Todd9774, this fixed the server execution failed problem and my cannot remote into my desktop issue.
-----
Hi everyone. I have had this issue resolved for about 2 weeks now, but I have been too busy to post.
I have Vista Ultimate on my laptop, and I had the red X over the network icon, and the "Server Excecution Failed" message. It appeared that all automatic services running off of the "Local Service" account were not starting at boot. The fix, from Microsoft, is below.
1. Back up the registry.
2.Download and install SubinACL from
http://www.microsoft.com/downloads/details.aspx?FamilyID=e8ba3e56-d8fe-4a91-93cf-ed6985e3927b&displaylang=en
3.As an administrator, run the following commands from a command prompt (switch to the install directory for SubinACL first. Default is "C:\Program Files\Windows Resource Kits\Tools\" for 32-bit, and "C:\Program Files (x86)\Windows Resource Kits\Tools\" for 64 bit):
subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f
subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f
subinacl /subdirectories %SystemDrive% /grant=administrators=f /grant=system=f
The first two commands can take considerable time to complete, however each command can be run in a separate window to save time.
3. After completing all four of the above commands you have to reapply the default security template by running the following command:
secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose
4. Reboot.
It appears, at least for me, that several permissions were reset in the registry. I am a very advanced user, but to be honest, I am not sure how this happened. All I know is I am fixed, and that the issue happened after reboot of the October Microsoft patches. Also, be aware, that all of your permissions on the registry are going to be adjusted.
Hope this helps.
- T.
-----
Hi everyone. I have had this issue resolved for about 2 weeks now, but I have been too busy to post.
I have Vista Ultimate on my laptop, and I had the red X over the network icon, and the "Server Excecution Failed" message. It appeared that all automatic services running off of the "Local Service" account were not starting at boot. The fix, from Microsoft, is below.
1. Back up the registry.
2.Download and install SubinACL from
http://www.microsoft.com/downloads/details.aspx?FamilyID=e8ba3e56-d8fe-4a91-93cf-ed6985e3927b&displaylang=en
3.As an administrator, run the following commands from a command prompt (switch to the install directory for SubinACL first. Default is "C:\Program Files\Windows Resource Kits\Tools\" for 32-bit, and "C:\Program Files (x86)\Windows Resource Kits\Tools\" for 64 bit):
subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f
subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f
subinacl /subdirectories %SystemDrive% /grant=administrators=f /grant=system=f
The first two commands can take considerable time to complete, however each command can be run in a separate window to save time.
3. After completing all four of the above commands you have to reapply the default security template by running the following command:
secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose
4. Reboot.
It appears, at least for me, that several permissions were reset in the registry. I am a very advanced user, but to be honest, I am not sure how this happened. All I know is I am fixed, and that the issue happened after reboot of the October Microsoft patches. Also, be aware, that all of your permissions on the registry are going to be adjusted.
Hope this helps.
- T.
Labels:
remote desktop,
server execution failed,
troubleshoot,
vista
Subscribe to:
Posts (Atom)