Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Parsing net view output

$
0
0

I was wondering if anyone has written a script that parses net view output, and then joins the the host name and share and outputs the results to a file...

Sample net view output:

C:\Users\user01>net view \\computer01
Shared resources at \\computer01



Share name             Type  Used as  Comment

-------------------------------------------------------------------------------
Backups                Disk
Shared                 Disk
Download               Disk           
Junk                   Disk           
The command completed successfully.
As I mentioned above, I'd like for the output to look something like this:
\\computer01\Backups
\\computer01\Shared
\\computer01\Download
\\computer01Junk 

Viewing all articles
Browse latest Browse all 6937

Trending Articles