Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.25 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <AdminArsenal.Export Code="PDQDeploy" Name="PDQ Deploy" Version="15.3.0.0" MinimumVersion="15.0">
  3.   <Package>
  4.     <CurrentLibraryPackageVersionId value="null" />
  5.     <PackageDefinition name="Definition">
  6.       <Conditions type="list">
  7.         <PackageStepCondition>
  8.           <Architecture>Both</Architecture>
  9.           <Version>All</Version>
  10.           <TypeName>OperatingSystem</TypeName>
  11.         </PackageStepCondition>
  12.         <PackageStepCondition>
  13.           <IsUserLoggedOn>AlwaysRun</IsUserLoggedOn>
  14.           <TypeName>LoggedOnUser</TypeName>
  15.         </PackageStepCondition>
  16.         <PackageStepCondition>
  17.           <ConditionMode>None</ConditionMode>
  18.           <InventoryCollectionId value="null" />
  19.           <InventoryCollectionName></InventoryCollectionName>
  20.           <TypeName>Collection</TypeName>
  21.         </PackageStepCondition>
  22.       </Conditions>
  23.       <CopyMode>Default</CopyMode>
  24.       <DelayedApprovalTimeSpan>7.00:00:00</DelayedApprovalTimeSpan>
  25.       <DownloadApprovalMode>Manual</DownloadApprovalMode>
  26.       <InventoryScanProfileId value="17" />
  27.       <IsDownloadApprovalModeInherited value="true" />
  28.       <ScanAfterDeployment value="true" />
  29.       <Steps type="list">
  30.         <FileCopyStep>
  31.           <AllowOverwrite value="true" />
  32.           <CopyAllFiles value="true" />
  33.           <FilePatternsText></FilePatternsText>
  34.           <IgnoreOverwriteErrors value="false" />
  35.           <IncludeSubFolders value="true" />
  36.           <Mode>Folder</Mode>
  37.           <Source>$(Repository)\Microsoft\PowerShell\Modules\SpeculationControl\1.0.2</Source>
  38.           <Target>C:\Program Files\WindowsPowerShell\Modules\SpeculationControl\1.0.2</Target>
  39.           <RunAs value="null" />
  40.           <Conditions type="list">
  41.             <PackageStepCondition>
  42.               <Architecture>Both</Architecture>
  43.               <Version>All</Version>
  44.               <TypeName>OperatingSystem</TypeName>
  45.             </PackageStepCondition>
  46.             <PackageStepCondition>
  47.               <IsUserLoggedOn>AlwaysRun</IsUserLoggedOn>
  48.               <TypeName>LoggedOnUser</TypeName>
  49.             </PackageStepCondition>
  50.             <PackageStepCondition>
  51.               <ConditionMode>None</ConditionMode>
  52.               <InventoryCollectionId value="null" />
  53.               <InventoryCollectionName></InventoryCollectionName>
  54.               <TypeName>Collection</TypeName>
  55.             </PackageStepCondition>
  56.           </Conditions>
  57.           <ErrorMode>StopDeploymentFail</ErrorMode>
  58.           <Title>File Copy</Title>
  59.           <TypeName>FileCopy</TypeName>
  60.           <IsEnabled value="true" />
  61.           <IsPostStep value="false" />
  62.           <IsPreStep value="false" />
  63.         </FileCopyStep>
  64.         <PowerShellStep>
  65.           <CustomCommandLine></CustomCommandLine>
  66.           <Files></Files>
  67.           <Script>get-module SpeculationControl
  68.  
  69. $data = Get-SpeculationControlSettings
  70.  
  71. Push-Location
  72.  
  73. Set-Location HKLM:
  74.  
  75. New-Item -Path .\Software\ -Name REDACTED -Force
  76.  
  77. $array = "BTIHardwarePresent", "BTIWindowsSupportPresent", "BTIWindowsSupportEnabled", "BTIDisabledBySystemPolicy","BTIDisabledByNoHardwareSupport", "KVAShadowRequired", "KVAShadowWindowsSupportPresent", "KVAShadowWindowsSupportEnabled", "KVAShadowPcidEnabled"
  78.  
  79. foreach ($_ in $array) {New-ItemProperty -Path .\Software\REDACTED -Name $_ -Value $data.$_ -PropertyType String -Force}
  80.  
  81. #
  82. Pop-Location</Script>
  83.           <SuccessCodes>0</SuccessCodes>
  84.           <RunAs value="null" />
  85.           <Conditions type="list">
  86.             <PackageStepCondition>
  87.               <Architecture>Both</Architecture>
  88.               <Version>All</Version>
  89.               <TypeName>OperatingSystem</TypeName>
  90.             </PackageStepCondition>
  91.             <PackageStepCondition>
  92.               <IsUserLoggedOn>AlwaysRun</IsUserLoggedOn>
  93.               <TypeName>LoggedOnUser</TypeName>
  94.             </PackageStepCondition>
  95.             <PackageStepCondition>
  96.               <ConditionMode>None</ConditionMode>
  97.               <InventoryCollectionId value="null" />
  98.               <InventoryCollectionName></InventoryCollectionName>
  99.               <TypeName>Collection</TypeName>
  100.             </PackageStepCondition>
  101.           </Conditions>
  102.           <ErrorMode>Continue</ErrorMode>
  103.           <Title>Get-Module and run Get-SpeculationControlSettings</Title>
  104.           <TypeName>PowerShell</TypeName>
  105.           <IsEnabled value="true" />
  106.           <IsPostStep value="false" />
  107.           <IsPreStep value="false" />
  108.         </PowerShellStep>
  109.       </Steps>
  110.       <Timeout value="60" />
  111.       <UseCustomTimeout value="false" />
  112.       <RunAs value="null" />
  113.     </PackageDefinition>
  114.     <Description></Description>
  115.     <NewLibraryPackageVersionId value="null" />
  116.     <Version>1.0</Version>
  117.     <IsAutoDownload value="false" />
  118.     <FolderId value="49" />
  119.     <LibraryPackageVersionId value="null" />
  120.     <Name>Speculation Control Status Scan</Name>
  121.     <Path>Custom and Imported Packages\Packages\Meltdown/Spectre\Speculation Control Status Scan</Path>
  122.     <PackageDisplaySettings name="DisplaySettings">
  123.       <DisplayType>Normal</DisplayType>
  124.       <IconKey>Icon-Package</IconKey>
  125.       <SortOrder value="7" />
  126.     </PackageDisplaySettings>
  127.   </Package>
  128. </AdminArsenal.Export>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement