Jump to content


  • 0
Polarman

Powershell - msi install from UNC

Question

Hi, I need help changing this script to start install from a share instead of files being downloaded and cached before installing...

For use with SCCM 2012

 

$SPSSArgs = '"IBM SPSS Statistics 24.msi" AUTHCODE="mycodehere" INSTALLPYTHON="0" ENABLE_JAB="1"'
$MSIexecArgs = "/qb ALLUSERS=2 /m MSIUQUPQ /norestart /i"
Start-Process msiexec.exe -ArgumentList "$SPSSArgs $MSIexecArgs" -Wait
Do I need to rebuild the whole script?
Knut

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

 

Do I need to rebuild the whole script?

 

Nope. Just make sure the "Domain Computers" group has read permissions for the share.

Set-Location "\\SERVERNAME\SHARE"
$SPSSArgs = '"IBM SPSS Statistics 24.msi" AUTHCODE="mycodehere" INSTALLPYTHON="0" ENABLE_JAB="1"'
$MSIexecArgs = "/qb ALLUSERS=2 /m MSIUQUPQ /norestart /i"
Start-Process msiexec.exe -ArgumentList "$SPSSArgs $MSIexecArgs" -Wait -NoNewWindow
  • Like 1

Share this post


Link to post
Share on other sites

  • 0

 

Hi, I need help changing this script to start install from a share instead of files being downloaded and cached before installing...

For use with SCCM 2012

 

 

Ok, I will byte, why do you want to install it form a UNC, vs downloading it to the cache?

Share this post


Link to post
Share on other sites

  • 0

Ok, I will byte, why do you want to install it form a UNC, vs downloading it to the cache?

 

Downloading 12000 files takes a long time downloading (the users usually thinks something is wrong and restart when it's stuck on "downloading" in SC), and we have software that is 40 gb's too...

Share this post


Link to post
Share on other sites

  • 0

 

Downloading 12000 files takes a long time downloading (the users usually thinks something is wrong and restart when it's stuck on "downloading" in SC), and we have software that is 40 gb's too...

Using UNC connection will mean you are using SNB and therefore there is NO network throttling involved or the ability to use branch cache for this. Therefore it will use 100% of the network connection forcing other applications to not be as responsive. Additionally this will increase your changes of an install failure due to networking issues.

 

I would serious reconsider this particularly if you are install two or more computers on the same network and have branch cache enabled.

Share this post


Link to post
Share on other sites

  • 0

Create a self extracting 7zip file and extact the content to $env:temp + somedir. Then start the Installation from this location. Delete the temp dir after the Installation is finished.Problem solved.

Had a similar Installation with 20K+ tiny files and went this way.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.