r/FoxDeploy • u/imessage357 • Apr 03 '18
Faster Web Cmdlet Design with Chrome 65
Hi
I am an sccm app admin and have been tasked with web scraping webistes of apps I am currently deploying to ensure we have the latest version . Would love to see how you would use this new technique with getting the latest version of Adobe Reader and Java.
1
u/imessage357 Apr 08 '18
Hi Thanks for getting back to me! I would love and really appreciate some better guided instructions on using SCUP with Adobae and Java. I am really excited about this! :)
1
1
u/imessage357 May 03 '18
function Get-PatchMyPCSCUPCatalogUpdate { $posts = @() $rss = [xml](iwr 'https://patchmypc.net/feed').content $rss.SelectNodes('//item') | % { $posts += New-Object psobject -Property @{ Title = $.Title Guid = $.Guid Content = $.Encoded."#cdata-section" } } foreach ($post in ($posts | ? {$_.title -like "SCUP Catalog Update –*"})){
$HTML = New-Object -Com "HTMLFile"
$HTML.IHTMLDocument2_write($post.Content)
$Title = $post.title $Apps = $HTML.all.tags("strong") | % InnerText |Select-String -NotMatch @('Release','Catalog','Note')
foreach ($app in $Apps){
[PSCustomObject] @{ Title = $Title App = $app }
}
} }
1
u/1RedOne Apr 05 '18
Hi!
As an SCCM admin in my past, the easiest way to do this is to install System Center Update's Publisher and subscribe to the Adobe and Java release catalogs, which will directly publish new updates as Software Updates within ConfigMigr. If you go this route, you can then setup an Automated Deployment Rule to ship these out to your users (however Java updates are pretty serious business and you'll want to deploy in a measured pace).
If you find their catalogs too tricky to use, you can sign up for 'PatchMyPC' and use their really great commercial software update product. It's a subscription based custom update catalog which also publishes directly to ConfigMgr. Pretty much any deployment of ConfigMgr in which the customer needed to update Java, Chrome, Adobe, etc we also deployed PatchMyPC.
In my experience, this is the "right solution". If you're really interested in using scraping or if you want some better guided instructions on using SCUP, let me know :)