The environment is a pc that has joined a domain, but has been disconnected from the domain's network and put on an external network. However since the domain login is cached then you can still log into the domain.
I want to know if it's possible to do something like the following.
- Query a WCF service to see if any new accounts need to be created
- If so, dial a VPN to the domain's network from the (.NET) application.
- Create the account from the application.
- Log out of windows
- Log into windows using the newly created account