Litigation-hold value in Vb.Net

  • Thread starter Thread starter Missii
  • Start date Start date
M

Missii

Guest
Team,

We have one very old project written in Vb.net to set enable litigation hold for users, and its working fine

Dim setLitigationHold As New PSCommand

setLitigationHold .AddCommand("Set-Mailbox")
setLitigationHold .AddParameter("Identity", user)
setLitigationHold .AddParameter("LitigationHoldEnabled", True)
ps.Commands = setLitigationHold
results = ps.Invoke()


However, the new requirement is to check the "litigationhold" status of the user whether its "True" or "False". How do i get that value and store in a variable, searched a lot on google but didn't find anything in Vb.net or C#.


Thanks

Continue reading...
 
Back
Top