Skip to content

{ Author Archives }

PuTTY and PowerShell

A friend of mine found this enormously useful, one of the things PowerShell can do easily that is (apparently) helpful for people who want nothing to do with it otherwise (where it may be either PowerShell or Windows).

Sorting by IP address

Sorting an array of IP addresses is one of those things that’s not quite as clean and simple as would be nice.

Tagged ,

More IPv4 subnet maths with PowerShell

I’ve been extended and upgrading my library of network functions for some time now, I thought I’d post the functions that work directly with my original collection.

Tagged , ,

Get-LocalGroupMember

A quick PowerShell 2 function for a Monday evening. A function to return properties from the WinNT provider, most commonly used to enumerate local group membership.

Tagged

Microsoft Lync: Group Policy Templates

I’ve been migrating our Office Communications Server to Lync over the last few days. Last night I started looking at the client policies. The intention is that we use the in-band-provisioning, which is great, and you’ll find a nice article on Elan Shudnow’s blog. The client also ships with a group policy template (on retail [...]

Tagged ,

NetShell

It’s been a while since I’ve posted, and since it’s almost Christmas I thought I’d better get on with it. Without further ado I want to post NetShell (I’m not very good at coming up with imaginative names). NetShell is a collection of 17 functions and a few supporting functions in a script module. Download [...]

Tagged , , , ,

DnsShell: Zone and Server CmdLets

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 [...]

Tagged ,

DnsShell: Get-AD*

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.

Tagged , ,

DnsShell – alpha release

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 [...]

Tagged ,

DHCP Discovery

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.

Tagged ,