Search the Community
Showing results for tags 'script'.
-
Password Reset Script for Fortigates with VDOMs enabled
Red posted a topic in General Hints and Tips
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-
- passwordreset
- script
-
(and 1 more)
Tagged with:
-
Hi, we want to use passwortstate implement in our company. But as emergency storage for local accounts if Active Directory is down. In this scenario all access to passwords must trigger an alarm to the security team. Is there a possibility to trigger an custom script automatically when a password is copied?