Retrieve host name and SMB share name (UNC Path) using PowerShell
Posted onRecently I got a request to retrieve host name and SMB share name using PowerShell. This is not new and indeed there are many ways to do it and I am sharing few I like. Consider the UNC PATH is like shown below “\\SERVER\DEMO\SMBSHARE” Our requirement is to retrieve “SERVER” and “SMBSHARE” – Well regex […]