Site icon TOSS

DHCPServer Cmdlets

powershell

This blog contains the brief descriptions of the Windows PowerShell cmdlets that are for use in administering the DHCPServer instances in a single, self-contained package. The Module is DHCPServer

On DHCPServer we have discussed how to configure the module and on this blog we will see which all commands are their in this module.

Click on each cmdlet to know more about them

Add-DhcpServerInDCAdds the computer that runs the DHCP server service to the list of authorized DHCP server services in Active Directory.
Add-DhcpServerSecurityGroupAdds security groups to a DHCP server.
Add-DhcpServerv4ClassAdds an IPv4 vendor or user class to the DHCP server service.
Add-DhcpServerv4ExclusionRangeAdds a range of excluded IP addresses for an IPv4 scope.
Add-DhcpServerv4FailoverAdds an IPv4 failover relationship on the DHCP server service.
Add-DhcpServerv4FailoverScopeAdds one or more specified scopes to the failover relationship.
Add-DhcpServerv4FilterAdds a MAC address filter to the DHCP server service.
Add-DhcpServerv4LeaseAdds a new IPv4 address lease in the DHCP server service.
Add-DhcpServerv4MulticastExclusionRangeAdds a range of addresses to exclude from a multicast scope.
Add-DhcpServerv4MulticastScopeAdds a multicast scope on the DHCP server.
Add-DhcpServerv4OptionDefinitionAdds a DHCPv4 option definition on the DHCP server service.
Add-DhcpServerv4PolicyAdds a new policy either at the server level or at the scope level.
Add-DhcpServerv4PolicyIPRangeAdds an IP range to an existing policy at the scope level.
Add-DhcpServerv4ReservationReserves an IPv4 address in the scope for a client.
Add-DhcpServerv4ScopeAdds an IPv4 scope on the DHCP server service.
Add-DhcpServerv4SuperscopeAdds scopes to a superscope.
Add-DhcpServerv6ClassAdds an IPv6 vendor or user class to the DHCP server service.
Add-DhcpServerv6ExclusionRangeSets the range of IPv6 addresses to exclude from an IPv6 scope.
Add-DhcpServerv6LeaseAdds an IPv6 address lease to the DHCP server service.
Add-DhcpServerv6OptionDefinitionAdds a DHCPv6 option definition to a DHCP server service.
Add-DhcpServerv6ReservationAdds an IPv6 Reservation to an IPv6 prefix or scope.
Add-DhcpServerv6ScopeAdds an IPv6 scope to the DHCP server service with the specified parameters.
Backup-DhcpServerBacks up the DHCP database of DHCP server service.
Export-DhcpServerExports the DHCP server service configuration and lease data.
Get-DhcpServerAuditLogGets the configuration parameters related to the audit log of the DHCP server service.
Get-DhcpServerDatabaseGets the configuration parameters related to the database of the DHCP server service.
Get-DhcpServerDnsCredentialGets an account that the DHCP Server service uses to register or deregister client records on a DNS server.
Get-DhcpServerInDCRetrieves the list of authorized computers that run the DHCP server service from Active Directory.
Get-DhcpServerSettingGets the configuration parameters of the database of the DHCP server service.
Get-DhcpServerVersionGets the version of the DHCP server service.
Get-DhcpServerv4BindingGets the IPv4 interfaces on the computer to which the DHCP server service is bound.
Get-DhcpServerv4ClassRetrieves an IPv4 vendor or user class from the DHCP server service.
Get-DhcpServerv4DnsSettingGets the DNS settings configured on the DHCP server service for a specific scope, reservation, or server level.
Get-DhcpServerv4ExclusionRangeReturns the IPv4 address ranges excluded from the specified scope IDs.
Get-DhcpServerv4FailoverGets the failover relationships configured on the DHCP server service for the specific failover relationship name.
Get-DhcpServerv4FilterGets MAC addresses from the allow list or the deny list on the DHCP server service.
Get-DhcpServerv4FilterListGets the enabled state of the allow filter list and deny filter list set on the DHCP server service.
Get-DhcpServerv4FreeIPAddressGets free IPv4 addresses from a specified scope.
Get-DhcpServerv4LeaseGets one or more lease records from the DHCP server service.
Get-DhcpServerv4MulticastExclusionRangeRetrieves the exclusion range for a specified multicast scope.
Get-DhcpServerv4MulticastLeaseRetrieves multicast leases for a specified scope name.
Get-DhcpServerv4MulticastScopeGets multicast scope objects.
Get-DhcpServerv4MulticastScopeStatisticsGets multicast scope statistics.
Get-DhcpServerv4OptionDefinitionGets the DHCPv4 option definition for the specified option IDs.
Get-DhcpServerv4OptionValueReturns the IPv4 option values for IPv4 options at the server, scope, or reservation level.
Get-DhcpServerv4PolicyGets policies at the server level or the scope level.
Get-DhcpServerv4PolicyIPRangeGets IP address ranges from a policy in the specified scope.
Get-DhcpServerv4ReservationGets IPv4 reservations for IP addresses or client IDs.
Get-DhcpServerv4ScopeReturns the IPv4 scope configuration of the specified scopes.
Get-DhcpServerv4ScopeStatisticsGets the IPv4 scope statistics corresponding to the IPv4 scope IDs specified for a DHCP server service.
Get-DhcpServerv4StatisticsGets DHCP server service statistics for IPv4.
Get-DhcpServerv4SuperscopeGets the configuration for the specified superscope.
Get-DhcpServerv4SuperscopeStatisticsReturns statistics for superscopes.
Get-DhcpServerv6BindingReturns the IPv6 interfaces to which the DHCP server service is bound.
Get-DhcpServerv6ClassGets the IPv6 vendor or user class from the DHCP server service.
Get-DhcpServerv6DnsSettingGets the DNS settings configured on the DHCP server service for a specific scope, reservation, or server-wide.
Get-DhcpServerv6ExclusionRangeGets the IPv6 address ranges excluded from the specified IPv6 subnet prefix.
Get-DhcpServerv6FreeIPAddressGets free IPv6 addresses from a scope.
Get-DhcpServerv6LeaseGets IPv6 lease records from the DHCP server service.
Get-DhcpServerv6OptionDefinitionGets the option definition for the option identified by the option ID.
Get-DhcpServerv6OptionValueReturns the IPv6 option values for one or more IPv6 options either for a specific reserved IP, scope or, server level.
Get-DhcpServerv6ReservationReturns the reserved IPv6 addresses on the DHCP server service.
Get-DhcpServerv6ScopeGets the scope information for the specified IPv6 prefixes on the DHCP server service.
Get-DhcpServerv6ScopeStatisticsGets the IPv6 prefix statistics for an IPv6 prefix specified for a DHCP server service.
Get-DhcpServerv6StatelessStatisticsGets IPv6 subnet prefixes which have stateless clients and the number of addresses in use in each subnet.
Get-DhcpServerv6StatelessStoreGets the properties of IPv6 stateless store for an IPv6 subnet.
Get-DhcpServerv6StatisticsGets the DHCP server service statistics for IPv6.
Import-DhcpServerImports the DHCP server service configuration, and optionally lease data, from a file.
Invoke-DhcpServerv4FailoverReplicationReplicates scope configuration between failover partner DHCP server services.
Remove-DhcpServerDnsCredentialRemoves the credential that the DHCP Server service uses to register or deregister client records on a DNS server.
Remove-DhcpServerInDCDeletes the specified DHCP server service from the list of authorized DHCP server services in Active Directory.
Remove-DhcpServerv4ClassDeletes the IPv4 vendor class or user class from a DHCP server service.
Remove-DhcpServerv4ExclusionRangeDeletes a range of IPv4 addresses that were previously excluded from an IPv4 scope.
Remove-DhcpServerv4FailoverRemoves failover relationships.
Remove-DhcpServerv4FailoverScopeRemoves the specified scopes from the failover relationship.
Remove-DhcpServerv4FilterDeletes a MAC address or MAC address pattern from the allow list or the deny list of the DHCP server service.
Remove-DhcpServerv4LeaseDeletes IPv4 address lease records from the DHCP server service.
Remove-DhcpServerv4MulticastExclusionRangeRemoves a range of addresses previously excluded from a multicast scope.
Remove-DhcpServerv4MulticastLeaseRemoves multicast scope leases for a multicast scope or IP address.
Remove-DhcpServerv4MulticastScopeRemoves multicast scopes.
Remove-DhcpServerv4OptionDefinitionDeletes IPv4 option definitions from a DHCP server service.
Remove-DhcpServerv4OptionValueDeletes one or more IPv4 option values at the server, scope or reservation level, either for the standard IPv4 options or for the specified vendor or user class.
Remove-DhcpServerv4PolicyDeletes IPv4 policies at the server level or the scope level.
Remove-DhcpServerv4PolicyIPRangeDeletes an IP range from an existing policy at the scope level.
Remove-DhcpServerv4ReservationDeletes the IPv4 reservation from the specified scope.
Remove-DhcpServerv4ScopeDeletes the specified IPv4 scopes from the DHCP server service.
Remove-DhcpServerv4SuperscopeRemoves scopes from a superscope.
Remove-DhcpServerv6ClassDeletes the specified IPv6 vendor class or user class from a DHCP server service.
Remove-DhcpServerv6ExclusionRangeDeletes a range of IPv6 addresses previously excluded from an IPv6 scope.
Remove-DhcpServerv6LeaseDeletes IPv6 lease records from the DHCP server service.
Remove-DhcpServerv6OptionDefinitionDeletes IPv6 option definitions from the DHCP server service.
Remove-DhcpServerv6OptionValueDeletes DHCPv6 option values set at the reservation level, scope level, or server level, for the standard IPv6 options or for a vendor class.
Remove-DhcpServerv6ReservationDeletes IPv6 reservations from the specified scope.
Remove-DhcpServerv6ScopeDeletes the IPv6 scopes from the DHCP server service corresponding to the specified prefixes.
Rename-DhcpServerv4SuperscopeRenames a superscope.http://tossolution.com/2020/10/repair-dhcpserverv4iprecord/
Repair-DhcpServerv4IPRecordReconciles inconsistent lease records in the DHCP database.
Restore-DhcpServerRestores the database of the DHCP server service from the specified location.
Set-DhcpServerAuditLogSets the DHCP server service audit log configuration on the DHCP server service that runs on the computer.
Set-DhcpServerDatabaseModifies one or more configuration parameters of the database of the DHCP server service.
Set-DhcpServerDnsCredentialSets credentials that the DHCP Server service uses to register or deregister client records on a DNS server.
Set-DhcpServerSettingSets server level configuration parameters for the DHCP server service.
Set-DhcpServerv4BindingSets the binding state of an IPv4 interface for the DHCP server service that runs on a computer.
Set-DhcpServerv4ClassModifies an IPv4 vendor class or user class on the DHCP server service with the specified parameters.
Set-DhcpServerv4DnsSettingConfigures how the DHCP server service updates the DNS server with the client-related information.
Set-DhcpServerv4FailoverModifies the properties of an existing failover relationship.
Set-DhcpServerv4FilterListSets the enabled state for the allow and the deny MAC address filter lists on the DHCP server service.
Set-DhcpServerv4MulticastScopeModifies the properties of a multicast scope.
Set-DhcpServerv4OptionDefinitionModifies the properties of an IPv4 option definition.
Set-DhcpServerv4OptionValueSets an IPv4 option value at the server, scope, or reservation level.
Set-DhcpServerv4PolicySets the properties of a policy at the server level or at the specified scope level.
Set-DhcpServerv4ReservationModifies the properties of an IPv4 reservation.
Set-DhcpServerv4ScopeSets the properties of an existing IPv4 scope on the DHCP server service.
Set-DhcpServerv6BindingSets the binding state for an IPv6 interface of the DHCP server service.
Set-DhcpServerv6ClassModifies the properties of an IPv6 vendor or user class on the DHCP server service.
Set-DhcpServerv6DnsSettingConfigures how the DHCP server service updates the DNS server with the client-related information.
Set-DhcpServerv6OptionDefinitionModifies the properties of a DHCPv6 option definition.
Set-DhcpServerv6OptionValueSets an IPv6 option value at the server, scope, or reservation level.
Set-DhcpServerv6ReservationModifies the properties of the specified IPv6 reservation.
Set-DhcpServerv6ScopeModifies the properties of the IPv6 scope on the DHCP server service.
Set-DhcpServerv6StatelessStoreSets properties of IPv6 stateless store for an IPv6 prefix.

Click on this Link, for an Single place where you get all the PowerShell cmdlet sorted based on the modules.

You can also refer other blogs on PowerShell at link

You can also refer other blogs on Microsoft at link

And also if you required any technology you want to learn, let us know below we will publish them in our site http://tossolution.com/

Like our page in Facebook and follow us for New technical information. Paragraph

References are taken from official Microsoft websites

Exit mobile version