[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 568
  • Last Modified:

Need to programmatically create a new user remotely on xp pro machines that are not in an active directory

I have about 200 machines running xp pro. They are not part of any domain. They are stand alone machines.

I would like to create a new user on each machine remotely. I have administrative access, but would like to do this without touching each machine. I should mention that I can upload and execute a program on these machines remotely.

Alternatively, Is it possible to "Impersonate" or RunAs "System" programmatically? I have tried using diagnostics.process with username and a blank password, but that didn't work for me. I also tried doing the same thing with Impersonation but didn't have any luck there either.

Is it possible? If so, what classes should I use? I usually work in C#, but can convert vb.
0
dgerler
Asked:
dgerler
  • 3
  • 3
1 Solution
 
bbaoIT ConsultantCommented:
try using PsExec, a handy utility allowing you to execute programs on remote systems. now it is owned by MS.

PsExec v1.94
http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx

hope it helps,
bbao
0
 
dgerlerAuthor Commented:
Well, I have a system that allows me to upload and execute programs o the remote system. I am really looking for the class to use to create the new users on the machine. The ones I found seem to be for use with active directory.
0
 
TaishouCommented:
Is this still an issue? I take it these machines are all on the same network, but not part of any domain (as you stated) correct? Are you familiar with the net user command? Not entirely sure if it will work, but you could conceivably set up a user account on a target machine using the net user command. In the switch for domain, I would use the workgroup. Worth a shot at least.
0
Threat Trends for MSPs to Watch

See the findings.
Despite its humble beginnings, phishing has come a long way since those first crudely constructed emails. Today, phishing sites can appear and disappear in the length of a coffee break, and it takes more than a little know-how to keep your clients secure.

 
dgerlerAuthor Commented:
Yes, this is still something I want to be able to do. Actually, the computers are in remote locations with separate networks at each location. We connect to the remote locations using LogMeIn, but we have an autoupdate program that checks in daily for updates. That Program is capable of executing applications during the update process.
0
 
bbaoIT ConsultantCommented:
LogMeIn works well with remote clients behind a firewall to the internet. as you choose LogMeIn for remote access, does it mean all your remote clients are on the external networks which can be only accessed over the internet?
0
 
dgerlerAuthor Commented:
Yes, nearly all are only accessible through the internet with two systems in each location on a network.
0
 
bbaoIT ConsultantCommented:
if so, i am afraid you currently have *no* way to programmatically create a new user on remote XP machines, so far.

because the XPs are separated, and the only connection between your PC and them is encapsulated in an individual LogMeIn SSL session (using a proprietary remote desktop protocol).

you have to use LogMeIn to reach the remote host, and it seems that there is no way for you to programmatically establish a LogMeIn session with a script... :-((
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now