I'm trying to use AD Attributes with a hyena custom tool to pass values to batch and powershell and noticed a couple problems. If you try and pass an AD Attribute Name from a selected user that doesn't exist Hyena crashes. I'm trying to pass %msRTCSIP-PrimaryUserAddress% (OCS/Lync/Skype4Business) %adminCount%, & %disinguishedName%. Not all users have an adminCount or msRTCSIP-PrimaryUserAddress attribute. The crash is one problem, the other is with the disinguishedName as it only passes CN. I think the "=" may be causing that problem.
Tool cmd Examples
C:\_HyenaCustomFiles\DoSomeThing.bat %E% %homeDirectory% %distinguishedName%
powershell.exe -executionpolicy bypass -command C:\_HyenaCustomFiles\Lync\MigrateLegacyUser.ps1 -SAN %sAMAccountName%
I was able to get around the the crash problem by just powershell directly to query the ad abject based on the sAMAccountName
Any input is appreciated.