Skip to content

Instantly share code, notes, and snippets.

rem run to bypass windows upgrades without TPM
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\vdsldr.exe" /f
:: ONLY IF ABOVE ERRORS
rem run if the previous cmd does not fix the error
wmic /namespace:"\\root\subscription" path __EventFilter where Name="Skip TPM Check on Dynamic Update" delete
@sowderca
sowderca / init.ps1
Last active March 22, 2023 16:14
Init for scale set
[ScriptBlock] $bootstrap = {
[string] $localhost = [Environment]::MachineName;
[string] $controller = Get-BBGuestSiteComputerNames -BBResourceType 'CitrixXenAppDeliveryController' | Select-Object -First 1;
Copy-BBGuestGen7DatabaseRegistryEntries -DestinationComputerName $localhost -SourceComputerName (
Get-BBGuestSiteComputerNames -BBResourceType 'CitrixXenAppDeliveryAgent' -Application 'Queue'
);
Add-BBGuestCitrixVDAtoMachineCatalog -ComputerName $localhost -SiteController $controller -CitrixMachineCatalogName (
Get-BBGuestCitrixMachineCatalogName -DeliveryControllerInstance 1