Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » Help with Remote Desktop batch help
Closed Thread
Old 04-24-2009, 12:09 PM   #1 (permalink)
 
Super Techie

Join Date: Jan 2006

Posts: 258

KNiGHTMaRe89 is on a distinguished road

Send a message via AIM to KNiGHTMaRe89
Default Help with Remote Desktop batch help

Hey fellas - im writing a batch file to run several didn't commands for my department, but I've been at a standstill for the past hour.

In WinXP Pro 32bit when you right click My Computer and go to Properties and click the Remote tab and you have the option to Select the Remote Users who can log in...I need to add a specific user on about 8,000 machines here. I figured I would incorporate this step with the rest of the batch file I'm writing but I can't find anything in the registry in regards to how to add this in the batch.

I've tried using Dependency Walker to see what's going on when RDC opens and I have also used RegShot and taken a before and after snapshot to see what's changed when I open the window, but I can't pinpoint anything solid.

Any help guys?
KNiGHTMaRe89 is offline  
Old 04-27-2009, 07:57 AM   #2 (permalink)
office politics's Avatar
 
It's all just 1s and 0s

Join Date: Jan 2004

Location: in the lab

Posts: 4,410

office politics will become famous soon enough

Default Re: Help with Remote Desktop batch help

you're going to want to add the user to multiple remote machine's remote desktop user group.

this script will add them to admin group. make changes as necessary


List users in local administrators group on remote machine

Quote:
10 Oct 2008 5:04 PMRichard Mueller [MVP]
Nick wrote:


Show quote
Hide quote
>
> I am looking to manage all desktops on our network with regard to the
> local
> administrators group. There are several things I am looking to
> accomplish:
>
> 1. list all users (domain and local) in local administrators group on
> multiple remote computers
> 2. remove user from local administrators group on remote computer
> 3. add domain user account to local administrators group on remote
> computer
> 4. remove local user account from remote computer
> 5. Report on current members of the local administrators group.
>
> Any assistance you can provide would be greatly appreciated.
> We have .Net software if that would be the best way to tackle this but I
> am
> not sure which way to go.


I have an example VBScript program that enumerates all members of local
Administrators group linked here:

Enumerate Local Group

The program handles membership due to nested local and domain groups. In
VBScript you use the WinNT provider with local objects. To add and/or remove
users (or groups) from a local group use code similar to below. With the
steps that check for direct membership (does not reveal membership due to
group nesting), you may not need to enumerate membership:
=========
' Specify NetBIOS name of computer.
strComputer = "Test001"

' Specify NetBIOS name of domain.
strDomain = "MyDomain"

' Bind to local Administrators group on remove computer.
Set objGroup = GetObject("WinNT://" & strComputer & "/Administrators,group")

' Add a local user to the group.
' Check first if they are already a direct member.
Set objLocalUser = GetObject("WinNT://" & strComputer" & "/JimSmith,user")
If (objGroup.IsMember(objLocalUser.AdsPath) = False) Then
objGroup.Add objLocalUser.AdsPath
End If

office politics is offline  
Old 04-29-2009, 08:24 PM   #3 (permalink)
 
Super Techie

Join Date: Jan 2006

Posts: 258

KNiGHTMaRe89 is on a distinguished road

Send a message via AIM to KNiGHTMaRe89
Default Re: Help with Remote Desktop batch help

Quote:
Originally Posted by office politics View Post
you're going to want to add the user to multiple remote machine's remote desktop user group.

this script will add them to admin group. make changes as necessary


List users in local administrators group on remote machine
I'm not familair with VBS scripting, could you care to explain? I need to be able to add a specific user to the Remote Desktop users group. These speicifc users will not be Administrators and are just local users.
KNiGHTMaRe89 is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote Desktop not working 808Alaska Computer Networking & Internet Access 1 04-02-2009 07:17 PM
Windows SBS 2003 - Remote desktop hack throthedice Windows Operating Systems and Software 1 03-10-2009 08:35 AM
Remote Desktop Connection Issue teknix1 Windows Operating Systems and Software 5 07-03-2008 11:13 PM
Suggestions on collaboration tool or remote desktop software needed techlover Windows Operating Systems and Software 6 05-27-2008 12:47 PM
friends really bad log..needs some major help here. Static_11 HijackThis Logs (finished) 17 12-07-2007 09:44 AM