MS Run A S E P
Log In or Register to download the BES file, and more.

0 Votes

Description

<enter a description of the problem and the corrective action here>

Property Details

ID24644
TitleMS Run A S E P
DomainBESC
SourceInternal
Source Release Date9/22/2017 12:00:00 AM
Added by on 9/25/2017 2:01:52 PM
Last Modified by on 9/25/2017 2:01:52 PM
Counters 8933 Views / 5 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

isWindows (Relevance 1172)
Used in 1155 fixlets and 538 analyses   * Results in a true/false
Show indented relevance
windows of operating system
Used in 1 fixlet   * Results in a true/false
Show indented relevance
exists distinguished name of local computer of active directory
Used in 1 fixlet   * Results in a true/false
Show indented relevance
not exists running application "asep_inv.exe"
Used in 1 fixlet   * Results in a true/false
Show indented relevance
(exists addresses whose (it as string starts with "IP-CHANGE" OR it as string starts with "IP-CHANGE" OR it as string starts with "IP-CHANGE") of ip interfaces whose (not loopback of it) of network) OR (exists upper bound whose (it <= 7) of distance of selected server)
Used in 1 fixlet   * Results in a true/false
Show indented relevance
if (exists folder "C:\Windows\Logs\MSEng") then (/*(NOT exists file whose (name of it contains "MachineExtraInfo.txt") of folder "C:\Windows\Logs\MSEng") OR */ (NOT exists file whose (name of it contains "Inventory.cab") of folder "C:\Windows\Logs\MSEng") OR (NOT exists file whose (name of it contains "AdminCollector" AND name of it contains ".tsv") of folder "C:\Windows\Logs\MSEng")) else true

Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
prefetch MS.zip sha1:sha1REPLACE size:149875592 URL1 sha256:sha256REPLACE
prefetch unzip.exe sha1:sha1REPLACE size:167936 URL2 sha256:sha256REPLACE

// Set Parameters
parameter "Domain" = "{(preceding texts of first "." of it as uppercase) of string value of select "Domain from Win32_ComputerSystem" of wmi}"
parameter "filepath" = "{pathname of client folder of current site}"

// Create folder if it doesn't exists
if { not exists folder "C:\Windows\Logs\MSEng" }
    waithidden cmd.exe /C mkdir "C:\Windows\Logs\MSEng"
endif


// Unzip the File
waithidden __Download\unzip.exe -qq -o "__Download\MS.zip" -d "__Download"


// Run the Commands
waithidden cmd.exe /C "__Download\Scanner\AdminCollector.exe" -o .
waithidden cmd.exe /C "__Download\Scanner\ASEP_Inv.exe"


// Copy AdminCollector File
waithidden cmd.exe /C copy /Y "{(parameter "filepath") & "\AdminCollector*.tsv"}" "C:\Windows\Logs\MSEng"


// Copy Machine ExtraInfo
if { exists files whose (name of it as string as lowercase contains "machineextrainfo.txt") of folder (parameter "filepath") }
    copy "{(parameter "filepath") & "\" & Computer Name & "-MachineExtraInfo.txt"}" "{"C:\Windows\Logs\MSEng\" & (parameter "Domain") & "#" & Computer Name & "#MachineExtraInfo.txt"}"
endif


// Copy XML Inventory File
copy "{(parameter "filepath") & "\" & Computer Name & "-ASEPInventory.xml"}" "{"C:\Windows\Logs\MSEng\" & (parameter "Domain") & "#" & Computer Name & "#ASEP_Inventory.xml"}"


// Create CAB File from XML Inventory File
waithidden cmd.exe /C makecab "{"C:\Windows\Logs\MSEng\" & (parameter "Domain") & "#" & Computer Name & "#ASEP_Inventory.xml"}" "{"C:\Windows\Logs\MSEng\" & (parameter "Domain") & "#" & Computer Name & "#ASEP_Inventory.cab"}"


// Copy Files to WinTeam File Share
waithidden cmd.exe /C copy /Y "C:\Windows\Logs\MSEng\AdminCollector*.tsv" \\SERVERNAME\ASEP
waithidden cmd.exe /C copy /Y "{"C:\Windows\Logs\MSEng" & (parameter "Domain") & "#" & Computer Name & "#ASEP_Inventory.cab"}" \\SERVERNAME\ASEP
if { exists files whose (name of it as string as lowercase contains "machineextrainfo.txt") of folder (parameter "filepath") }
    waithidden cmd.exe /C copy /Y "{"C:\Windows\Logs\MSEng" & (parameter "Domain") & "#" & Computer Name & "#MachineExtraInfo.txt"}" \\SERVERNAME\ASEP
endif
Success Criteria

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


Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!