Shared Folder ACL remotely

Welcome Forums General PowerShell Q&A Shared Folder ACL remotely

Viewing 2 reply threads
  • Author
    Posts
    • #195131
      Participant
      Topics: 1
      Replies: 1
      Points: 17
      Rank: Member

      Hi I am trying to get shared folder reports from multiple servers remotely, I am able to get the reports using below code, but the thing is if a folder is shared with 3 user account then i am getting those detail in 3 separate line , because of get-smbshareaccess , need help in joining those details in single line seperated by any delimiter

       

    • #195149
      Moderator
      Topics: 5
      Replies: 237
      Points: 1,320
      Helping Hand
      Rank: Community Hero

      Hi Eshwar,

      I just tweaked your code a bit, and now give it a try…

      Thank you.

    • #195155
      Participant
      Topics: 1
      Replies: 1
      Points: 17
      Rank: Member

      Hi Kiran,

      Thanks a lot man, really helped me a lot, i got the desired output but i did some little tweak to the code you provided.

      I had 3 folders , Initially from your code for 1st folder it was good, but for the 2nd and 3rd, it again went to next line, so removed AcessRights evaluaion from foreach loop, because for some reason O/P for Access rights was coming in numerical format and rights was not mandatory for me now.

      After that got some duplicate lines so used unique parameter in last select-object just before passing to the files

      Thanks again

       

Viewing 2 reply threads
  • The topic ‘Shared Folder ACL remotely’ is closed to new replies.