Posts

Showing posts from April, 2016

Prestaging/Extracting Content

Here is another take on the creating of prestaged content and extracting content from one of my teammates. He did state that it does require Powershell 3 and higher to run. Also to note the extract content script will delete the prestage files once they have been extracted, however you can change the comments around and it will just move them to a done folder instead of deleting them. The extract content one uses the extract folder parameter instead of the actual file name to get around the character limit on a the parameter length. Prestage All Content if ([Environment]::Is64BitProcess) {Read-Host "This must be run from 32-bit Powershell";exit} $SiteCode = "PRI" $Server = "PrimaryServer" $DP = "DistributionPointServer" $FolderToSaveTo = "C:\PrestageContent" Import-Module "C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\ConfigurationManager.psd1" #$Overwrite = $true $Overwrite = $false $N