This is a pretty cool (but mostly useless) PowerShell script that uses the System.Net.Webclient class and the DownloadString method. It pulls an RSS feed string from a URL into an XML formatted variable, and then pipes the Rss.Channel.Item property (which is where the meat of the RSS feed is held in the variable) into [...]
This is a handy little function that sends an email using the System.Net.Mail namespace found in .NET 2.0. Can be used for pretty much anything; I use it primarily for error notification if one of my engineers runs a script that fails. It can also send an attachment so you can auto-spam your [...]
This is part deus of the “Configuring Hosted Exchange 2007 using Powershell” series. Part 1, which you can find here, covered deploying a new hosted domain. This new domain is fully segregated on the exchange server with its own Address Lists, and login using AD accounts with their own UPN. Part 2 will cover creating [...]
Hosting Exchange 2007 is a difficult, tedious, and expensive venture to be certain. Taking into consideration the extensive hardware investments required, the development required to create an automated process to deploy new domains, create new mailboxes, set size and feature limitations on those mailboxes (or purchasing support for Microsoft’s HCM solution which uses the [...]
Here is a handy chunk of powershell code that uses the native windows command Nslookup to parse a list of IPs and output the IP and the reverse lookup value to a text file. This is especially usefull when you have a large number of IPs to check.
1
2
3
4
5
6
7
8
9
10
11
$ips = Get-Content nslookup.txt
$nslookupresults = "M:\Scripts\nslookupresults.txt"
clear-content $nslookupresults
Foreach [...]
Social