Jump to content

Force folder creation when using Net User


Recommended Posts

Posted (edited)

I am scripting a data backup tool to save user account data with AutoIt which is working out well, now I want to work on an app to restore saved user accounts. I already have the "net user <username> /add" and "net localgroup administrators /add <username>" working fine, but of course, before I can copy the old data to the new account, I need some folders to show up under the Docs and Settings folder. :rolleyes:

I was trying to automate using "control userpasswords2" but it doesn't seem to want to log back in with the new user account, and it just seems silly to have to automate that process anyway! :D I have Googled and searched here, it doesn't look good but does anyone know of a way to have XP set up the user account fully without the need to log in to it?

The backup app as-is is at http://www.autoitscript.com/forum/index.ph...st&p=688625 for those interested in seeing it.

Thanks for any help!!

Ian

Edited by llewxamnai

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...