Here is an option -
code:
;Using - http://www.winguides.com/registry/display.php/1213/
;"Enable Remote Assistance (Windows XP)"
;>>To Enable Remote Assitance
;AllowTSConnections set it to "1"
;fDenyTSConnections set it to "0"
;fAllowToGetHelp set it to "1"
;>>To Disable Remote Assitance
;AllowTSConnections set it to "0"
;fDenyTSConnections set it to "1"
;fAllowToGetHelp set it to "0"
;Restart Windows for the changes to take effect.
$RegKey='HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server'
IF 1<>READVALUE($RegKey,'AllowTSConnections')
$RC=WRITEVALUE($RegKey,'AllowTSConnections',1,'REG_DWORD')
ENDIF
IF 0<>READVALUE($RegKey,'fDenyTSConnections')
$RC=WRITEVALUE($RegKey,'fDenyTSConnections',0,'REG_DWORD')
ENDIF
IF 1<>READVALUE($RegKey,'fAllowToGetHelp')
$RC=WRITEVALUE($RegKey,'fAllowToGetHelp',1,'REG_DWORD')
ENDIF
If you know the list of systems, you could substitute the $RegKey with -
code:
$RegKey='\\'+$computername+'\HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server'
With one of the READEXCEL() UDFs..
And then you could push this remotely.
Kent