> For the complete documentation index, see [llms.txt](https://watchdogsacademy.gitbook.io/attacking-active-directory/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://watchdogsacademy.gitbook.io/attacking-active-directory/user-enumeration-exploit/powerview/get-netfileserver.md).

# Get-NetFileServer

```
#Find shares on hosts in current domain.
Invoke-ShareFinder –Verbose

Invoke-ShareFinder
Invoke-ShareFinder -Domain newyork.local
Invoke-ShareFinder -Domain maryland.local
Invoke-ShareFinder –Verbose -ExcludeStandard -ExcludeIPC -ExcludePrint


#Find sensitive files on computers in the domain
Invoke-FileFinder –Verbose


#Get all fileservers of the domain
Get-NetFileServer #Search file servers. Lot of users use to be logged in this kind of servers
Find-DomainShare -CheckShareAccess #Search readable shares
Find-InterestingDomainShareFile #Find interesting files, can use filters
```

<figure><img src="https://755243087-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB2Dm6vWGbM7kQRITOyVl%2Fuploads%2FGq0HMiplljjyOntw12Xg%2Fimage.png?alt=media&amp;token=1bf9b124-a170-429d-a172-1d4293147a55" alt=""><figcaption></figcaption></figure>
