RDS Web App auto logoff directoly after logon script has run
The Environment: We have a RDS 2016 environment that only uses Remote Web Applictions for our users. We also utilize RD Profile Disks which saved the users Registry and APPDATA, nothing else. We use the method as a loginscript based on the FAQ "-ExecutionPolicy ByPass -WindowStyle Hidden -File ". The ADFS environment also uses 2016 if that information is needed.
The Problem: The first time the a user signs in and starts a random RD App, the OneDrive Mapper runs, and logs in flawlessly. The second time (and even subsequently times) the user logins in and starts he/she is automatically logged out before that RD App is started.
The problem is related to the OneDrive mapper script. We've tried to disable the GPO that holds (only) the login script and then all subsequently logins works.
We have tried to set $persistentMapping to both true and false without success. Have you every encountered this issue before and is there any special settings to be used in a shared environment for OneDriveMapper?