Posted by Chris on April 16, 2010 in DnsShell, Microsoft DNS, PowerShell, Uncategorized | Tags :Microsoft DNS, PowerShell
After fixing a couple of authentication bugs with Set-DnsRecord and New-DnsRecord I decided to make an attempt to finish off some of the zone and server CmdLets.
The module now contains these additional CmdLets.
- Refresh-DnsZone – Implements the ForceRefresh method for Secondary Zones
- Reload-ADDnsZone – Implements the UpdateFromDS method for AD Integrated Zones
- Reload-DnsZone
- Reset-DnsZoneType – Implements the ChangeZoneType method
- Resume-DnsZone
- Set-DnsZoneTransfer – Implements the ResetSecondaries method
- Start-DnsScavenging
- Start-DnsService
- Stop-DnsService
- Suspend-DnsZone – Implements the Pause method
- Update-DnsZoneFile
As usual, the module can be downloaded from code.msdn.microsoft.com/dnsshell.
Posted by Chris on April 14, 2010 in Active Directory, DnsShell, Microsoft DNS, PowerShell | Tags :Active Directory, Microsoft DNS, PowerShell
A new version of DnsShell has been released, this release improves Get-ADDnsRecord and adds Get-ADDnsPartition and Get-ADDnsZone.
The updated release is available on MSDN as version 0.2.0.
code.msdn.microsoft.com/dnsshell
Basic help is available for each of the new CmdLets.
Posted by Chris on March 29, 2010 in DnsShell, Microsoft DNS, PowerShell | Tags :Microsoft DNS, PowerShell
DnsShell is my PowerShell module intended to help administer MS DNS. This is an alpha relaese, it may contain bugs, it should be tested in a safe environment first.
The module is currently available on MSDN.
The following CmdLets are implemented at this stage:
- Get-Dns
- Clear-DnsCache
- Get-DnsRecord
- Get-DnsServer
- Get-DnsZone
- New-DnsRecord
- New-DnsZone
- Remove-DnsObject
- Set-DnsRecord
- Get-ADDnsRecord
I am in the process of writing detailed CmdLet help, it will be made available as soon as possible.
Posted by Chris on February 17, 2010 in DHCP, PowerShell | Tags :DHCP, PowerShell
A PowerShell script to send a DHCP Discover request and listen for DHCP Offer responses, it can be used for finding DHCP servers (including rogue servers), or for testing DHCP servers and relays. The output from this script is an object containing a decode of the DHCP packet and a number of options.
more >>
Posted by Chris on January 23, 2010 in PowerShell | Tags :PowerShell, Subnet Math
Written to complement the VbScript version of this post. This collection of functions handles subnet math in PowerShell.
Download all the functions and examples at once: Net-SubnetMath.ps1
more >>
Posted by Chris on January 22, 2010 in Active Directory, PowerShell | Tags :Active Directory, DirectorySearcher, LDAP, memberOf, PowerShell
Exactly as the title says, an example of how to change the Primary Group for a set of users returned by a search with PowerShell.
more >>
Posted by Chris on January 22, 2010 in PowerShell | Tags :PowerShell
A PowerShell function that allows directory recursion to a specified depth.
more >>
Posted by Chris on January 12, 2010 in IIS, PowerShell | Tags :IIS, PowerShell, wmi
A function to retrieve IIS log settings from a local or remote IIS 6 server. Written to be compatible with PowerShell 1.0.
more >>
Posted by Chris on December 1, 2009 in PowerShell | Tags :PowerShell, SysLog
I bumped into a requirement to run a SysLog relay on one of my Windows 2008 R2 systems. After poking around on Google, and after getting a bit bored with the third-party offerings, I threw together a simple server of my own.
more >>
Posted by Chris on October 2, 2009 in Active Directory, PowerShell | Tags :acl, Active Directory, PowerShell
The goal of this PowerShell function is to create a report of permissions assigned to objects in Active Directory in much the same way as DsRevoke.
more >>