SetByADZone method of the PS_DnsServerStubZone class
Overwrites settings of DNS server stub zone. If none exists exit with terminating error.
Syntax
uint32 SetByADZone(
[in] string DirectoryPartitionName,
[in] string Name,
[in] string ComputerName,
[in] string ReplicationScope,
[in] boolean PassThru,
[out] DnsServerStubZone cmdletOutput
);
Parameters
-
DirectoryPartitionName [in]
-
Specifies the directory partition on which to store the zone. FQDN: Specifies fully qualified domain name of the directory partition. domain: Stores the zone on the domain directory partition. enterprise: Stores the zone on the enterprise directory partition. legacy: Stores the zone on a legacy directory partition. Parameter valid only if it is AD based.
-
Name [in]
-
Specifies the name of the zone.
-
ComputerName [in]
-
Specifies the remote computer on which to execute the command
-
ReplicationScope [in]
-
Specifies the directory partition on which to store the zone. Parameter valid only if it is AD based.
The possible values are.
-
Forest ("Forest")
-
Stores the zone on the enterprise directory partition.
-
Domain ("Domain")
-
Specifies fully qualified domain name of the directory partition.
-
Legacy ("Legacy")
-
Stores the zone on a legacy directory partition.
-
Custom ("Custom")
-
Specifies fully qualified domain name of the directory partition.
PassThru [in]
True to return the object that was modified by the method. By default, this method does not generate any output.
cmdletOutput [out]
On return, contains an instance of the current object. This parameter returns a value only if PassThru is set to true.
Requirements
Minimum supported client |
None supported |
Minimum supported server |
Windows Server 2012 |
Namespace |
Root\Microsoft\Windows\Dns |
MOF |
|
DLL |
|