Discussion Locked

Net User

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Hi I am writing a web page to add users to a Windows Nt domain. Currently my page writes to a file and I have a task check for a file every 5 minutes and this task write the information to add the user. Is there a way to write code to make it happenstraight from the page using either asp or asp.net with say vb.net?

5 replies

by kgreenwood

You can use the window api calls

Public Type USER_INFO
pName As Long
pPassword As Long
lPasswordAge As Long
lPrivilege As Long
pHomeDir As Long
pComment As Long
lFlags As Long
pScriptPath As Long
End Type
Private Declare Function NetUserAdd Lib "netapi32.dll" (lpServer As Any, ByVal Level As Long, lpUser As USER_INFO, lpError As Long) As Long

This discussion is closed to new replies.