This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to get Email from User Account (vbscript)

Former Member
Former Member
Hello guys,


Is it possible to get the email from a User Account in VBScript?. If yes may I see your sample code?, And in addition, I want to ask you on how to foreach in the multiple user account in vbscript. Thank you in Advance :)


Best Regards, Sean
Parents
  • I did a try wih this code but I'm getting an error message about to create a registry key to enable especific vault login accounts required for this procedure because the option is not available any more...


    Dim oUA : oUA = PropertyValues.SearchForProperty(1038).TypedValue.DisplayValue
    'get the log in account from the user account name
    Dim oLA : Set oLA = Vault.LoginAccountOperations.GetLoginAccount(oUA).LoginName
    'get the email address from the log in account
    Dim sEM : sEM = oLA.EmailAddress
    Output = sEM


Reply
  • I did a try wih this code but I'm getting an error message about to create a registry key to enable especific vault login accounts required for this procedure because the option is not available any more...


    Dim oUA : oUA = PropertyValues.SearchForProperty(1038).TypedValue.DisplayValue
    'get the log in account from the user account name
    Dim oLA : Set oLA = Vault.LoginAccountOperations.GetLoginAccount(oUA).LoginName
    'get the email address from the log in account
    Dim sEM : sEM = oLA.EmailAddress
    Output = sEM


Children
No Data