Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: wntUserAddDat
AddExtender("WWWNT34I.DLL") wntUserAddDat("name", "jdoe") wntUserAddDat("full_name", "John Doe") wntUserAdd("") exitFor the first parameter, which can consist of a number of elements, an example of how to set flags might look like:
wntUserAddDat("home_dir","C:\users\shan") flags=64+???+???+??? wntUserAddDat("flags",flags)where the value of flags needs to be the total value of all the flags you need. The way usually to figure it out is to manually set up one user exactly how you like it then use the wntUserGetDat function to get the flags value and use that value for flags.
AddExtender("WWWNT34I.DLL") wntUserSetDat("","olduser","name", "newuser")
Use wntUserRename to rename the user account.
wntUserAddDat("name", strUserName) wntUserAddDat("password", strUserPwd) wntUserAddDat("flags", 1) wntUserAddDat("usr_comment", "") wntUserAddDat("flags", 65536) wntUserAdd("") wntMemberSet("", strAdminGroupName, strUserName, @LOCALGROUP)Every time I try to use the account WinNT displays a message telling me that the account has expired, but when I look in User Manager there is no mark in the checkbox 'Account expired'. Do anyone of you see my mistake?
I think you want...
wntUserAddDat("name", strUserName) wntUserAddDat("password", strUserPwd) wntUserAddDat("usr_comment", "") wntUserAddDat("flags", 1 + 65536 ) wntUserAdd("")
Article ID: W13582
Filename: wntUser... and Update User Accounts.txt
File Created: 2001:03:01:14:23:12
Last Updated: 2001:03:01:14:23:12