Microsoft
Software
Hardware
Network
Question : Querying DHCP using PowerShell
My task is to query a Windows DHCP server using PowerShell. At the very least, I need to be able to get a list of the active leases (not reservations), including ip addresses and MACs. I'd like to avoid shelling netsh commands and parsing the text output, which is not an elegant solution, to say the least. I'd also like to keep from having to buy a third-party class library to use as an interface to the server. How can this be done using PowerShell?
Answer : Querying DHCP using PowerShell
Just need to capture the results. If you want errors you do like you would in cmd.exe
$results = netsh dhcp server MyServer.MyDomain.com show scope 2>&1
Random Solutions
Install DBI and DBD on a Windows NT machine
Date and Time will not stay current
Issue sorting with SQL report writer
Random emails are getting stuck in the outgoing exchange que. If I force the connection most will go but then it happens again.
VIsta - unable to update Defender of get Windows updates
Updating groupwise 7.01 to 7.02
1004: Application-defined or object-defined error on QueryTable refresh
The Citrix SSL Server you have selected is not accepting connections
Trouble Importing a .bak File From Another SQL Server Installation
To find an INI file from Access