Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions docset/winserver2012r2-ps/smbshare/Get-SmbShare.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,20 @@ VMS1 Contoso-FS I:\VMS
VMS2 Contoso-FS J:\VMS
```

This example retrieves the SMB shares on the computer that are connect to the SMB server named Contoso-FS.
This example retrieves the SMB shares on the computer that are connected to the SMB server named Contoso-FS.

### EXAMPLE 7
```
PS C:\>Get-SmbShare -Smbinstance Default

Name ScopeName Path Description
---- --------- ---- -----------
VMS1 Contoso-FS I:\VMS
VMS3 Contoso-SO C:\ClusterStorage\Volume1\VMS
VMS4 Contoso-SO C:\ClusterStorage\Volume2\VMS
```

This example retrieves the SMB shares on the computer which has the Smbinstance value set as Default.

## PARAMETERS

Expand Down Expand Up @@ -367,13 +380,13 @@ Accept wildcard characters: False
```

### -SmbInstance
{{Fill SmbInstance Description}}
Specifies the input to this cmdlet. You can use this parameter, or you can pipe the input to this cmdlet.

```yaml
Type: SmbInstance
Parameter Sets: (All)
Aliases:
Accepted values: Default, CSV
Accepted values: Default, CSV, SBL, SR

Required: False
Position: Named
Expand Down
19 changes: 17 additions & 2 deletions docset/winserver2012r2-ps/smbshare/Unblock-SmbShareAccess.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,21 @@ VMFiles Contoso-SO Contoso\Contoso-HV1$ Allow

This example removes all of the deny ACEs for the trustee from the security descriptor of the SMB share without user confirmation.

### EXAMPLE 3
```
PS C:\>Unblock-SmbShareAccess -Smbinstance Default
Confirm
Are you sure you want to perform this action?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y

Name ScopeName AccountName AccessControlType AccessRight
---- --------- ----------- ----------------- -----------
VMFiles Contoso-SO Contoso\Administrator Allow Full
VMFiles Contoso-SO Contoso\Contoso-HV1$ Allow Full
```

This example removes all of the deny ACEs for all Smbinstance's which has the value set as Default..

## PARAMETERS

### -AccountName
Expand Down Expand Up @@ -198,13 +213,13 @@ Accept wildcard characters: False
```

### -SmbInstance
{{Fill SmbInstance Description}}
Specifies the input to this cmdlet. You can use this parameter, or you can pipe the input to this cmdlet.

```yaml
Type: SmbInstance
Parameter Sets: Query
Aliases:
Accepted values: Default, CSV
Accepted values: Default, CSV, SBL, SR

Required: False
Position: Named
Expand Down