# Event The Event object is of type *PsObject* and represents the [registeration](/code_reference/commandlets/register-vaultevent) to a specific Vault event. ## Syntax ```PowerShell $event.SourceIdentifier ``` Following properties are available : | Type | Name | Description | |-------------------------------------------------------|------------------|------------------------------------------------------------------------------------------------------------------------| | [VaultEvent](/code_reference/objects/event_mappings) | Name | The name of the registered Vault event. | | String | SourceIdentifier | Unique string which represents the registered event. Required for [](/code_reference/commandlets/unregister-vaultevent). | | String / [ScriptBlock][] | Command | The powershell script which gets executed when the event gets fired. | [ScriptBlock]: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_script_blocks ## Examples **Registered event with Command specified as function name** ```PowerShell Name : UpdateFileStates_Restrictions SourceIdentifier : 6090dbfa-bbb4-4d31-becf-4b63c8111a4f Command : CanTriggerDwfJob ``` **Properties of an event with Command specified as ScriptBlock** ```PowerShell Name : UpdateFileStates_Post SourceIdentifier : f4e99f68-fcfb-4d1c-b0df-4ae5611de2b6 Command : { param() write-host 'This ScriptBlock gets executed when the Vault event is raised!' } ```