userSharedFolder attribute set

This topic contains 4 replies, has 2 voices, and was last updated by Profile photo of Don Jones Don Jones 8 months, 1 week ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #34236
    Profile photo of Partho Sankar Roy
    Partho Sankar Roy
    Participant

    Guys,

    Any idea how do I set a user's userSharedFolder attribute using powershell, Seems set-aduser doesnt have this attribute. I have a text file containing user samaccount name and userSharedFolder folder value.

    Thanks in advance.

    #34238
    Profile photo of Don Jones
    Don Jones
    Keymaster

    Set-ADUser may not have a specific parameter, but the -Properties param can set anything.

    #34239
    Profile photo of Partho Sankar Roy
    Partho Sankar Roy
    Participant

    Thanks for your reply Don, but did you mean -Properties param of set-aduser ? I think there is no -Properties in set-Aduser.

    #34240
    Profile photo of Partho Sankar Roy
    Partho Sankar Roy
    Participant

    I think I got it, I can use add or replace param in set-aduser, Thanks Don.

    #34241
    Profile photo of Don Jones
    Don Jones
    Keymaster

    Apologies; wrong command. You'd use -Add or -Replace or -Remove. The help has examples.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.