IchBistTod Posted May 22, 2010 Share Posted May 22, 2010 I create many user accounts on my server, each account is linked to a network share. My question is, how can I create accounts that can be logged into over the VPN, that dont show up on the windows login screen? [center][/center][center]=][u][/u][/center][center][/center] Link to comment Share on other sites More sharing options...
FreeBeing Posted May 23, 2010 Share Posted May 23, 2010 You can hide an account with a registry key : http://www.intelliadmin.com/index.php/2006/09/hide-user-accounts-from-the-windows-xp-welcome-screen/ Link to comment Share on other sites More sharing options...
IchBistTod Posted May 28, 2010 Author Share Posted May 28, 2010 (edited) in windows 7 i had to manually create the keys in the registry first then write the values into the keys with autoit. as i could not find a function in autoit to create a key.(and it doesnt seem to properly create them by itself, in Win7 Ult. x64 anyways.) But how do i also frist create the user using autoit, then hide it? Edited May 28, 2010 by IchBistTod [center][/center][center]=][u][/u][/center][center][/center] Link to comment Share on other sites More sharing options...
Tvern Posted May 28, 2010 Share Posted May 28, 2010 as i could not find a function in autoit to create a key.(and it doesnt seem to properly create them by itself, in Win7 Ult. x64 anyways.) I'm using Windows7 Ultimate x64 myself and have no problem writing to the registry. this line: RegWrite("HKEY_CURRENT_USER\Software\Test","test1","REG_DWORD","10") Creates the key "Test" and the value "test1 = 0x0000000a" inside it without a problem. This is on an administrators account ofcoarse. Keep in mind that you have to restart regedit, or refresh the treeview for new keys to show up. Collapsing and expanding the parent key does not work. (same goes for keys you delete) I havn't tried writing to HKU as I don't know what I can do safely. Link to comment Share on other sites More sharing options...
IchBistTod Posted May 28, 2010 Author Share Posted May 28, 2010 the error exists for that specific key only when the two keys are non existent \SpecialAccounts\UserList. [center][/center][center]=][u][/u][/center][center][/center] Link to comment Share on other sites More sharing options...
99ojo Posted May 28, 2010 Share Posted May 28, 2010 the error exists for that specific key only when the two keys are non existent \SpecialAccounts\UserList. Hi, so do 1st a RegRead and look for the return / @error. Failure: Returns "" and sets the @error flag: 1 if unable to open requested key 2 if unable to open requested main key Then you can do a RegWrite to write the missing keys. If you have @error 2 you have to do 2 RegWrite's. See helpfile RegWrite: Creates a key or value in the registry. RegWrite ( "keyname" [,"valuename" [, "type" [, value]]] ) ;-)) Stefan Link to comment Share on other sites More sharing options...
mstogluk Posted May 6, 2015 Share Posted May 6, 2015 You can try this:$usr ="Test" RunWait("Net User " & $usr & " /active:no", @SW_HIDE) Link to comment Share on other sites More sharing options...
jchd Posted May 6, 2015 Share Posted May 6, 2015 mstogluk,Do you realize you answered a post dated 5 years ago? This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now