Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Impersonate script

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,35865
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Impersonate script
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Impersonate script - 6/28/2006 1:30:06 PM   
  xsamuel

 

Posts: 1
Score: 0
Joined: 6/22/2006
Status: offline
Original message moved by ebgreen
Reason : Moved to appropriate forum
Hello all,
          I am creating a VBScript to create bulk user accounts.
The problem I have right now, is that my workstation is part of a different domain that where I need to create the accounts.
My PC part of Domain1
Domain I am trying to bind to is Domain2

Thanks in advance.
 
 
Post #: 1
 
 RE: Impersonate script - 6/29/2006 7:41:16 PM   
  Snipah


Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
 XSamuel,

If your account is part of the admin group in domain 2 and there is a trust between the two domains..then you wouldn't have an issue.....just connect to the Active Directory and create them..

If there is no trust, then you would e best off to create a VPN connection to domain 2 and go ahead...

Snipah

_____________________________

For more information, please see the "Read me First" topic.

http://www.visualbasicscript.com

(in reply to xsamuel)
 
 
Post #: 2
 
 RE: Impersonate script - 6/30/2006 12:49:47 AM   
  DiGiTAL.SkReAM


Posts: 1183
Score: 7
Joined: 9/6/2005
From: Florida, USA
Status: offline
We had that same problem.  The only real way around it is to setup some kind of remote scripting ability on Domain 2, so that the scripts run ON a box in Domain2.  By default, this is turned off, but a little quality time with google should give you the registry key to modify to enable it, and then you can use WMI to run a script on a remote machine.  That way, the accounts would be created BY a machine in that domain, thereby getting around the security req. of AD.

_____________________________

"Would you like to touch my monkey?" - Dieter (Mike Meyers)

"It is better to die like a tiger, than to live like a pussy."
-Master Wong, from Balls of Fury

(in reply to Snipah)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Impersonate script Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts