Dell command update via DOS, check if Crowdstrike or any program is installed via CMD, example.

:: //*************************************************************************************************
:: //
:: // Post – Automated installation of all post-build software.
:: //
:: // For Kantar by Juan Calderon
:: //
:: // Date: 11/10/2021
:: //
:: // Latest Update: 18/05/2021 — Changelog as follows:
:: // 1. No changes
:: //
:: //*************************************************************************************************

@echo off

@echo.
@echo *************************************************************************************
@echo — Remove c:\EnableBL —
@echo *************************************************************************************

rd c:\EnableBL /s /q

c:
cd C:\post

@echo.
@echo *************************************************************************************
@echo — Install CERT —
@echo *************************************************************************************

certutil.exe -addstore root netd2.cer

@echo.
@echo *************************************************************************************
@echo — Install regedits that stimulate BigFix —
@echo *************************************************************************************

::net stop besclient
::@echo Importing new BigFix client resource settings
::regedit /s “\bigfix\cpu_bind_config.reg”
::net start besclient

@echo.
@echo *************************************************************************************
@echo — Remove Forcepoint —
@echo *************************************************************************************
cscript remove_forcepoint.vbs

timeout 15

@echo.
@echo *************************************************************************************
@echo — Install Dell Power Manager —
@echo *************************************************************************************
MSIEXEC /i C:\post\DPM_Setup64_3_11_0.msi /qn

timeout 15

@echo.
@echo *************************************************************************************
@echo — Install Displaylink —
@echo *************************************************************************************

call “C:\post\DisplayLink_USB_Graphics_Software_for_Windows10.2 M4-EXE.exe” -silent

@echo.
@echo *************************************************************************************
@echo — Checking if CrowdStrike installed… —
@echo *************************************************************************************
wmic product get name, version, vendor | find “CrowdStrike”
IF %ERRORLEVEL% NEQ 1 (
@echo CrowdStrike check complete – found.
)
IF %ERRORLEVEL% NEQ 0 (
color 4
@echo CrowdStrike check complete – NOT FOUND.
@echo Installing it …
start c:\post\CrowdStrike\WindowsSensor.exe /install /quiet /norestart CID=03dec07bdbd24b1584d0b36e7000b2a2-9e
timeout 10

)

::call c:\post\!machine_name_rename.bat

@echo.
@echo *************************************************************************************
@echo — Install Dell Command Update, Firmware, Driver updates —
@echo *************************************************************************************
@echo Installing Dell Command Update
call “c:\post\DellCommandUpdate\Dell-Command-Update-Application_T97XP_WIN_4.6.0_A00.EXE” /S

timeout 15
@echo.
@echo.
@echo Checking for and installing firmware updates and drivers
@echo.
@echo Scanning for Updates
call “C:\Program Files (x86)\Dell\CommandUpdate\dcu-cli.exe” /scan -silent
@echo.
@echo Installing updates
call “C:\Program Files (x86)\Dell\CommandUpdate\dcu-cli.exe” /applyUpdates -silent -reboot=enable
@echo.
@echo Installing drivers
call “C:\Program Files (x86)\Dell\CommandUpdate\dcu-cli.exe” /driverInstall -silent -reboot=enable

 

@echo.
@echo *************************************************************************************
@echo — Finished, reset and manually check Dell Command update again, more Dell todo —
@echo *************************************************************************************

pause

shutdown /r -t 1

 

Posted on March 25, 2023, 2:21 pm By
Categories: tech tips Tags: