Monday, December 5, 2011

how to get users from a shared folder

Hi there,

this is a very useful command for get users from a shared folder.

#Get the ACL on the existing folder

$USERACL = get-acl "\\server\share\folder"

#Show the ACL

write-host "ACL entry is "

$USERACL | format-list
Copy the above into a notepad, modify the  "\\server\share\folder" to your location of the share and save as a *.ps1 file.


Open Powershell and browse to your *.ps1 location and run it. it should give you a list BUT make sure that YOU too have permission on the share.

Alternatively after modifying share location, you can paste the commands directly in powershell and get the same results.

1 comment:

  1. Merkur 37C Safety Razor Review – Merkur 37C
    The Merkur 37c is 토토 사이트 홍보 an excellent short handled gri-go.com DE deccasino safety razor. It is more suitable https://febcasino.com/review/merit-casino/ for wooricasinos.info both heavy and non-slip hands and is therefore a great option for experienced

    ReplyDelete