The Deployment Bunny

OS Deployment, Virtualization, Microsoft based Infrastructure…

  • Archives

  • Meta

Posts Tagged ‘Microsoft’

Demo Scripts from Microsoft TechX Azure in Stockholm 2016-02-16

Posted by Mikael Nystrom on February 26, 2016

Markus Lassfolk and I did a couple of sessions at the Microsoft TechX Azure day, Stockholm and here are the scripts:

https://github.com/DeploymentBunny/DemoScript/tree/master/2016-02-16%20-%20TechXAzure

image

Read more here: http://www.techx.se/

/mike

Posted in Event, Microsoft, Session | Tagged: , , | Leave a Comment »

PowerShell is King – Download all VC++ runtimes using a script

Posted by Mikael Nystrom on August 5, 2014

Note: Updated to also download Visual C++ 2015 runtimes

Yes, it is true, sine I create reference images for customers i always need the VC++ runtimes, and yes i need all of them. Microsoft actually has one page with all the latest versions, well the page points to all the separate downloads, anyway. Since automation is nice and PowerShell is a god workhorse to do the job i used one of my old download engine and modified it slightly.

image

How does it work?

The script reads 2 parameters from the command line, the XML file and the download folder. In the XML file each file has its settings (some of them not used here), basically the URL, name of file, where to store it and things like that. The script does a for each loop until all files has been downloaded, if one file could not be downloaded, just run the script once more and it will download the missing files, not touching the existing ones

Step-By-Step, kind of

Download the script and the XML file from this location http://1drv.ms/1y2MGcc

Remove the Windows Download Blocking (You know, right click on file, properties, unblock)

Execute the script from an elevated PowerShell prompt like this

.\Get-Downloads.ps1 -DownloadFile .\download.xml –DownloadFolder  ‘C:\Downloads’

Wait until done

In the C:\Downloads folder you should now have a separate folder for all VC++ runtimes.

/mike

Posted in Deployment, OS Deployment | Tagged: , , , | 14 Comments »