continue if {(size of it = 27892847 AND sha1 of it = “05de48be87d8f7c166d348db2fcfcef93d057bc1”) of file “Backup_AgentSetupmsi.tmp” of folder “__Download”}
extract Backup_AgentSetupmsi.tmp
wait “{pathname of system folder & “\msiexec.exe”}” /qn /i “{(pathname of client folder of current site) & “__Download\Backup_AgentSetup.msi”}” LDAPID=%username% FIRSTBACKUP=1
The application is successfully installing, but it is not successfully registering the account as that user, which is what the LDAPID=%username% switch is supposed to do. Can you tell me by the above action if the switches are even running?
Can you tell me which user that “%username%” is supposed to refer to? the currently logged in user? If so, remember that the agent runs these commands as the local system account and so the %username% is probably “LocalSystem”.
I can give you the relevance so you can look up the current user in BigFix, but what do you want to do if multiple users are logged in?
Correct the %username% is the user that is logged onto the system and there would only be one at a time since it is a users Windows XP machine. If you could please give me the relevance I will try my luck at that.
OK I’m figuring I need to add name of current user to my action statement but I am not sure where. My co-worker simply created an exe out of the msi file and used BF to push out the client months ago. He is out of out of the office so I may have to wait until he comes back if it is dtermined we cannot use BF to push it out due to the needed switches
// This next line will fail if there are multiple users logged on or if no users are logged on.
continue if {number of logged on users = 1}
wait “{pathname of system folder & “\msiexec.exe”}” /qn /i “{(pathname of client folder of current site) & “__Download\Backup_AgentSetup.msi”}” LDAPID={name of logged on user} FIRSTBACKUP=1
Command failed (Relevance substitution failed) wait “{pathname of system folder & “\msiexec.exe”}” /qn /i “{(pathname of client folder of current site) & “__Download\Backup_AgentSetup.msi”}” LDAPID={name of logged on user} FIRSTBACKUP=0 (fixlet 24294)
I do not think it likes the {name of logged on user} statement because it fails on this one as well
continue if {number of logged on users = 1}
Just wanted to confirm these statements will indeed run on v6.0, as we have not yet upgraded to 7
// This next line will fail if there are multiple users logged on or if no users are logged on.
continue if {exists current user}
wait “{pathname of system folder & “\msiexec.exe”}” /qn /i “{(pathname of client folder of current site) & “__Download\Backup_AgentSetup.msi”}” LDAPID={name of current user} FIRSTBACKUP=1
And you should upgrade to 7.0 or 7.1 when you get a chance…