vbscript to create a new user

February 28, 2010 at 02:40:17
Specs: Windows XP
First i open the control panel. After that I
executed the following code to open
"Computer Management " window. Then I tried
to open "Local Users and Groups" to create a
new user. But I couldn't. Plz help me to
resolve this problem.
--------------------------------
call.bat:
-------------------------------

control panel
call user.vbs
-------------------------------
-------------------------------
user.vbs
------------------------------

Dim Fso :Set Fso =
CreateObject("Scripting.FileSystemObject")

Dim OSHApp :Set OSHApp =
CreateObject("Shell.Application")

Dim oShell :Set oShell =
CreateObject("Wscript.Shell")

oShell.sendkeys "{RIGHT}"
Wscript.Sleep 200

oShell.sendkeys "{RIGHT}"
Wscript.Sleep 200

oShell.sendkeys "{RIGHT}"
Wscript.Sleep 200

oShell.sendkeys "{ENTER}"
Wscript.Sleep 200

oShell.sendkeys "{RIGHT}"
Wscript.Sleep 200

oShell.sendkeys "{ENTER}"
Wscript.Sleep 200
-------------------------------



See More: vbscript to create a new user

Report •


#1
February 28, 2010 at 14:00:24
This should be posted here for more help:

http://www.computing.net/forum/prog...

Home Page http://ewen.uuuq.com/


Report •
Related Solutions


Ask Question