Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using ASP and WScript.Shell to access net user command

Status
Not open for further replies.

johnaregan

Programmer
Mar 13, 2001
87
Hi
I am writing an ASP page that will centralise updating user passwords. This includes NT4 passwords as well as other database ones.
To change NT4 passwords I want to be able to use the command line
net user username password /add /domain
I am using the Windows Script object created like

Dim oShell
Set oShell = CreateObject("WScript.Shell")
oShell.Run("cmd /c net user test test /add /domain")
Set oWSH = Nothing

but this does not work, although if I put this into a script on my personal computer and run it, then it does work.
Is this to do with permissions? If so what would I need to change and how?

Any help would be appreciated
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top