-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path1-WSManClientConfig_Config.ps1
More file actions
40 lines (36 loc) · 1.07 KB
/
1-WSManClientConfig_Config.ps1
File metadata and controls
40 lines (36 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<#PSScriptInfo
.VERSION 1.0.0
.GUID 5eb95759-9a02-4121-bfca-bba124bfc4f8
.AUTHOR DSC Community
.COMPANYNAME DSC Community
.COPYRIGHT Copyright the DSC Community contributors. All rights reserved.
.TAGS DSCConfiguration
.LICENSEURI https://github.com/dsccommunity/WSManDsc/blob/main/LICENSE
.PROJECTURI https://github.com/dsccommunity/WSManDsc
.ICONURI
.EXTERNALMODULEDEPENDENCIES
.REQUIREDSCRIPTS
.EXTERNALSCRIPTDEPENDENCIES
.RELEASENOTES First version.
.PRIVATEDATA 2016-Datacenter,2016-Datacenter-Server-Core
#>
#Requires -module WSManDsc
<#
.DESCRIPTION
Set the WS-Man client to disallow unencrypted traffic,
disable Basic authentication and set TrustedHosts to '*'.
#>
Configuration WSManClientConfig_Config
{
Import-DscResource -Module WSManDsc
Node localhost
{
WSManClientConfig ClientConfig
{
IsSingleInstance = 'Yes'
AllowUnencrypted = $false
AuthBasic = $false
TrustedHosts = '*'
} # End of WSManClientConfig Resource
} # End of Node
} # End of Configuration