|
2 | 2 | description: Use this topic to help manage Windows and Windows Server technologies with Windows PowerShell. |
3 | 3 | external help file: SmbServerConfiguration.cdxml-help.xml |
4 | 4 | Module Name: SmbShare |
5 | | -ms.date: 06/23/2022 |
| 5 | +ms.date: 06/24/2022 |
6 | 6 | online version: /powershell/module/smbshare/set-smbserverconfiguration?view=windowsserver2022-ps&wt.mc_id=ps-gethelp |
7 | 7 | schema: 2.0.0 |
8 | 8 | title: Set-SmbServerConfiguration |
@@ -59,55 +59,49 @@ and [[MS-SMB2]:Server Message Block (SMB) Protocol Versions 2 and 3](/openspecs/ |
59 | 59 | Set-SmbServerConfiguration -MaxChannelPerSession 16 -Confirm:$false |
60 | 60 | ``` |
61 | 61 |
|
62 | | -This command sets the SMB Service configuration. |
63 | | - |
64 | | -### Example 2: Set the SMB Service configuration without confirmation |
65 | | - |
66 | | -```powershell |
67 | | -Set-SmbServerConfiguration -MaxChannelPerSession 32 -Force |
68 | | -``` |
69 | | - |
70 | 62 | This command sets the SMB Service configuration without user confirmation. |
71 | 63 |
|
72 | | -### Example 3: Turn on SMB signing and encryption |
| 64 | +### Example 2: Turn on SMB signing and encryption |
73 | 65 |
|
74 | 66 | ```powershell |
75 | | -Set-SmbServerConfiguration -RequireSecuritySignature $True -EnableSecuritySignature $True -EncryptData $True -Confirm:$false |
| 67 | +Set-SmbServerConfiguration -RequireSecuritySignature $True -EnableSecuritySignature $True |
| 68 | + -EncryptData $True -Confirm:$false |
76 | 69 | ``` |
77 | 70 |
|
78 | | -This command turns on SMB signing and encryption. |
| 71 | +This command turns on SMB signing and encryption without user confirmation. |
79 | 72 |
|
80 | | -### Example 4: Turn off the default server and workstations shares |
| 73 | +### Example 3: Turn off the default server and workstations shares |
81 | 74 |
|
82 | 75 | ```powershell |
83 | 76 | Set-SmbServerConfiguration -AutoShareServer $False -AutoShareWorkstation $False -Confirm:$false |
84 | 77 | ``` |
85 | 78 |
|
86 | | -This command turns off the default server and workstations shares. |
| 79 | +This command turns off the default server and workstations shares without user confirmation. |
87 | 80 |
|
88 | | -### Example 5: Turn off server announcements |
| 81 | +### Example 4: Turn off server announcements |
89 | 82 |
|
90 | 83 | ```powershell |
91 | 84 | Set-SmbServerConfiguration -ServerHidden $False -AnnounceServer $False -Confirm:$false |
92 | 85 | ``` |
93 | 86 |
|
94 | | -This command turns off server announcements. |
| 87 | +This command turns off server announcements without user confirmation. |
95 | 88 |
|
96 | | -### Example 6: Turn off SMB1 |
| 89 | +### Example 5: Turn off SMB1 |
97 | 90 |
|
98 | 91 | ```powershell |
99 | | -Set-SmbServerConfiguration -EnableSMB1Protocol $false |
| 92 | +Set-SmbServerConfiguration -EnableSMB1Protocol $false -Confirm:$false |
100 | 93 | ``` |
101 | 94 |
|
102 | | -This command disables SMB1 on the SMB server. |
| 95 | +This command disables SMB1 on the SMB server without user confirmation. |
103 | 96 |
|
104 | | -### Example 7: Specify encryption ciphers |
| 97 | +### Example 6: Specify encryption ciphers |
105 | 98 |
|
106 | 99 | ```powershell |
107 | | -Set-SmbServerConfiguration -EncryptionCiphers "AES_128_GCM, AES_256_GCM" |
| 100 | +Set-SmbServerConfiguration -EncryptionCiphers "AES_128_GCM, AES_256_GCM" -Confirm:$false |
108 | 101 | ``` |
109 | 102 |
|
110 | | -This command specifies the encryption ciphers used by the SMB client, and the preferred order. |
| 103 | +This command specifies the encryption ciphers used by the SMB client, and the preferred order |
| 104 | +without user confirmation. |
111 | 105 |
|
112 | 106 | ## PARAMETERS |
113 | 107 |
|
|
0 commit comments