I have a couple of DB servers that each run a RemoteApp that users launch to access said DB. The problem is that the application itself does not always exit gracefully when the user ends it, which leaves a remote session open and the user is unable to access said app again. What I am trying to create a script that would terminate any current existing coection to each specific server (i.e. Script A would terminate for RemoteApp A, Script B would terminate for RemoteApp B). Not sure if it adds an extra complication but the users are all working in a Remote Desktop environment (i.e. user coects to RDS1 or RDS2 and then launch RemoteApps to DB1, DB2 etc. from there). All servers are ruing Window...
ادامه مطلبI have a very simple login script ( login.bat ) containing the following line: start chrome I want the logon script to run for any user who logs in via RDP. I've set the script as a so called Logon script in Local Group Policy Editor (at path User Configuration/Windows Settings/Scripts (Logon/Logoff)/Logon) but it doesn't seem to work as intended. It gets run if I reboot the computer and log in for the first time. But any login after that (via RDP) does not trigger the script to run. Does anyone have any idea on how to get it ruing on every login? Note: My bat script actually mounts a network drive, so the above script content is just to simplify the example. Neither works. Both scripts work...
ادامه مطلب