Change local admin password help?

I’m fairly certain this is happening due to problems with the javascript that are likely due to BigFix.Me changing the file in some way.

Trying to figure out the best way to do Forms in the HTML of BigFix content based upon previous work.

Something like this, but it doesn’t seem to work:

<script>
function validateTakeAction() {
  var theSecret = document.getElementById( "secret" ).value;
  var theSecret2 = document.getElementById( "secret2" ).value;

  if ( theSecret<>theSecret2 )
    { alert("The passwords entered do not match!"); }
  else {
    TakeSecureFixletAction( Relevance('id of current fixlet'), Relevance('id of current bes site'), "Action2", {}, { secret: theSecret } );
  }
  
  return false;
}

document.body.ontakeaction = validateTakeAction();

</script>
<form action="javascript:void(0);" onsubmit="return validateTakeAction();">
  <label for=secret>Console Password:</label>
  <input id=secret type=password name=secret required autofocus/><br/>
  <label for=secret2> Verify Password:</label>
  <input id=secret2 type=password name=secret2 required/><br/>
  <input type="submit" value="Take Action"/>
</form>

I’m also wondering if starting by using Parameterized Fixlets makes sense for something like this or not. Example: https://github.com/strawgate/C3-Inventory/blob/master/Fixlets/Invoke%20-%20Join%20Active%20Directory%20Domain%20-%20Windows.bes

1 Like