Entries Categorized as 'PowerShell'

PowerShell; Checking a Job Status

Date December 21, 2009

With Windows 2008, the task scheduler is setup differently than earlier. You can use the Com object Schedule.Service to access information about tasks.

Technorati Tags: Microsoft, PowerShell, Work

PowerShell; Changing startup properties of a service

Date December 21, 2009

Windows 2008 doesn’t have SMTP as part of IIS any more. It’s only kept around by shipping the IIS 6 libraries with it, which means it’s managed by the old IIS 6 utilities. We installed SMTP so that our web servers had a relaying agent so if there were any delays talking to [...]

PowerShell and signing

Date December 21, 2009

I have an awful memory, so this is more a bookmark for me than anything. Whilst running home grown scripts for PowerShell, you often see the following error:

File C:\scripts\test.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see “get- help about_signing” for more details. At line:1 char:19 + c:\scripts\test.ps1 <