Есть идеи как достать "original install date" Windows?
-
-
Все. Расходимся. Смотреть больше не на что.
Решение найдено самостоятельно.
На случай если кому понадобится:
Содержимое файла install_date.cmd
@echo OFF setlocal ENABLEEXTENSIONS set KEY_NAME=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion set VALUE_NAME=InstallDate FOR /F "skip=2 tokens=1,2*" %%A IN ('REG QUERY "%KEY_NAME%" /v "%VALUE_NAME%" 2^>nul') DO ( set ValueName=%%A set ValueType=%%B set ValueValue=%%C ) SETLOCAL set /a dec=%ValueValue% ( ENDLOCAL & REM RETURN VALUES IF "%~2" NEQ "" (SET %~2=%dec%) ELSE ECHO.%dec% )Строка в агенте
ExternalParameter = InstallDate:C:\scripts\install_date.cmdDCI значение
StringTransformation в DCI
strftime("%Y.%m.%d", $1)Получаем значение вида 2015.01.19
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login