Batch – Return Major Build Version

Command Line FOR /f “tokens=1,2,3,4 delims=[.]” %a IN (‘ver’) DO ECHO %d In Script FOR /f “tokens=1,2,3,4 delims=[.]” %%a IN (‘ver’) DO SET wBuild=%%d ECHO %wBuild%   Notes for if %wBuild% LSS 19041 exit if %wBuild% LEQ 18362 exit if %wBuild% EQU 18362 exit :: 1903 if %wBuild% EQU 17763 exit :: 1809 if %wBuild% Read More …

SCCM Agent: CcmSetup failed with error code 0x80070643

I ran into an issue where I could not install the CM agent. This was the fix. Repair WMI Repair MOF Repair system files Reset Windows Updates   CCMSetup.log Errors File C:\WINDOWS\ccmsetup\{1990B09E-077D-46F9-B575-2AB675E44670}\client.msi installation failed. Error text: ExitCode: 1603 Action: SmsClientInstallSucceeded. ErrorMessages: An error occurred during the installation of assembly ‘Microsoft.ConfigurationManager.WinRTProvider.dll,Version=”5.0.0.0″,Culture=”neutral”,PublicKeyToken=”31bf3856ad364e35″‘. Please refer to Help and Read More …

Batch – Create PFX Certificate – Sign Code or Package; MSIX

:: MrNetTek :: https://eddiejackson.net/blog :: 9/16/2020 :: free for public use :: free to claim as your own @echo off cd “%~dp0” :: STEP 1 :: C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x86 makecert.exe ^ -n “CN=CodeSign” ^ -r ^ -pe ^ -a sha512 ^ -len 4096 ^ -cy authority ^ -sv CodeSign.pvk ^ CodeSign.cer :: STEP 2 Read More …

Batch – Clear Windows Logs

FOR /F “tokens=*” %1 in (‘wevtutil.exe el’) DO wevtutil.exe cl “%1” exit /b 0   Notes Clear events after saving log: wevtutil cl Application /bu:C:\backup\back.evtx Return names of logs: wevtutil el Status of log: wevtutil gli Application   All Options wevtutil [{el | enum-logs}] [{gl | get-log} <Logname> [/f:<Format>]] [{sl | set-log} <Logname> [/e:<Enabled>] [/i:<Isolation>] Read More …

Windows – Batch – Reset Default Local Windows Folders (Folder Redirect)

Having issues with redirected folders? Need to restore user profile folders back to their original paths? This is a script I wrote to fix broken or stuck redirected folders. Just run in the current user security context. NOTE: Perform profile backups, first!   :: MrNetTek :: eddiejackson.net/blog :: 6/15/2020 :: free for public use :: Read More …

Remove HP Software – OEM Build 1903

For those in the know, remove this software…       Notes Return all MS Apps Get-AppxPackage -AllUsers Remove Apps that Match String Get-AppxPackage *xboxapp* | Remove-AppxPackage   Remove Specific App Remove-AppxPackage -AllUsers -Package “AD2F1837.HPJumpStarts_1.5.1296.0_x64__v10z8vjag6ke6”   From the Command Line powershell.exe -command “Remove-AppxPackage -AllUsers -Package AD2F1837.HPJumpStarts_1.5.1296.0_x64__v10z8vjag6ke6”   HP App Details   Other Apps 7EE7776C.LinkedInforWindows_2.0.1.0_neutral__w1wdnht996qgy Microsoft.XboxSpeechToTextOverlay_1.21.13002.0_x64__8wekyb3d8bbwe Read More …

Batch – Disable & Remove WAN Miniport

Download devcon   Create batch script :: MrNetTek :: eddiejackson.net/blog :: 4/27/2020 :: free for public use :: free to claim as your own @echo off cd “%~dp0” devcon disable “ms_pppoeminiport” devcon disable “ms_pptpminiport” devcon disable “ms_agilevpnminiport” devcon disable “ms_ndiswanbh” devcon disable “ms_ndiswanip” devcon disable “ms_sstpminiport” devcon disable “ms_ndiswanipv6” devcon disable “ms_l2tpminiport” devcon remove “ms_pppoeminiport” Read More …