Is it possible to download some software from internet, then install it on some of my servers using DSC? Chrome, for example? All DSC tutorials are pretty hard to understand (at least for me). I just want to see a simple example, similar to my use case, please.
Asked
Active
Viewed 2,951 times
2 Answers
3
You can also use DSC to install a package from the internet via a URL without Chocolatey. To do so, you need the exact name the product will be installed as and its ProductId value. The easiest way to get these is to install the software somewhere manually once first, then find these values via this PowerShell command:
Get-WmiObject Win32_Product | Format-Table IdentifyingNumber, Name, Version
Then you can install the software via DSC by using via the Package
resource. Here's an example of doing so with the Local Administrator Password Solution tool from Microsoft:
Package 'LAPS' {
Name = 'Local Administrator Password Solution'
Path = 'https://download.microsoft.com/download/C/7/A/C7AAD914-A8A6-4904-88A1-29E657445D03/LAPS.x64.msi'
ProductId = 'EA8CB806-C109-4700-96B4-F1F268E5036C'
}

Mark Wragg
- 22,105
- 7
- 39
- 68
2
Yes it is possible to use DSC to do what you desire. Here is an example of using Chocolatey community resource to install Chrome https://github.com/PowerShellOrg/cChoco/blob/master/ExampleConfig.ps1

Nana Lakshmanan
- 741
- 3
- 6
-
Chrome was just an example. Chocolate doesn't have the software I need. How do I install .exe files from DSC? – Brozaf Jul 28 '16 at 07:59
-
You can author your own resource to download and apply. You can look at the chocolatey resource for an example on the same – Nana Lakshmanan Aug 01 '16 at 19:57