Skip to content

Latest commit

 

History

History
149 lines (111 loc) · 3.8 KB

Set-LsaPolicyInformation.md

File metadata and controls

149 lines (111 loc) · 3.8 KB
external help file Module Name online version schema
DSInternals.PowerShell.dll-Help.xml
DSInternals
2.0.0

Set-LsaPolicyInformation

SYNOPSIS

Configures AD-related Local Security Authority Policies of the local computer or a remote one.

SYNTAX

Set-LsaPolicyInformation -DomainName <String> -DnsDomainName <String> -DnsForestName <String>
 -DomainGuid <Guid> -DomainSid <SecurityIdentifier> [[-ComputerName] <String>] [<CommonParameters>]

DESCRIPTION

Configures AD-related Local Security Authority (LSA) Policies of the local or a remote computer. This functionality is helpful when restoring Active Directory domain controllers (DC) from IFM backups. Note that running this command against a DC with parameters that do not match the information stored in its local AD database might prevent the target DC from booting ever again.

EXAMPLES

Example 1

PS C:\> Set-LsaPolicyInformation -DomainName 'ADATUM' `
                                 -DnsDomainName 'Adatum.com' `
                                 -DnsForestName 'Adatum.com' `
                                 -DomainGuid 279b615e-ae79-4c86-a61a-50f687b9f7b8 `
                                 -DomainSid S-1-5-21-1817670852-3242289776-1304069626

Configures AD-related LSA Policy Information of the local computer.

PARAMETERS

-ComputerName

Specifies the target computer for the operation. Enter a fully qualified domain name (FQDN), a NetBIOS name, or an IP address. When the remote computer is in a different domain than the local computer, the fully qualified domain name is required.

The default is the local computer. To specify the local computer, such as in a list of computer names, use "localhost", the local computer name, or a dot (.).

Type: String
Parameter Sets: (All)
Aliases: Server, ServerName, Computer, Machine, MachineName, System, SystemName

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DnsDomainName

Specifies the DNS name of the primary domain.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DnsForestName

Specifies the DNS forest name of the primary domain. This is the DNS name of the domain at the root of the enterprise.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DomainGuid

Specifies the GUID of the primary domain.

Type: Guid
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DomainName

Specifies the name of the primary domain.

Type: String
Parameter Sets: (All)
Aliases: NetBIOSDomainName, Workgroup

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DomainSid

Specifies the SID of the primary domain.

Type: SecurityIdentifier
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

None

NOTES

RELATED LINKS

New-ADDBRestoreFromMediaScript