[GH-ISSUE #11] Exchange Extension Attributes 1 to 15 - empty #4

Closed
opened 2026-02-27 20:30:45 +03:00 by kerem · 6 comments
Owner

Originally created by @goranko73 on GitHub (Sep 3, 2021).
Original GitHub issue: https://github.com/Set-OutlookSignatures/Set-OutlookSignatures/issues/11

Hi,
Extension attributes (CURRENTUSEREXTATTR1 to CURRENTUSEREXTATTR15) are empty. Is there any other requirement for that to work?
Tnx

Originally created by @goranko73 on GitHub (Sep 3, 2021). Original GitHub issue: https://github.com/Set-OutlookSignatures/Set-OutlookSignatures/issues/11 Hi, Extension attributes ($CURRENTUSEREXTATTR1$ to $CURRENTUSEREXTATTR15$) are empty. Is there any other requirement for that to work? Tnx
kerem closed this issue 2026-02-27 20:30:45 +03:00
Author
Owner

@GruberMarkus commented on GitHub (Sep 3, 2021):

Thanks for reporting this issue.

Extension attributes should work out of the box.

You have found a bug:

  1. The script 'default replacement variables.ps1' refers to four arrays containing Active Directory attributes (one each for the current user, it's manager, the current mailbox, and it's manager).
  2. Depending on the exact AD constellation, these attributes are populated either via the PowerShell [ADSI] accelerator or via a Directory Searcher object.
  3. I don't know why, but with one of these methods, the returned property names can be accessed with case insensitive names, the other method requires case sensitivity.
  4. The file 'default replacement variables.ps1' in the latest releases uses lower and upper case letters for property names. This results in AD properties shown as empty, although they have values.

The solution is to only use lower case property names in 'default replacement variables.ps1' for accessing the AD attribute arrays. i will also place a hint for this in the file.

I will publish a hotfix release today and close this issue afterwards.

<!-- gh-comment-id:912471389 --> @GruberMarkus commented on GitHub (Sep 3, 2021): Thanks for reporting this issue. Extension attributes should work out of the box. You have found a bug: 1. The script 'default replacement variables.ps1' refers to four arrays containing Active Directory attributes (one each for the current user, it's manager, the current mailbox, and it's manager). 2. Depending on the exact AD constellation, these attributes are populated either via the PowerShell [ADSI] accelerator or via a Directory Searcher object. 3. I don't know why, but with one of these methods, the returned property names can be accessed with case insensitive names, the other method requires case sensitivity. 4. The file 'default replacement variables.ps1' in the latest releases uses lower and upper case letters for property names. This results in AD properties shown as empty, although they have values. The solution is to only use lower case property names in 'default replacement variables.ps1' for accessing the AD attribute arrays. i will also place a hint for this in the file. I will publish a hotfix release today and close this issue afterwards.
Author
Owner

@GruberMarkus commented on GitHub (Sep 3, 2021):

Could you please test the hotfix before I release it?

  1. Download the attached file
  2. Rename it to 'default replacement variables.ps1'
  3. Replace './config/default replacement variables.ps1' with the new file
  4. Run 'Set-OutlookSignatures.ps1' and let me know if extension attributes are working.

default replacement variables.ps1.txt

<!-- gh-comment-id:912475821 --> @GruberMarkus commented on GitHub (Sep 3, 2021): Could you please test the hotfix before I release it? 1. Download the attached file 2. Rename it to 'default replacement variables.ps1' 3. Replace './config/default replacement variables.ps1' with the new file 4. Run 'Set-OutlookSignatures.ps1' and let me know if extension attributes are working. [default replacement variables.ps1.txt](https://github.com/GruberMarkus/Set-OutlookSignatures/files/7105605/default.replacement.variables.ps1.txt)
Author
Owner

@goranko73 commented on GitHub (Sep 3, 2021):

Could you please test the hotfix before I release it?

  1. Download the attached file
  2. Rename it to 'default replacement variables.ps1'
  3. Replace './config/default replacement variables.ps1' with the new file
  4. Run 'Set-OutlookSignatures.ps1' and let me know if extension attributes are working.

default replacement variables.ps1.txt

It is working now...tnx a lot

<!-- gh-comment-id:912478425 --> @goranko73 commented on GitHub (Sep 3, 2021): > Could you please test the hotfix before I release it? > > 1. Download the attached file > 2. Rename it to 'default replacement variables.ps1' > 3. Replace './config/default replacement variables.ps1' with the new file > 4. Run 'Set-OutlookSignatures.ps1' and let me know if extension attributes are working. > > [default replacement variables.ps1.txt](https://github.com/GruberMarkus/Set-OutlookSignatures/files/7105605/default.replacement.variables.ps1.txt) It is working now...tnx a lot
Author
Owner

@GruberMarkus commented on GitHub (Sep 3, 2021):

Thank you for reporting this bug.

I hope you find Set-OutlookSignatures a useful tool. Feel free to share your feedback with me while and after your evaluation/implementation.

<!-- gh-comment-id:912480848 --> @GruberMarkus commented on GitHub (Sep 3, 2021): Thank you for reporting this bug. I hope you find Set-OutlookSignatures a useful tool. Feel free to share your feedback with me while and after your evaluation/implementation.
Author
Owner

@goranko73 commented on GitHub (Sep 3, 2021):

I really appreciate the work you are doing. Thanks once again and all thumbs up!!!

<!-- gh-comment-id:912485154 --> @goranko73 commented on GitHub (Sep 3, 2021): I really appreciate the work you are doing. Thanks once again and all thumbs up!!!
Author
Owner

@GruberMarkus commented on GitHub (Sep 3, 2021):

Fixed in pull request #12, which is part of the release version 2.1.2 (https://github.com/GruberMarkus/Set-OutlookSignatures/releases/tag/v2.1.2).

<!-- gh-comment-id:912500481 --> @GruberMarkus commented on GitHub (Sep 3, 2021): Fixed in pull request #12, which is part of the release version 2.1.2 (https://github.com/GruberMarkus/Set-OutlookSignatures/releases/tag/v2.1.2).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Set-OutlookSignatures-Set-OutlookSignatures#4
No description provided.