MS Run A S E P
| 0 Votes |
Description
Property Details
Relevance
isWindows (Relevance 1172)
windows of operating system
| Used in 1 fixlet | * Results in a true/false |
exists distinguished name of local computer of active directory
| Used in 1 fixlet | * Results in a true/false |
not exists running application "asep_inv.exe"
| Used in 1 fixlet | * Results in a true/false |
(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 |
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: |

