Does anyone has a useful script that does the following:
- checks all the users that are logged in the server
- CACLS the %SYSTEMDRIVE%\TEMP extracting all subdirectories ownership
- tries to match the first and the second list to find out the "orphan" subdirectories
The reason is that when the user just close the ICA client session window, is disconnected or reset without properly logout, windows will not delete the temp directory and next time the user logs in TSE tries to match the connection number with the temp directory and end up with a directory without rights assignment, what causes some applications to fail with a "access denied" message.
[sig][/sig]
- checks all the users that are logged in the server
- CACLS the %SYSTEMDRIVE%\TEMP extracting all subdirectories ownership
- tries to match the first and the second list to find out the "orphan" subdirectories
The reason is that when the user just close the ICA client session window, is disconnected or reset without properly logout, windows will not delete the temp directory and next time the user logs in TSE tries to match the connection number with the temp directory and end up with a directory without rights assignment, what causes some applications to fail with a "access denied" message.
[sig][/sig]