# LoginVault **EventNames:** - LoginVault_Post **Remarks**: - If the connection was established, the automatic variable `$vaultConnection`(provided by _[powerVault]()_) can be used in the event action to retrieve the connection information: ```powershell $vaultConnection.Server # localhost $vaultConnection.UserName # Administrator $vaultConnection.Vault # Vault ``` **Examples:**\ LoginVault_Post: ```powershell Register-VaultEvent -EventName LoginVault_Post -Action 'PostLoginVault' function PostLoginVault() { #Write event code here } ```