This file contains hidden or 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
[cmi] | |
namespace=urn:schemas-microsoft-com:unattend | |
ClientServerSplit=true | |
AnswerFileFormat=1 | |
professionalworkstationn=WYPNQ-8C467-V2W6J-TX4WX-WT2RQ | |
enterpriseneval=MNXKQ-WY2CT-JWBJ2-T68TQ-YBH2V | |
serverrdshCore=NJCF7-PW8QT-3324D-688JX-2YV66 | |
serverstorageworkgroupeval=NXCTR-YXXWC-TK368-HGGTF-8YB99 | |
onecoreupdateos=NFDPX-3MV8X-THC2X-QQ9QP-P9YY6 |
This file contains hidden or 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
{ | |
"TaskType": "OSBuild", | |
"TaskName": "Windows 10 1809 x64 Multi", | |
"TaskVersion": "19.4.11.0", | |
"TaskGuid": "900f013b-2f08-4304-a9aa-eb065477e67b", | |
"CustomName": "", | |
"OSMFamily": "Client Enterprise x64 17763 en-US", | |
"OSMGuid": "18887e55-5125-42ab-aaad-7b897bbb504b", | |
"Name": "Windows 10 Enterprise x64 1809 17763.404", | |
"ImageName": "Windows 10 Enterprise", |
This file contains hidden or 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
<# | |
.NOTES | |
AUTHOR: David Segura | |
#> | |
Start-Transcript | |
#====================================================================================== | |
# Start Script | |
#====================================================================================== | |
Write-Host "$PSCommandPath" -ForegroundColor Green | |
Write-Host "" |
This file contains hidden or 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
[xml]$SessionsXml = Get-Content -Path "$env:WinDir\Servicing\Sessions\Sessions.xml" | |
$Sessions = $SessionsXml.Sessions.Session | ` | |
Where-Object {$_.Tasks.Phase.package.id -like "*RollupFix*" -and $_.Tasks.Phase.package.targetState -eq 'Installed'} | |
$InstalledLCU = @() | |
foreach ($Session in $Sessions) { | |
$obj = $null | |
$obj = New-Object System.Object | |
$obj | Add-Member -type NoteProperty -Name Complete -Value $Session.Complete | |
$obj | Add-Member -type NoteProperty -Name Package -Value $Session.Tasks.Phase.Package.id |
This file contains hidden or 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
Catalog KBNumber Title | |
------- -------- ----- | |
Office 2010 32-Bit 4462226 Security Update for Microsoft Office 2010 (KB4462226) 32-Bit Edition | |
Office 2010 64-Bit 4462226 Security Update for Microsoft Office 2010 (KB4462226) 64-Bit Edition | |
Windows 7 4474419 2019-03 Security Update for Windows 7 for x64-based Systems (KB4474419) | |
Windows 7 4474419 2019-03 Security Update for Windows 7 for x86-based Systems (KB4474419) | |
Windows 7 4489873 2019-03 Cumulative Security Update for Internet Explorer 11 for Windows 7 for x64-based systems (KB4489873) | |
Windows 7 4489873 2019-03 Cumulative Security Update for Internet Explorer 11 for Windows 7 for x86-based systems (KB4489873) | |
Windows 7 4489878 2019-03 Security Monthly Quality Rollup for Windows 7 for x64-based Systems (KB4489878) | |
Windows 7 4490628 2019-03 Servicing Stack Update for Windows 7 for x64-based Systems (KB449062 |
This file contains hidden or 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
$Updates = Get-ChildItem "C:\Users\OSDUpdate\Desktop\Office 2016 64-Bit\updates" -Recurse -File -Include *.msp | Select-Object -Property * | |
$Updates = $Updates | Sort-Object -Property LastWriteTime | |
Measure-Command -Expression { | |
Write-Host "`n" | |
Write-Host "=====================================================================================" -ForegroundColor DarkGray | |
Write-Host "Installing Microsoft Office 2016 updates" | |
Write-Host "=====================================================================================" -ForegroundColor DarkGray | |
ForEach ($Update in $Updates) { |
This file contains hidden or 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
function Get-MSPFileInfo { | |
param | |
( | |
[Parameter(Mandatory = $true)][IO.FileInfo]$Path, | |
[Parameter(Mandatory = $true)][ValidateSet('Classification', 'Description', 'DisplayName', 'KBArticle Number', 'ManufacturerName', 'ReleaseVersion', 'TargetProductName', 'Release', 'MoreInfoURL', 'OptimizedInstallMode', 'CreationTimeUTC', 'AllowRemoval', 'OptimizeCA', 'BuildNumber', 'StdPackageName', 'PatchType', 'IsMinorUpgrade')][string]$Property | |
) | |
try { | |
#Creating windows installer object | |
$WindowsInstaller = New-Object -ComObject WindowsInstaller.Installer |
This file contains hidden or 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
Import-Module -Name PoshWsus -Force | |
Connect-PSWSUSServer -WSUSserver 'wsus2019' -Port 8530 | |
$Categories = Get-PSWSUSCategory | Where-Object {$_.Title -match 'Office 2016'} | |
$Office2016 = Get-PSWSUSUpdate -Category $Categories | Select-Object -Property * | |
$Office2016 = $Office2016 | Where-Object {$_.IsSuperseded -eq $false} | |
$Office2016 = $Office2016 | Where-Object {$_.IsLatestRevision -eq $true} | |
$Office2016 = $Office2016 | Where-Object {$_.Title -notlike "*farm-deployment*"} | |
$Office2016 | Export-Clixml -Path "C:\Users\Administrator\Desktop\Office\RawOffice2016.xml" | |
$UpdateProperties = @() |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<LayoutModificationTemplate | |
xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification" | |
xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout" | |
xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout" | |
xmlns:taskbar="http://schemas.microsoft.com/Start/2014/TaskbarLayout" | |
Version="1"> | |
<LayoutOptions StartTileGroupCellWidth="6" /> | |
<DefaultLayoutOverride> | |
<StartLayoutCollection> |
This file contains hidden or 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
$Certs = Get-ChildItem -Path Cert:\LocalMachine -Recurse | ` | |
Where-Object {$_.PSIsContainer -eq $false} | ` | |
Select-Object -Property FriendlyName, Thumbprint, Issuer, Subject, Handle, PSPath | ` | |
Sort-Object FriendlyName | ` | |
Out-GridView -PassThru | |
foreach ($Cert in $Certs) { | |
$Reg = @() | |
$Reg = Get-ChildItem -Path ('HKLM:\SOFTWARE\Microsoft\SystemCertificates',` | |
'HKLM:\SOFTWARE\Policies\Microsoft\SystemCertificates',` |