Skip to content

Commit

Permalink
Version 1.4.2 (2022-05-19)
Browse files Browse the repository at this point in the history
- see change log for updates
Readme
  • Loading branch information
DavidGeeraerts committed May 19, 2022
1 parent 93b5aca commit cdf661c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 18 deletions.
13 changes: 10 additions & 3 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@
[//]: # (#### Deprecated)


---

### Version 1.4.2

#### Changed
- Latest package

#### Fixed
- Parsing html page for latest package

---


Expand All @@ -28,9 +38,6 @@
- remove existing DCU logs before running DCU


---


### Version 1.4.0

#### Added
Expand Down
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# module_utility_Dell_Command_Updater
![License](https://img.shields.io/github/license/DavidGeeraerts/module_utility_Dell_Command_Update) ![Github latest release](https://img.shields.io/github/v/release/DavidGeeraerts/module_utility_Dell_Command_Update) ![Platform](https://img.shields.io/badge/platform-win11%20%7C%20win10-lightgrey)

# module_utility_Dell_Command_Update

Wrapper module for [Dell Command Update](https://www.dell.com/support/kbdoc/en-us/000177325/dell-command-update).

Expand Down Expand Up @@ -27,7 +29,7 @@ Though the program can be run manually on individual machines, it's standard pra
:warning: ***if using `PsExec` for large scale management, don't use `-e` switch!***

`-e` Can cause issues if a program is using user variables such as `%temp%`.
Since Dell-Command-Update using it's `-outputlog=` doesn't like the log path, it's using the `%TEMP%` variable [-outputlog="%temp%\DCU_SCAN.log"], which is a user variable (in this context).
Since Dell-Command-Update using it's `-outputlog=` doesn't like the log path, it's using the `%TEMP%` variable [`-outputlog="%temp%\DCU_SCAN.log"`], which is a user variable (in this context).

Use the following `PsExec` switch `SET "$SWITCH=-h -i -d -c -f -n 10"`

Expand All @@ -41,9 +43,9 @@ Use the following `PsExec` switch `SET "$SWITCH=-h -i -d -c -f -n 10"`

:: :new: **Latest URI**

`SET "$DCU_PACKAGE=Dell-Command-Update-Windows-Universal-Application_PWD0M_WIN_4.4.0_A00.EXE"`
`SET "$DCU_PACKAGE=Dell-Command-Update-Windows-Universal-Application_601KT_WIN_4.5.0_A00_01.EXE"`

:link: `SET "$URI_PACKAGE=https://dl.dell.com/FOLDER07870027M/1/%$DCU_PACKAGE%"`
:link: `SET "$URI_PACKAGE=https://dl.dell.com/FOLDER08334704M/2/%$DCU_PACKAGE%"`

:: **Local Network Repository**

Expand Down Expand Up @@ -74,9 +76,9 @@ Use the following `PsExec` switch `SET "$SWITCH=-h -i -d -c -f -n 10"`

### :calendar: ToDo

- ChangeLog
- Provide configuration for scheduled task
- :white_check_mark: ChangeLog
- :black_square_button: Provide configuration for scheduled task

### :notebook: [Change Log](./ChangeLog.md)

### :notebook:
[Change Log](./ChangeLog.md)

14 changes: 7 additions & 7 deletions module_utility_Dell_Command_Update.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
SETLOCAL Enableextensions
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
SET $SCRIPT_NAME=module_utility_Dell_Command_Update
SET $SCRIPT_VERSION=1.4.1
SET $SCRIPT_BUILD=20220128 0845
SET $SCRIPT_VERSION=1.4.2
SET $SCRIPT_BUILD=20220519 1230
Title %$SCRIPT_NAME% Version: %$SCRIPT_VERSION%
mode con:cols=100
mode con:lines=44
Expand All @@ -40,12 +40,12 @@ color 03
::###########################################################################::

:: Last known package URI
SET "$DCU_PACKAGE=Dell-Command-Update-Windows-Universal-Application_PWD0M_WIN_4.4.0_A00.EXE"
SET "$URI_PACKAGE=https://dl.dell.com/FOLDER07870027M/1/%$DCU_PACKAGE%"
SET "$DCU_PACKAGE=Dell-Command-Update-Windows-Universal-Application_601KT_WIN_4.5.0_A00_01.EXE"
SET "$URI_PACKAGE=https://dl.dell.com/FOLDER08334704M/2/%$DCU_PACKAGE%"

:: Local Network Repository
:: \\Server\Share
SET $LOCAL_REPO=
SET $LOCAL_REPO=\\SC-Vanadium\Deploy\Dell\Dell_Command_Update
:: Log settings
:: Advise local storage for logging.
:: Log Directory
Expand All @@ -54,7 +54,7 @@ SET "$LOG_D=%Public%\Logs\%$SCRIPT_NAME%"
SET "$LOG_FILE=%COMPUTERNAME%_%$SCRIPT_NAME%.log"
:: Log Shipping
:: Advise network file share location
SET "$LOG_SHIPPING="
SET "$LOG_SHIPPING=\\SC-Vanadium\Logs\Dell"
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::


Expand Down Expand Up @@ -216,7 +216,7 @@ SET $CLEANUP=0
CD /D "%$LOG_D%\cache"
if exist dell-command-update.html del /F /Q dell-command-update.html
wget "https://www.dell.com/support/kbdoc/en-us/000177325/dell-command-update.html"
for /f "tokens=6 delims=^< " %%P IN ('findstr /C:"h3><strong>Dell Command | Update" "%$LOG_D%\cache\dell-command-update.html"') DO ECHO %%P>> "%$LOG_D%\cache\DCU-Versions.txt"
for /f "tokens=5 delims=^< " %%P IN ('findstr /C:"New features in version" "%$LOG_D%\cache\dell-command-update.html"') DO ECHO %%P>> "%$LOG_D%\cache\DCU-Versions.txt"
SET /P $DCU_LATEST= < "%$LOG_D%\cache\DCU-Versions.txt"
echo %$ISO_DATE% %TIME% [DEBUG] $DCU_LATEST: {%$DCU_LATEST%} >> "%$LOG_D%\%$LOG_FILE%"
echo %$DCU_LATEST% | FINDSTR /R /C:"[0-9].[0-9].[0-9]" 2>nul || SET "$DCU_LATEST=%$DCU_LATEST%.0"
Expand Down

0 comments on commit cdf661c

Please sign in to comment.