DSInternals/Documentation/PowerShell/Set-LsaPolicyInformation.md

139 lines
3.1 KiB
Markdown
Raw Normal View History

---
external help file: DSInternals.PowerShell.dll-Help.xml
Module Name: DSInternals
2018-10-14 12:10:18 +00:00
online version: https://github.com/MichaelGrafnetter/DSInternals/blob/master/Documentation/PowerShell/Set-LsaPolicyInformation.md
schema: 2.0.0
---
2018-10-14 12:10:18 +00:00
# Set-LsaPolicyInformation
## SYNOPSIS
2018-12-28 09:09:35 +00:00
Configures AD-related Local Security Authority Policies of the local computer or a remote one.
## SYNTAX
```
2018-10-14 12:10:18 +00:00
Set-LsaPolicyInformation -DomainName <String> -DnsDomainName <String> -DnsForestName <String>
-DomainGuid <Guid> -DomainSid <SecurityIdentifier> [-ComputerName <String>] [<CommonParameters>]
```
## DESCRIPTION
{{Fill in the Description}}
## EXAMPLES
### Example 1
```powershell
2018-12-28 09:09:35 +00:00
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
```
2018-12-28 09:09:35 +00:00
Configures AD-related LSA Policy Information of the local computer.
## PARAMETERS
2018-10-14 12:10:18 +00:00
### -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 (.).
```yaml
2018-10-14 12:10:18 +00:00
Type: String
Parameter Sets: (All)
Aliases: Server, ServerName, Computer, Machine, MachineName, System, SystemName
2018-10-14 12:10:18 +00:00
Required: False
Position: Named
Default value: None
2018-10-14 12:10:18 +00:00
Accept pipeline input: False
Accept wildcard characters: False
```
2018-10-14 12:10:18 +00:00
### -DnsDomainName
{{Fill DnsDomainName Description}}
```yaml
2018-10-14 12:10:18 +00:00
Type: String
Parameter Sets: (All)
Aliases:
2018-10-14 12:10:18 +00:00
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
2018-10-14 12:10:18 +00:00
### -DnsForestName
{{Fill DnsForestName Description}}
```yaml
2018-10-14 12:10:18 +00:00
Type: String
Parameter Sets: (All)
Aliases:
2018-10-14 12:10:18 +00:00
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
2018-10-14 12:10:18 +00:00
### -DomainGuid
{{Fill DomainGuid Description}}
```yaml
2018-10-14 12:10:18 +00:00
Type: Guid
Parameter Sets: (All)
Aliases:
2018-10-14 12:10:18 +00:00
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
2018-10-14 12:10:18 +00:00
### -DomainName
{{Fill DomainName Description}}
```yaml
2018-10-14 12:10:18 +00:00
Type: String
Parameter Sets: (All)
2018-10-14 12:10:18 +00:00
Aliases: NetBIOSDomainName, Workgroup
2018-10-14 12:10:18 +00:00
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
2018-10-14 12:10:18 +00:00
### -DomainSid
{{Fill DomainSid Description}}
```yaml
2018-10-14 12:10:18 +00:00
Type: SecurityIdentifier
Parameter Sets: (All)
Aliases:
2018-10-14 12:10:18 +00:00
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 (http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
2018-10-14 12:10:18 +00:00
### None
## OUTPUTS
2018-10-14 12:10:18 +00:00
### None
## NOTES
## RELATED LINKS