tdevropa-test

Configuration: Set Asset Tag using Dell Platform Tags Utility 4.006 - Windows
Log In or Register to download the BES file, and more.

0 Votes

Description

<enter a description of the task here>

Property Details

ID3928
StatusAlpha - Code that was just developed
TitleConfiguration: Set Asset Tag using Dell Platform Tags Utility 4.006 - Windows
DomainBESC
CategorySoftware Sharing
Download Size313056
SourceInternal
Source IDjgstew
Source Release Date11/24/2014 12:00:00 AM
Added by on 11/25/2014 2:48:19 PM
Last Modified by on 11/25/2014 2:48:19 PM
Counters 4302 Views / 31 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

Windows Only (Relevance 2997197)
Used in 6448 fixlets and 32 analyses * Results in a true/false
Show indented relevance
/* Windows Only */ windows of operating system
Used in 157 fixlets and 17 analyses * Results in a true/false
Show indented relevance
/* Windows XP or Higher */ version of operating system >= "5.1"
Used in 30 fixlets and 2 analyses * Results in a true/false
Show indented relevance
/* DELL Only */ exists values "vendor" whose(it as string as uppercase contains "DELL") of structures "bios_information" of smbios
Used in 1 fixlet * Results in a true/false
Show indented relevance
not exists files whose(name of it starts with "results_Dell_Platform_Tags_" AND name of it as lowercase ends with ".log" AND exists lines whose(it contains "ERROR: Could not locate the BIOS interface to access the tags") of it) of folders "__BESData\__Global\Logs" of parent folder of client
Used in 1 fixlet * Results in a true/false
Show indented relevance
not exists ( ( (it as trimmed string) whose(it != "" AND it != "<not set>") of following texts of firsts "Asset Tag ...... " of lines whose(it contains "Asset Tag ...... ") of files "results_Dell_Platform_Tags_RPT.log" of folders "__BESData\__Global\Logs" of parent folder of client );( (it as trimmed string) of string values whose(it as trimmed string != "") of selects "ElementName from DCIM_Chassis" of wmi "root\dcim\sysman" ) )

Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type tdevropa-test Action Script
action parameter query "Asset_Tag" with description "Enter the Asset Tag to set, maximum of 11 characters" and with default value "abcdef12345"

// -- START:DOWNLOADS -------------------------

// - This is the commandline 7zip console which is use to unpack installers
// - https://virustotal.com/en/file/2a3afe19c180f8373fa02ff00254d5394fec0349f5804e0ad2f6067854ff28ac/analysis
prefetch 7za.zip sha1:9ce9ce89ebc070fea5d679936f21f9dde25faae0 size:384846 http://softlayer-dal.dl.sourceforge.net/project/sevenzip/7-Zip/9.20/7za920.zip

// - This unzip is a compiled verion of unzip v5.52 fom http://info-zip.org/
// - https://virustotal.com/en/file/8d9b5190aace52a1db1ac73a65ee9999c329157c8e88f61a772433323d6b7a4a/analysis
prefetch unzip.exe sha1:e1652b058195db3f5f754b7ab430652ae04a50b8 size:167936 http://software.bigfix.com/download/redist/unzip-5.52.exe

// Utility to set Dell Ownership & Asset tags
// http://dell.com/support/home/us/en/04/Drivers/DriversDetails?driverId=7738M
prefetch PlatformTags.Download sha1:616890ce8e793a670f696eff33a9358f37d1bf05 size:313056 http://downloads.dell.com/FOLDER01410519M/4/PlatformTags%204.006_ZPE.exe

// -- END:DOWNLOADS ---------------------------


// ADD TO UTILITY CACHE: unzip,7zip
utility __Download\unzip.exe
utility __Download\7za.zip
utility __Download\PlatformTags.Download


// EXTRACT using unzip: the 7zip command line utility
waithidden __Download\unzip.exe -o "{pathname of file "7za.zip" of folder "__Download" of client folder of current site}" 7za.exe -d "{pathname of folder "__Download" of client folder of current site}"

// EXTRACT using 7zip: Dell Platform Tags Utility
waithidden "{ (pathname of file "7za.exe" of folder "__Download" of client folder of current site) }" e -i!*\PlatformTags{if (x64 of operating system) then "64" else "32"}.exe -y -o"{pathname of folder "__Download" of client folder of current site}" "{pathname of file "PlatformTags.Download" of folder "__Download" of client folder of current site}"


// SET Asset Tag
continue if{ exists (parameter "Asset_Tag) whose( length of it <= 11 AND it != "" ) }
waithidden __Download\PlatformTags{if (x64 of operating system) then "64" else "32"}.exe File:"{ pathname of folder "__BESData\__Global\Logs" of parent folder of client }\results_Dell_Platform_Tags_SAT.log" SAT:{ (parameter "Asset_Tag") }

parameter "ExitCode" = "{ (exit code of action) as string }"

// GET PlatformTag report
waithidden __Download\PlatformTags{if (x64 of operating system) then "64" else "32"}.exe File:"{ pathname of folder "__BESData\__Global\Logs" of parent folder of client }\results_Dell_Platform_Tags_RPT.log" RPT

// Only continue if Set Asset Tag was successful
continue if{ (parameter "ExitCode") as integer = 0 }

// restart "DSM SA Data Manager" service (to update WMI/OMCI with new tag)
// http://superuser.com/questions/301765/restart-a-windows-service-from-the-command-line
waithidden net stop "DSM SA Data Manager" && net start "DSM SA Data Manager"
// REQUIRE Restart - seems that WMI does not update until the DSM SA Data Manager service is restarted (or perhaps until it is refreshed)
// action requires restart

// PlatformTags.exe -- Version 4.006
// (C) Copyright 1993-2012 Dell Inc.
//
// PlatformTags.exe [File:] [Command]
//
// View/modify Platform Tags
//
// Usage:
// [File:] Specify a path\filename to echo screen text
// [Command] Specify a command to execute
//
// Commands:
// RPT (or ReadPlatformTags) Display All Tag information
// SAT (or SetAssetTag) Set the Asset tag
// DAT (or DeleteAssetTag) Delete the Asset Tag
// SOT (or SetOwnerTag) Set the Owner Tag
// DOT (or DeleteOwnerTag) Delete the Owner Tag
//
// Note: SAT and SOT must be followed by ':' and the string to be used in the tag field
// If spaces are required in the owner tag, use quotes to surround the data
//
// Return Codes:
// 0xFF = Error Condition - Screen will show error
// 0 = Success
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.



Comments

Log In or Register to leave comments!

Recommended Articles

tivoli storage management wcf ria services v1.0 sp2 optiplex 760 dell how to uninstall itunes bigfix patch management guide silverlight developer x64 uninstall trend micro client server security agent utc to pakistan standard time symantec antivirus virus definition microsoft deployment workbench ibm spss mac spss for mac os x