Showing posts with label powershell. Show all posts
Showing posts with label powershell. Show all posts

January 11, 2010

Interesting Powershell Post

Interesting Post

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

Remote Session and Powershell

The Powershell Blog has three great posts on this:
  1. Saving remote session to your local disk
  2. Bringing remote commands to your local session
  3. How to pass arguments for remote commands

December 29, 2009

Powershell Help Reader

I came across this on the powershell blog, take a look at the site here.

December 8, 2009

Powershell Hashtable

A nice little post by Jeffrey Snover can be found here.

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

One Line Powershell to show installed software

Do this with one line in powershell!

November 14, 2009

Powershell Slides

Can be found here.

November 9, 2009

Windows Server 2008 R2

Good post here.

November 6, 2009

Powershell Challenge for Money

Win $1000..details can be found 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"

October 28, 2009

Windows Management Framework is here!

You can read all about it here.

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

Cmdlet Designer Tool

This is nice.

October 16, 2009

Windows 7 Powershell Pack

Some really cool scripts. Read about it here.

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

MSDeploy and Powershell

A good article can be found here.

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!