This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#This will download the latest version of the HP Script Library, Install it and confirm it's installed. | |
#region: CMTraceLog Function formats logging in CMTrace style | |
function CMTraceLog { | |
[CmdletBinding()] | |
Param ( | |
[Parameter(Mandatory=$false)] | |
$Message, | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#GARYTOWN - 2019.12.19 - @GWBLOK | |
#Connect to Cache | |
$CMObject = New-Object -ComObject 'UIResource.UIResourceMgr' | |
$CMCacheObjects = $CMObject.GetCacheInfo() | |
$CacheUsedStart = $CMCacheObjects.TotalSize - $CMCacheObjects.FreeSize | |
$CacheTotalSizeStart = $CMCacheObjects.TotalSize | |
$CMCacheObjectsElements = $CMCacheObjects.GetCacheElements() | |
$CacheCountStart = $CMCacheObjectsElements.Count | |
if ($CMCacheObjects.TotalSize -lt 25600) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#For using in "Run Script" Node. Has Exit At end... will exit your ISE if you run in ISE. :-) | |
#Adopted from another script, so it has some Write-Hosts that don't really make sense in a CI, deal with it. | |
[CmdletBinding()] | |
Param ( | |
[Parameter(Mandatory=$true)] | |
$BaselineName="WaaS Pre-Assessment" | |
) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<#Triggers Task Sequence based on Package ID Parameter | |
@GWBLOK | |
Once Triggered, it will wait 2 minutes, then parse the execmgr log using a function from Jeff Scripter: ConvertFrom-Log | |
Once Parsed, looks for if the Task Sequence Successfully Started and reports back (Only if the Time Stamp for Starting is After the time you run the script) | |
#> | |
[CmdletBinding()] | |
Param ( |
NewerOlder