Lansweeper logo
Home Download Features Demo Buy now Help Support forum
 
    Most requested support articles:
  Lansweeper troubleshooting guide.
  The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
  WMI Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
  How to configure the windows firewall using group policies.
  Support:  
 support@lansweeper.com  
Skype: Lansweeper  
  Mo-Fri 9h-17h CET  
Welcome Guest Search | Active Topics | Log In | Register

Untag as favorite
Edit remote registry
snigah
#1 Posted : Saturday, May 07, 2011 10:57:38 PM
Rank: Freeware user

Groups: Member
Posts: 1
Location: Denmark
Hello all

Does anybody know if it's possible to edit the registry on a remote client from the LS Actions?

I would be nice to enable/disable remotedesktop on demand.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]
"fDenyTSConnections"=dword:00000000

I hope that someone can help.

BR

Jannik
FrankW
#2 Posted : Thursday, May 12, 2011 9:15:06 AM

Rank: Premium user

Groups: Member, Premium Users
Posts: 7
Location: Germany
I'm using a Command-Script for that, it enables/disables RDP on the remote-client.

Code:

@echo off

FOR /f "tokens=3 skip=2" %%i IN ('reg query "\\%1\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections') DO (set dword=%%i)

echo %DWORD%

if %DWORD%==0x0 goto OFF
goto ON

:ON
reg add "\\%1\HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /f /v fDenyTSConnections /t REG_DWORD /d 0
echo.
echo RDP on host %1 activated
goto EOF


:OFF
reg add "\\%1\HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /f /v fDenyTSConnections /t REG_DWORD /d 1
echo.
echo RDP on host %1 de-activated
goto EOF


:EOF
echo.
echo.
echo press any key
pause>NUL
exit


Just place it in the folder for the custom actions and create the custom action -> {actionpath}scriptname.cmd {computer}

Works perfect for me.

Greetz ...
googoo
#3 Posted : Thursday, May 12, 2011 6:41:22 PM

Rank: Premium user

Groups: Premium Users
Posts: 136
Location: Missouri, USA
works great, thanks for the script
Users browsing this topic
Guest
Untag as favorite
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Contact: E-mail Lansweeper - Skype : Lansweeper
Copyright 2004 - 2011 © Hemoco bvba