Category Archives: DHCP

DHCP scope

After rebuilding my test machine for Server 2016 (with mixed results) I needed to add a DHCP scope to the environment. I blogged about the DHCP PowerShell module several years ago. To quickly add a DHCP scope to the current … Continue reading

Posted in DHCP | Leave a comment

DHCP scope lease time

I wanted to reduce the lease time on a DHCP scope $lt = New-TimeSpan -Hours 12Set-DhcpServerv4Scope -ScopeId 10.10.54.0 -LeaseDuration $lt You could even make it a one liner if you wished Set-DhcpServerv4Scope -ScopeId 10.10.54.0 –LeaseDuration (New-TimeSpan -Hours 12)

Posted in DHCP, Powershell, Windows Server 2012, Windows Server 2012 R2 | Leave a comment

Creating a DHCP reservation

For my demo at the PowerShell Summit I wanted to use DHCP for the Linux machine but guarantee that it had a specific IP address.  Time to create a DHCP reservation   The DHCP module in Windows Server 2012 and … Continue reading

Posted in DHCP, PowerShell v4, Windows Server 2012 R2 | Leave a comment

Authorising a DHCP server and creating a scope

I recently re-built my test lab and now need to authorise the DHCP server. You can test the DHCP server: £> Get-DhcpServerSetting IsDomainJoined            : TrueIsAuthorized              : FalseDynamicBootp              : TrueRestoreStatus             : FalseConflictDetectionAttempts : 0NpsUnreachableAction      : FullNapEnabled                : FalseActivatePolicies          : True Authorisation … Continue reading

Posted in DHCP, PowerShell v4, Windows Server 2012 R2 | Leave a comment

PowerShell 3 and DHCP: scope options

In this post – http://msmvps.com/blogs/richardsiddaway/archive/2011/09/23/powershell-3-and-dhcp-2-scopes.aspx – we created a new DHCP scope. Now we need to set some options on the scope. One of the main options we need to set is the DNS server We can see the available … Continue reading

Posted in DHCP, PowerShell V3, Windows 8 Server | Leave a comment

PowerShell 3 and DHCP 2: scopes

In this post http://msmvps.com/blogs/richardsiddaway/archive/2011/09/20/powershell-and-dhcp-1-servers.aspx I showed how we could discover DHCP server information Scopes can be discovered Get-DhcpServerv4Scope -ComputerName server02  -ScopeId 10.10.54.0 Now how do we create a scope? We use Add-DhcpServerv4Scope. Now shouldn’t that have been New-DhcpServerv4Scope? Never the … Continue reading

Posted in DHCP, PowerShell V3, Windows 8 Server | Leave a comment