As it is not possible to use GUI for creating a scheduled task on Windows when using gMSA I must user Powershell.
What I have done is : creating my task using GUI whith administrator account then I have changed the user using this command
My issue appeared at this time because after importing my task on another server some parameters have changed.
My task has been created to run “whether user is logged on or not” but after the importation this parameters changes to “Run only when user is logged on”.
You think that what I want to do is not possible ?
Create a task from GUI > modify it by PS > export the task by GUI > import the task by PS to another server ?
You think that I should create the task by PS to all my servers ?
I think you could do it either way. I’m just showing you what I used to set my task to run as a user whether logged in or not. So one of those settings should do what you want. Good luck!