Im looking to create a bat file to reset a users citrix session. Ideally Id like any user to be able to click a link to the bat file and their citrix session will clear.
So far ive come up with the following commands
qwinsta %username% /server:myservername
set /p id=enter ID to clear session :
rwinsta %id% /server:myservername
This works fine, but im wondering if theres a way to automate the whole process without them having to enter the ID?