We have hosted an application which access the powershell script from C# code. It is running perfectly on localhost. But when we hosted that application script is running with the service account rather user account.
We've enabled windows authentication in application, but the Powershell command is running with service account which is used as IIS Application pool.
Thanks in Advance!!