I installed PSWA so that my remote technical users have access to some admin functions, like reset office 365 user password, restart application service, etc…
But i don’t want they have access to all powershell cmdlets and build them own sintax, i wrote a script that builds a little menu with these options and make easy for them choose what they want and don’t do wrong things.
I wanted this script runs automatically after the login in pswa… so they can’t do anything that isn’t provided.
I tried use the startupscript in PSSessionConfiguration but i have read-host prompt in my script that waits the user for insert any menu options, the login in PSWA failed, because the startup script needs to run and finish before powershell windows was rendered to browser.
Someone knows how can i run anything after login so that i can provide this menu for my users?
Thanks e sorry for my bad english.