You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you think there would be a way to make the PowerShell Script Run as the user who is visiting the page? I have been able to get the Remote_User to show up as the User who is visiting the page, but I enabled Windows Authentication under Authentication for the site. Can't use Impersonate User because that isn't working, but maybe the CGIWraper process needs to run with Impersonate User? Also the reason for run as the authenticated user is so I can do some Get-ADComputer without this error 'Get-ADComputer : Unable to contact the server. This may be because this server does not exist, it is currently down, or it does not have the Active Directory Web Services running.' when I specify an account with -Credential and an account it works, but not really secure.
The text was updated successfully, but these errors were encountered:
In my expirience enabling "Basic Authentication" and disabling "Anymous Authentication" should be enough.
But for some reason some environment variables show wrong information - see example below.
If you always want to run the site as a specific user - without HTTP authentication - you should also be able to define a user if you select "Edit" under "Anonymous Authentication".
'Content-Type: text/plain'
''
'This show computer account:'
$env:USERNAME
''
'This show user account:'
whoami
Я столкнулся с проблемой, что при аутентификации пользователя через базовую аутентификацию, появляется вот такая ошибка при запуске скрипта, если добавить его в группу Администраторы или Доменные администраторы, то проблема уходит.
Кто нибудь знает на что не хватает прав?
Do you think there would be a way to make the PowerShell Script Run as the user who is visiting the page? I have been able to get the Remote_User to show up as the User who is visiting the page, but I enabled Windows Authentication under Authentication for the site. Can't use Impersonate User because that isn't working, but maybe the CGIWraper process needs to run with Impersonate User? Also the reason for run as the authenticated user is so I can do some Get-ADComputer without this error 'Get-ADComputer : Unable to contact the server. This may be because this server does not exist, it is currently down, or it does not have the Active Directory Web Services running.' when I specify an account with -Credential and an account it works, but not really secure.
The text was updated successfully, but these errors were encountered: