Category: Windows Installer, Updates, Patching

Run CMD as SYSTEM to get around lots of different installer bugs etcetera
article #1408, updated 20 days ago

If you get PsTools, and do this:

psexec -i -s CMD.exe

you’ll get another CMD box, where the username is SYSTEM, that is to say, the hostname of the machine with a dollar sign on the right end. If the machine is on a domain, it is DOMAIN\hostname$, have not tested it on a non-domain machine yet.

One software installer recently, required that the folder containing its installer package be TAKEOWNed and ICACLSed, as that system user, before it would run to completion, it must have some odd permissions bug in it.

There are likely to be quite a few circumstances in which this special CMD can be useful.

Categories:      

==============

DISM Cleans Up Windows Updates and Cache
article #1158, updated 28 days ago

To see if there is cleanup to be done:

DISM /Online /Cleanup-Image /AnalyzeComponentStore

To remove obsolete and unused system files:

DISM /Online /Cleanup-Image /StartComponentCleanup

To remove obsolete and unused system files and also service pack uninstallation files:

dism /online /Cleanup-Image /SPSuperseded

To remove obsolete and unused system files and everything prior, making it impossible to reverse any patches:

dism /online /Cleanup-Image /StartComponentCleanup /ResetBase

Categories:      

==============

Remove All Oracle Java Products Silently
article #1407, updated 28 days ago

This:

wmic product where "name like 'Java%%'" call uninstall /nointeractive

appears to work very well for products whose names start with “Java” which are installed in Windows standard fashion.

Categories:      

==============

Microsoft Update Health Tools
article #1405, updated 40 days ago

Solves issues with updating Windows 10.

https://support.microsoft.com/en-us/help/4023057/update-reliability

Categories:      

==============

Download Windows 10 Build 1909 ISO
article #1402, updated 47 days ago

There are links on this page:

https://www.itechtics.com/windows-10-1909/

Categories:      

==============

Uninstall Windows applications via command line
article #1326, updated 53 days ago

This command:

wmic product where name="Application Name" call uninstall /nointeractive

appears to do it. Put the whole long name from the software list in Control Panel, within those double parentheses. This works in at least some cases where msiexec /x does not. And it is not version-specific.

To get a full list of names with GUIDs, try this:

get-wmiobject Win32_Product | sort-object -property Name | Format-Table IdentifyingNumber, Name, LocalPackage -AutoSize

Categories:      

==============

Remove All Mitel Software via Powershell
article #1392, updated 139 days ago

All Mitel software names seem to start with that one word “Mitel”. So this:

( Get-WmiObject -Class Win32_Product | Where-Object{$_.Name -like 'Mitel*'} ) | ForEach-Object {
	& msiexec /x $_.IdentifyingNumber /quiet /qn /norestart 
}

appears to do the job nicely.

Categories:      

==============

BCUninstaller, a New Open Source Uninstaller, Very Tech-Friendly
article #1389, updated 152 days ago

Best tool for this I’ve ever seen.

https://www.fosshub.com/Bulk-Crap-Uninstaller.html

Categories:      

==============

New Windows package manager: OneGet
article #1352, updated 377 days ago

This seems to be quite the tool. Haven’t tested it yet.

https://github.com/oneget/oneget

Can be installed or updated in 10 with: Install-Module -Name PackageManagement -Force

Categories:      

==============

Provisioning Packages in Windows 10
article #1333, updated 472 days ago

These packages bundle configurations, even domain joins, and other items. Native to Windows 10:

https://docs.microsoft.com/en-us/windows/configuration/provisioning-packages/provisioning-create-package

Categories: