Jump to content

Red

Members
  • Posts

    2
  • Joined

  • Last visited

  • Days Won

    2

Red last won the day on November 7 2022

Red had the most liked content!

Red's Achievements

  1. Hi, The default script "Reset Fortigate Password" to reset passwords on Fortigate firewalls will fail when virtual domains (VDOMs) are enabled on the device. This is due to the wrong starting environment when connected to the firewall. In this case, one can copy the existing powershell script and replace the lines if ($PrivilegedAccountUserName -ne '') { $ResetCommands = "config system admin`redit $UserName`rset password $NewPassword`rend`rexit`r" } else { $ResetCommands = "config system admin`redit $UserName`rset password $NewPassword $OldPassword`rend`rexit`r" } with if ($PrivilegedAccountUserName -ne '') { $ResetCommands = "config global`rconfig system admin`redit $UserName`rset password $NewPassword`rend`rexit`r" } else { $ResetCommands = "config global`rconfig system admin`redit $UserName`rset password $NewPassword $OldPassword`rend`rexit`r" } The new commands start with "config global" to change into the global context of the Fortigate. From that point onward, the commands are the same. Regards, Red
×
×
  • Create New...