Examples/2-SetPowerShellExecutionPolicyWithoutScopeLevel.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<#
.EXAMPLE
    This example shows how to configure powershell's execution policy using the default scope level.
#>


Configuration Example
{
    Import-DscResource -ModuleName xPowerShellExecutionPolicy

    Node localhost
    {
        xPowerShellExecutionPolicy ExecutionPolicy
        {
            ExecutionPolicy = 'RemoteSigned'
        }
    }
}