Showing posts with label powershell. Show all posts
Showing posts with label powershell. Show all posts
January 11, 2010
January 3, 2010
Powerboots
It has been a long time since I used powerboots...I had a need for it today and you can find the codebase on codeplex.
December 30, 2009
December 29, 2009
December 8, 2009
November 22, 2009
Administrator not needed to Run Remote PowerShell Commands
I always impersonated, but it is good to read this article.
November 15, 2009
November 14, 2009
November 9, 2009
November 6, 2009
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"
October 28, 2009
October 20, 2009
Powershell v2 Launch Party
Read about it on the powershell blog. It is this Thursday, so take a look today and read about it.
October 18, 2009
October 16, 2009
October 13, 2009
JSON and Powershell
I needed to convert from and to JSON within powershell. I guess it would be quite easy to write something but I came across this parser that basically did it for me. More JSON posts to come based off this new project I am working on.
October 12, 2009
October 3, 2009
Connect with the Powershell Team
Give them feedback and tell them any issues that you see. You can get to the community from here.
September 22, 2009
Powershell Recycle App Pool
I had a need for this today on a IIS 6 box and came across this post on Stack Overflow. SO always has the answer for these things. This script combined with the last post on remoting I should be able to do this from a remote machine! I'll let you know if it works.
September 21, 2009
Powershell Remoting without Admin Permissions
This article shows how it can be done by adding Powershell Session Users to the local group and setting some other permissions. This is great since before this I always was doing some form of impersonation to get this to work!
Subscribe to:
Posts (Atom)