I have list of remote sharepaths which i dont have direct access, I want to find out Owner of each share and total space . Is there any way to find it out using powershell script??
Thanks In advance jerin
I have list of remote sharepaths which i dont have direct access, I want to find out Owner of each share and total space . Is there any way to find it out using powershell script??
Thanks In advance jerin
Getting the owner of a folder works the same way regardless of whether it's a local folder or a share. Simply use UNC:
$path = <path_to_folder> # For example: \\server_name\share_name
Get-Acl $path | Select-Object -ExpandProperty Owner
It's not clear from your question whether you want to get free space on the volume where the folder is located or the total size of all items in the folder. Anyway:
Finding free space: http://blogs.technet.com/b/josebda/archive/2010/04/08/using-powershell-v2-to-gather-info-on-free-space-on-the-volumes-of-your-remote-file-server.aspx
Finding the total size: http://technet.microsoft.com/en-us/library/ff730945.aspx