|
Thanks joe (theoretically) ;-)
<mc> -----Original Message-----
Hmmm theoretically <eg>, the permissions are probably stored in the registry.... The most likely place would be someplace say like
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
possibly in the Security value.
Now theoretically if you used a domain group or a built-in group with a specific SID that doesn't change machine to machine (like I wouldn't recommend using a local group on a server) you could theoretically take that value from one machine and copy to another and have those permissions applied to that other machine. Theoretically you could make this even part of a server build process or have it in some setup script...
Also theoretically it may or may not require a reboot to make it kick in.
Just chatting theoretically of course.
If I was to chat some more theoretically someone looking to write some code to muck with that may theoretically fine that that binary format is a type of standard security definition format.
joe
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Creamer, Mark Thanks Ken! Even if I can’t use this on the 2K machines, it’ll help a bunch in a couple of months. Many of our TS machines are about to be upgraded and/or installed. I appreciate it…
<mc> -----Original Message-----
Here's some Perl WMI code for adding a local group to the RDP security. However, if memory serves, W2K doesn't support WMI TS stuff - only 2k3
Anyway, maybe it will work...
sub TerminalServerSecurity {
my $host = shift; my $RemoteGroup = shift;
my
$wmi = Win32::OLE->GetObject("winmgmts:{impersonationLevel=impersonate}!\\\\$host\\root\\cimv2")
my
$accounts = $wmi->ExecQuery("Select * from
Win32_TSPermissionsSetting" )
# Add local group giving full control
foreach
my $a (in $accounts ) {
|
Title: Message
- [ActiveDir] adding a group to the RDP permissions Creamer, Mark
- RE: [ActiveDir] adding a group to the RDP permissions Ken Cornetet
- RE: [ActiveDir] adding a group to the RDP permissions Creamer, Mark
- Creamer, Mark
