Scripting Question

AppDeploy Toolkit help / Power shell script

06/27/2019 839 views

Seems that Powershell , Appdeploy Toolkit does not like the following command, nor does using the install in Autoit. I've believe they don't like the %USERDOMAIN%\%USERNAME%. Anyone run into this and have a fix or workaround other than using a batch file. Trying to get away from batch files for packages and applications in SCCM.

Execute-MSI -Action 'Install' -Path 'lsf10.1_win-x64.msi' -Transform 'lsf10.1_win-x64.mst' -Parameters 'ADDLOCAL=ALL ALLUSERS=2 ARPNOMODIFY=1 CLUSTERADMIN=%USERDOMAIN%\%USERNAME% CLUSTERNAME=sas_cluster SHAREDDIR="\\Server name\sas_admin_grp\Prod\SAS_Clients\lsf_conf_win\conf"'

0 Comments   [ + ] Show comments


Community Chosen Answer

Trying to get away from batch files for packages and applications in SCCM.

So maybe Google how to access environment variables in Powershell?

Answered 06/28/2019 by: VBScab
Red Belt

All Answers



and leave switch out and it should then run as that account

CLUSTERADMIN     Optional. Specify the cluster administrator OS user account name in the format domain\user_name.

If you are using a local user, specify .\user_name and ensure that the user password is the same on all hosts.

The default is your installation account.

Answered 06/27/2019 by: SMal.tmcc
Red Belt

Don't be a Stranger!

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

Sign up! or login

View more:


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