This is an odd situation. My company, among other things, restores operating systems for notebook HDDs. After the restore process, the unit is sent back to the customer and they're presented with the typical Windows OOBE screen.



But our customer wants us to take a sample of these units and log in, as if they were the customer. Afterwards, we need to reseal it so it goes back to the OOBE screen.

All of that is simple and straight forward. I have no problem doing any of that.

But, if I just re-seal it via the sysprep tool, then the user account my quality team creates will stay on the machine.

That's actually really easy to delete. Via command line we can use net user [username] /del. But, what we can't do, is use that while logged into the account. It throws an error each time.

So the only way I can think of, would be to have them log into the built in Administrator account and do it. But that's a lot of redundant work, so I'd like to avoid that.

But if I went that route, it would basically pan out like this.

1. Create account
2. Enable Administrator account
3. Log into Administrator account
4. Delete first account
5. Disable Administrator account
6. Reseal

Ideally, I'd like it to be something like this:

1. Create account
2. Delete account
3. Reseal

So is there any way to maybe set the account to delete pending a restart or something?

Thanks