November 7, 2009
November 6, 2009
November 5, 2009
November 4, 2009
IdentityModel and WIF
Dominick Baier and I have worked on some cool AzMan thinks in the past and I saw a recent post on his blog about WIF (Windows Identity Foundation). He has put something together with examples on codeplex. You can find details here.
November 3, 2009
Sending Automated emails with powershell
James Brundage shows how in less than 25 lines of powershell code, you can create a scheduled task to email detailed reports of the installed programs on the machine. The main point here was to show that from his powerpack that he released a few weeks ago, it is simple to email reports from powershell. You can see the full article here. The code snippet that he posted is below:
New-Task |
Add-TaskAction -Hidden -Script {
$ErrorActionPreference = "Stop"
try {
$messageParameters = @{
Subject = "Installed Program report for $env:ComputerName.$env:USERDNSDOMAIN - $((Get-Date).ToShortDateString())"
Body = Get-WmiObject Win32_Product |
Select-Object Name, Version, Vendor |
Sort-Object Name |
ConvertTo-Html |
Out-String
From = "Me@MyCompany.com"
To = "Me@MyCompany.com"
SmtpServer = "SmtpHost"
}
Send-MailMessage @messageParameters -BodyAsHtml
} catch {
$_ |
Out-File $env:TEMP\ProblemsSendingHotfixReport.log.txt -Append -Width 1000
}
} |
Add-TaskTrigger -Daily -At "9:00 AM" |
Add-TaskTrigger -OnRegistration |
Register-ScheduledTask "DailyHotfixReport"
November 2, 2009
Force IE7 Compatibility Mode in IE8
We are migrating to IE8 and we wanted a way to force this. It seems that you can add a meta tag in the header, but that would have taken days with the number of pages we would have to change. I wanted to know if there is a simple way in IIS to do this. It turns out that someone else blogged about the same thing here. It seems that meta tag can easily be added as a custom HTTP Header and we are all set.
November 1, 2009
Subscribe to:
Posts (Atom)