Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

Executing a program with elevated privilegies

$
0
0

Hi everybody. I'm starting to use Powershell to do some administrative tasks and i'm having a little bit of trouble with a particular script.

My client needs to deploy a software, but it only have a EXE setup. I've converted it to MSI, but the deploy via GPO isn't working fine. So i decided to create a powershell script to deploy the application.

I've acomplished the installation via script, but only when the user has administrator privilegies. So here's my question: i need to run this script at the user's logon, and my objective is to run the installation script with elevated rights.

Is there a way to input the credentials into the script, without the prompting? I wanna store the credentials in the script, so the proccess will be transparent for the user.


Viewing all articles
Browse latest Browse all 2562

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>