Skip to content

Instantly share code, notes, and snippets.

<#
.Synopsis
Given a task sequence package id the referenced packages are looked up and the Source path displayed
.EXAMPLE
Get-TSPkgSource -PackageId DEV005A4 -SiteCode DEV
Displays the Packages and Source Path information for Task Sequence DEV005A4 on Site DEV
.EXAMPLE
DEV005A4|Get-TSPkgSource -SiteCode DEV
Displays the Packages and Source Path information for Task Sequence DEV005A4 on Site DEV
by passing the task sequence package id via the pipeline
$dp = Read-Host -Prompt "Enter the name of the DP to check:"
If(!($UserTSchoice)){
# Get all task sequences in CM12
if ($AllTaskSequences -eq $null) {
Write-Host -ForegroundColor Yellow "Getting Task Sequence list...may take 60 seconds"
$AllTaskSequences = Get-CMTaskSequence -Name "*" | Sort Name
$TSNames = $AllTaskSequences.Name | sort Name
}
# Display Task Sequences
$TSNames | Sort Name
<#
.Synopsis
RSS Reader for Powershell October 2015 Scripting Games
.DESCRIPTION
Given a link to a rss feed(s) this will output the Headline. While not presented by default the object also
includes the publication date if the feed provides it. This will allow you to sort the return by date and time
if needed.
.PARAMETER URI
URIs for RSS feeds
This is a mandatory parameter
<#
.Synopsis
Short description
.DESCRIPTION
Long description
.EXAMPLE
Example of how to use this cmdlet
.EXAMPLE
Another example of how to use this cmdlet
#>
AssignedCIs = {"<?xml version='1.0' ?>\n\t\t<CI>\n\t\t\t<ID>8f8f54bb-05de-44a8-8695-f5d06d06d20f</ID>\n\t\t\t<ModelName>Site_56FE87C5-F355-45F9-BE43-BE8D575809F4/SUM_8f8f54bb-05de-44a8-8695-f5d06d06d20f</ModelName>\n\t\t\t<Version>1.00</Version>\n\t\t\t<CIVersion>200</CIVersion>\n\t\t\t<ApplicabilityCondition>\n\t\t\t\t<ApplicabilityRule ExpressionLanguage=\"Custom\" Handler=\"{2DB70103-3DFB-4806-85B0-B27B561284BB}\"><UpdateId>8f8f54bb-05de-44a8-8695-f5d06d06d20f</UpdateId><CISource><Id>{56FE87C5-F355-45F9-BE43-BE8D575809F4}</Id><Version>218</Version></CISource><ProductId>041e4f9f-3a3d-4f58-8b2f-5e6fe95c4591</ProductId></ApplicabilityRule>\n\t\t\t</ApplicabilityCondition>\n\t\t\t<EnforcementEnabled>FALSE</EnforcementEnabled>\n\t\t\t<DisplayName>Update for Microsoft Office Outlook 2007 Junk Email Filter (KB3114544)</DisplayName>\n\t\t\t<UpdateClassification>e6cf1350-c01b-414d-a61f-263d14d133b4</UpdateClassification>\n\t\t</CI>", "<?xml version='1.0' ?>\n\t\t<CI>\n\t\t\t<ID>92ff382f-1b20-416f-9bae-2887ca1682ff<
<check_type>
<custom_item>
system : "Linux"
type : "Check"
description : "8.1.1.1 this is other text"
</custom_item>
<custom_item>
system : "Linux"
type : "Check"
description : "8.1.1.1 more text"
<?xml version="1.0" encoding="UTF-8"?>
<Benchmark>
<title>APACHE SITE 2</title>
</Benchmark>
oldname1.test|newname1.test
oldname2.test|newname2.test
oldname3.test|newname3.test
oldname4.test|newname4.test
oldname5.test|newname5.test
oldname6.test|newname6.test
# Author: Garth Jones
# http://www.enhansoft.com
#
# Created Date: 2016-08-01
# Version: 1.00
#
# Thanks Sean Kearney @energizedtech for the start point.
#
##################################################################
Param(
[string]$WsusServer = ([system.net.dns]::GetHostByName('localhost')).hostname,
[bool]$UseSSL = $False,
[int]$PortNumber = 80
)
$script:CurrentErrorActionPreference = $ErrorActionPreference
$ErrorActionPreference = "SilentlyContinue"
#Connect to the WSUS 3.0 interface.
[reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Administration") | out-null