Automatic Log off via username if possible
Posted on 2006-10-31
I am moving a TERMINAL SERVER between domains and need to preserve contents of the users profiles, i.e. There desktop folder. The way I plan on doing this is via a vb app that will log onto the server under the new domains username and then log off again (just to create the new profile folder) Once that done I will get my app to grab the contents of their profile from the old domian (c:\documents and settings\user.olddomain) to their new profile (c:\documents and settings\username.newdomain)
I have worked out how to automate all of it other than the logoff (tried using send keys...etc) Ideally I want a method of logging them off via username (rather than ts session id as that would mean knowing the session ID First which wouldn't be automated.