从AD获取邮箱的Exchagneguid

 

$exguid_byetarray = (Get-ADUser yunchi02 -Properties msExchMailboxGuid).msExchMailboxGuid  #此时为byteArray格式
new-object System.Guid -ArgumentList @(, $exguid_byetarray) #将其转换为guid

 

posted on 2023-10-13 23:23  momingliu11  阅读(23)  评论(0编辑  收藏  举报