We use group logins but need a way to track what user is using the group account. In addition to this, we need users to keep their personal accounts active despite using group accounts. One thought was to have a login script that runs from the group account. It would prompt the user for their personal account login information, authenticate to the domain, write the user information to file and then allow the user to login. If the user is unable to login to their personal account it would kick them out with a message that they need to verify their personal login information.
Is the above possible in powershell or is another scripting language better suited? If it is possible, any assistance in how to do it would be much appreciated. I'm a powershell novice, but I have a programming background. I can think through the logic, just no idea how to implement it.