
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2011 12:57 AM
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
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
Labels:
- Labels:
-
Archive
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2014 09:57 PM
Wow. Extremely useful! Thanks.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2011 08:41 PM
works great, thanks for the script

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2011 11:15 AM
I'm using a Command-Script for that, it enables/disables RDP on the remote-client.
Just place it in the folder for the custom actions and create the custom action -> {actionpath}scriptname.cmd {computer}
Works perfect for me.
Greetz ...
@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 ...
