File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
docset/winserver2022-ps/smbshare Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -64,10 +64,18 @@ This command sets the SMB Service configuration without user confirmation.
6464### Example 2: Turn on SMB signing and encryption
6565
6666``` powershell
67- Set-SmbServerConfiguration -RequireSecuritySignature $True -EnableSecuritySignature $True -EncryptData $True -Confirm:$false
68- ```
69-
70- This command turns on SMB signing and encryption without user confirmation.
67+ $Parameters = @{
68+ RequireSecuritySignature = $True
69+ EnableSecuritySignature = $True
70+ EncryptData = $True
71+ Confirm = $false
72+ }
73+ Set-SmbServerConfiguration @Parameters
74+ ```
75+
76+ This command turns on SMB signing and encryption without user confirmation. This example uses
77+ splatting to pass parameter values from the '$Parameters' variable to the command. Learn more about
78+ [ Splatting] ( /powershell/module/microsoft.powershell.core/about/about_splatting ) .
7179
7280### Example 3: Turn off the default server and workstations shares
7381
You can’t perform that action at this time.
0 commit comments