If I enable PowerShell User Impersonation, what username and password would I use? An administrator service account or would I enter the end users account?
Let me give you more insight what I am trying to do.
I have little to no knowledge when it comes to scripting. I just keep trying until I succeed.
I created a script in PW that updates an application we have called ndOffice. This scripts works perfectly. However after the update I want the program to start because it will ask the user to sign into the application after each update. Right now after I run my script to install the new update, I have to manually go into Windows --> Programs and launch the application.
I tried the user impersonation but that does work when I entered an administrator service account and try to run the script again. Anything you can think that I am doing wrong. The scripts work if I open PS on the user computer and manually type the command below.
Script 1:
$env:Path += 'C:\Program Files (x86)\NetDocuments\ndOffice\ndOffice.exe"'
& 'C:\Program Files (x86)\NetDocuments\ndOffice\ndOffice.exe'
Script 2:
Start-Process 'C:\Program Files (x86)\NetDocuments\ndOffice\ndOffice.exe'
Thoughts or next steps.