/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


K2000 3.6 and powershell scripts

01/20/2014 7869 views

Hello,

I'm using a powershell script to change letters of partitions as a post-install script. Since I upgrade my K2000, it looks like this script is not execute as administrator anymore. UAC is deactivate before executing the scripts, but the scripts windows are not showing as title "administrator : c:\windows\..."

How can i run post install scripts as administrator?

Answer Summary:
no resolution that I can find thus far.
0 Comments   [ + ] Show comments

Comments


All Answers

1

see what dugullett posted

http://www.itninja.com/question/k2000-3-6-questions

Answered 01/21/2014 by: SMal.tmcc
Red Belt

1

Found the solution here (in french) http://www.leblogosd.fr/wordpress/lancer-un-script-powershell-depuis-un-batch/ :

xcopy “%~dp0*.*” c:\windows\temp\ /s /y /e
powershell -noprofile -command “Set-ExecutionPolicy bypass LocalMachine”
powershell -file C:\windows\temp\myPowershellScript.ps1

Then put the bat file with the ps1 in zip file and upload it in the K2000

 

Answered 01/22/2014 by: gwir
Brown Belt

  • sorry but this solution doesn't work so the original question still remains unresolved.
    • what is command line in Kace then supposed to be?
      • Put theses three line in a file call install.bat, then create a zip file containing your powershell script and the install.bat, then create an application task in the K2000 and upload in it the zip file. The command line in kace is "install.bat"
  • Thank you for this info.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ