This file contains 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 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
<#V2020.01.27 | |
Updated Script to Create "Operational" Folder and then move newly created Collections there. | |
Borrowed Code from Benoit Lecours | |
Made script pull addtional info dynamic, you shouldn't have to make any environmental chanages for script to work. | |
Script now also creates an "All Workstation" Collection and uses that as the limiting collection, unless one with that name already exist, then uses that. | |
Change the Limiting Collection info by updating: $LimitingCollection | |
You can easily modify the Collection Prefix now by changing these below: | |
$ModelColPrefix = "ModelCol" | |
$ManufacturerColPreFix = "ManufacturerCol" |
This file contains 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 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.COM / @gwblok | |
Custom Actions in the Setup Process | |
This script creates each of the 6 batch files, along with associated powershell files. | |
It then populates the Batch file to call the PS File | |
It then populates the PS File with the command to create a time stamp. | |
Note, assumes several task sequence variables (SMSTS_BUILD & RegistryPath) as the location to write the data to | |
Goal: Confirm when the Scripts run and compare to other logs |
OlderNewer