I am working at a customer site commissioning a bunch of Windows 7 systems that were just delivered. The systems were imaged with a basic setup that included all of the main software needed for the customer except for a local (non admin) account that is required for this application.
I know that I can run the net user
command to programmatically add the desired local account. However this command does not fully set up the local account. You still need to log into it (and see the your desktop is being prepared message) before the complete windows configuration has been performed for that account. But I don't want to do that - I just want to run my powershell script and say "Done!"
So after running net user
is there anyway via command line or powershell action to trigger the process that fully fleshes out the account?
Edit
My end goal is to have access to the Startup folder for the account I am creating so that I can copy in some shortcuts. And to do all of this via a powershell script with NO user interaction.
Edit 2
And while I need the solution to work under powershell 2, I am also interested in seeing any solution that works under any later powershell version