I have a program that I need to install on all computers of a Domain. I am using a .ps1
file that is executed as administrator with PowerShell via GPO. The problem is that I need to enter the admin credentials when the file is executed. So I was wondering if there’s a way that it doesn’t require these credentials.
The way that I have implemented it is to put this in the policieswindows_settingsscripts of the GPO:
“Powershell -ExecutionPolicy bypass -NoProfile -Command “Path to file”Install-RustDesk.ps1”
I tried placing some extra commands lines that I found on the internet inside the file but that doesnt seem to work. It was nothing very specific, and not made to a similar case of mine.
Guilherme Francisco is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2