Clear 2 attributes for selected Users

Welcome Forums General PowerShell Q&A Clear 2 attributes for selected Users

Viewing 2 reply threads
  • Author
    Posts
    • #255584
      Participant
      Topics: 124
      Replies: 269
      Points: 305
      Rank: Contributor

      I’ve successfully gathered an inventory of Users that have a value for 2 attributes.

      Can this be piped into a Set-ADUser -clear attribute for both attributes? Get-Member says I’m still piping an ADUser object but I’m not sure how to pinpoint the Clear to just those 2 attributes.

      something like this?

      • This topic was modified 1 week, 2 days ago by grokkit. Reason: code formatting
    • #255605
      Participant
      Topics: 7
      Replies: 557
      Points: 2,122
      Helping Hand
      Rank: Community Hero

      Yes, exactly like that.

      Please use the pre /pre tags when posting code or errors. The pinned post at the top of the forum has specifics on how to format your question/code.

      Thanks

    • #255758
      Participant
      Topics: 124
      Replies: 269
      Points: 305
      Rank: Contributor

      Doug, thanks, will do

      • This reply was modified 1 week, 1 day ago by kvprasoon.
Viewing 2 reply threads
  • You must be logged in to reply to this topic.