< Back
Read-RegistryPolicies
Post
NAME Read-RegistryPolicies
SYNOPSIS
Reads registry policies from a list of entries.
SYNTAX
Read-RegistryPolicies [[-Division] <String>] [[-Entries] <String[]>] [<CommonParameters>]
DESCRIPTION
Reads registry policies from a list of entries and returns an array of GPRegistryPolicies.
PARAMETERS
-Division <String>
Specifies the division from which the registry entries will be read.
Required? false
Position? 1
Default value LocalMachine
Accept pipeline input? false
Accept wildcard characters? false
-Entries <String[]>
Required? false
Position? 2
Default value $script:DefaultEntries
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
System.Array
-------------------------- EXAMPLE 1 --------------------------
C:\\PS>Read-RegistryPolicies -Division "LocalMachine"
-------------------------- EXAMPLE 2 --------------------------
C:\\PS>Read-RegistryPolicies -Division "LocalMachine" -Entries @('Software\\Policies\\Microsoft\\Windows',
'Software\\Policies\\Microsoft\\WindowsFirewall')
RELATED LINKS
SYNOPSIS
Reads registry policies from a list of entries.
SYNTAX
Read-RegistryPolicies [[-Division] <String>] [[-Entries] <String[]>] [<CommonParameters>]
DESCRIPTION
Reads registry policies from a list of entries and returns an array of GPRegistryPolicies.
PARAMETERS
-Division <String>
Specifies the division from which the registry entries will be read.
Required? false
Position? 1
Default value LocalMachine
Accept pipeline input? false
Accept wildcard characters? false
-Entries <String[]>
Required? false
Position? 2
Default value $script:DefaultEntries
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
System.Array
-------------------------- EXAMPLE 1 --------------------------
C:\\PS>Read-RegistryPolicies -Division "LocalMachine"
-------------------------- EXAMPLE 2 --------------------------
C:\\PS>Read-RegistryPolicies -Division "LocalMachine" -Entries @('Software\\Policies\\Microsoft\\Windows',
'Software\\Policies\\Microsoft\\WindowsFirewall')
RELATED LINKS