Basic Description: I am looking for a programmer to write a script that will delete the string value in a specific registry key in Windows 2008 R2 terminal server and then repopulate that same value with new information.
Details: The string value represents the currently selected receipt printer assigned to that session. For example the value of the string may be (Receipt Printer A Session 1). When the logged in users disconnects or logs off from their session, the string value is not deleted from the registry so that when the user logs in again, he /she may get a new session ID and therefore the receipt printer does not work. For example, when the user was logged in as USERNAME Session ID 1, then goes to lunch and logs off, after returning from lunch he / she may log in again, but will get USERNAME session 5.
The POS software holds onto the old session ID and so when he / she tries to print a receipt, the POS systems says printer not found. This is because the software still "thinks" it is using "Receipt Printer session 1" (because it is written to the reg key) and what it should be using is "Receipt Printer session 5". The end user can change to the correct printer, by logging in as a manager a switching the printer, but I want a scrip to automate the process.
Ideally the application would launch with the Terminal server session, would identify the receipt printer and the correct session ID, and then would populate the registry key with this correct value.