Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <AdminArsenal.Export Code="PDQDeploy" Name="PDQ Deploy" Version="15.3.0.0" MinimumVersion="15.0">
- <Package>
- <CurrentLibraryPackageVersionId value="null" />
- <PackageDefinition name="Definition">
- <Conditions type="list">
- <PackageStepCondition>
- <Architecture>Both</Architecture>
- <Version>All</Version>
- <TypeName>OperatingSystem</TypeName>
- </PackageStepCondition>
- <PackageStepCondition>
- <IsUserLoggedOn>AlwaysRun</IsUserLoggedOn>
- <TypeName>LoggedOnUser</TypeName>
- </PackageStepCondition>
- <PackageStepCondition>
- <ConditionMode>None</ConditionMode>
- <InventoryCollectionId value="null" />
- <InventoryCollectionName></InventoryCollectionName>
- <TypeName>Collection</TypeName>
- </PackageStepCondition>
- </Conditions>
- <CopyMode>Default</CopyMode>
- <DelayedApprovalTimeSpan>7.00:00:00</DelayedApprovalTimeSpan>
- <DownloadApprovalMode>Manual</DownloadApprovalMode>
- <InventoryScanProfileId value="17" />
- <IsDownloadApprovalModeInherited value="true" />
- <ScanAfterDeployment value="true" />
- <Steps type="list">
- <FileCopyStep>
- <AllowOverwrite value="true" />
- <CopyAllFiles value="true" />
- <FilePatternsText></FilePatternsText>
- <IgnoreOverwriteErrors value="false" />
- <IncludeSubFolders value="true" />
- <Mode>Folder</Mode>
- <Source>$(Repository)\Microsoft\PowerShell\Modules\SpeculationControl\1.0.2</Source>
- <Target>C:\Program Files\WindowsPowerShell\Modules\SpeculationControl\1.0.2</Target>
- <RunAs value="null" />
- <Conditions type="list">
- <PackageStepCondition>
- <Architecture>Both</Architecture>
- <Version>All</Version>
- <TypeName>OperatingSystem</TypeName>
- </PackageStepCondition>
- <PackageStepCondition>
- <IsUserLoggedOn>AlwaysRun</IsUserLoggedOn>
- <TypeName>LoggedOnUser</TypeName>
- </PackageStepCondition>
- <PackageStepCondition>
- <ConditionMode>None</ConditionMode>
- <InventoryCollectionId value="null" />
- <InventoryCollectionName></InventoryCollectionName>
- <TypeName>Collection</TypeName>
- </PackageStepCondition>
- </Conditions>
- <ErrorMode>StopDeploymentFail</ErrorMode>
- <Title>File Copy</Title>
- <TypeName>FileCopy</TypeName>
- <IsEnabled value="true" />
- <IsPostStep value="false" />
- <IsPreStep value="false" />
- </FileCopyStep>
- <PowerShellStep>
- <CustomCommandLine></CustomCommandLine>
- <Files></Files>
- <Script>get-module SpeculationControl
- $data = Get-SpeculationControlSettings
- Push-Location
- Set-Location HKLM:
- New-Item -Path .\Software\ -Name REDACTED -Force
- $array = "BTIHardwarePresent", "BTIWindowsSupportPresent", "BTIWindowsSupportEnabled", "BTIDisabledBySystemPolicy","BTIDisabledByNoHardwareSupport", "KVAShadowRequired", "KVAShadowWindowsSupportPresent", "KVAShadowWindowsSupportEnabled", "KVAShadowPcidEnabled"
- foreach ($_ in $array) {New-ItemProperty -Path .\Software\REDACTED -Name $_ -Value $data.$_ -PropertyType String -Force}
- #
- Pop-Location</Script>
- <SuccessCodes>0</SuccessCodes>
- <RunAs value="null" />
- <Conditions type="list">
- <PackageStepCondition>
- <Architecture>Both</Architecture>
- <Version>All</Version>
- <TypeName>OperatingSystem</TypeName>
- </PackageStepCondition>
- <PackageStepCondition>
- <IsUserLoggedOn>AlwaysRun</IsUserLoggedOn>
- <TypeName>LoggedOnUser</TypeName>
- </PackageStepCondition>
- <PackageStepCondition>
- <ConditionMode>None</ConditionMode>
- <InventoryCollectionId value="null" />
- <InventoryCollectionName></InventoryCollectionName>
- <TypeName>Collection</TypeName>
- </PackageStepCondition>
- </Conditions>
- <ErrorMode>Continue</ErrorMode>
- <Title>Get-Module and run Get-SpeculationControlSettings</Title>
- <TypeName>PowerShell</TypeName>
- <IsEnabled value="true" />
- <IsPostStep value="false" />
- <IsPreStep value="false" />
- </PowerShellStep>
- </Steps>
- <Timeout value="60" />
- <UseCustomTimeout value="false" />
- <RunAs value="null" />
- </PackageDefinition>
- <Description></Description>
- <NewLibraryPackageVersionId value="null" />
- <Version>1.0</Version>
- <IsAutoDownload value="false" />
- <FolderId value="49" />
- <LibraryPackageVersionId value="null" />
- <Name>Speculation Control Status Scan</Name>
- <Path>Custom and Imported Packages\Packages\Meltdown/Spectre\Speculation Control Status Scan</Path>
- <PackageDisplaySettings name="DisplaySettings">
- <DisplayType>Normal</DisplayType>
- <IconKey>Icon-Package</IconKey>
- <SortOrder value="7" />
- </PackageDisplaySettings>
- </Package>
- </AdminArsenal.Export>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement