I have a sort of crazy situation. I have to run a powershell script from a SharePoint console app.
This will be running a remote session on a different server. I need to be able to run that remote session with a specific set of credentials in order to update an AD security group.
How can I do that?
Edit: This script is being triggered by a console app and needs to run unattended with no need to provide a password. The credentials will not change. I am looking for a way to provide the credentials via a token file or similar.