header image

Archive for December, 2008

PowerShell User Group 2009

Posted by: | December 31, 2008 | No Comment |

Two meetings are planned for early 2009. January 21st – Microsoft Reading – Webcast with Jeffrey Snover   February 10th – Microsoft Cardinal Place London – After the Powershell event in the afternoon – Jonathan Noble will be speaking   More details on both events to follow. Happy New Year to everyone in PowerShell land. […]

under: PowerShell User Group

CTP3 – Write-EventLog

Posted by: | December 31, 2008 | No Comment |

Last of the new event log cmdlets is Write-EventLog.  I showed how to write to the event log here http://richardsiddaway.spaces.live.com/blog/cns!43CFA46A74CF3E96!275.entry.  This is still valid for PowerShell v1 or v2.  In v2 we can make life a bit simpler by using Write-EventLog.  Like the other EventLog cmdlets it only works with the classic event logs and […]

under: PowerShellV2

CTP3 – New-EventLog

Posted by: | December 31, 2008 | No Comment |

I have shown how to create an event log using simple .NET code a couple of times including http://richardsiddaway.spaces.live.com/blog/cns!43CFA46A74CF3E96!278.entry.  CTP 3 brings us a cmdlet that we can use to perform this act.  New-EventLog is used as follows. New-EventLog -LogName TestLog -Source TestSource All we provide is the name of the log and a Source […]

under: PowerShellV2

PowerGUI – PowerShell Help

Posted by: | December 30, 2008 | No Comment |

I have mentioned PowerGUI many times – I especially like the editor.  There is a large, and growing, library of PowerGUI powerpacks (additional functionality) available for download from www.powergui.org. I have just added the PowerShell Help powerpack to my system.  Written by Kirk Munro (PowerShell MVP) it gives many views into the PowerShell help system.  […]

under: PowerShell original

CTP3 – Remove-EventLog

Posted by: | December 30, 2008 | No Comment |

Remove-EventLog is a new cmdlet in CTP3.  It brings the following parameters: ComputerNameLogNameSourceVerboseDebugErrorActionWarningActionErrorVariableWarningVariableOutVariableOutBufferWhatIfConfirm The Source is how applications write to the event log – it is possible to just remove one or more sources rather than the whole event log. To remove an event log Remove-EventLog -LogName test23 Assuming you have the correct privileges the […]

under: PowerShellV2

CTP3 – Clear-EventLog

Posted by: | December 29, 2008 | No Comment |

Continuing our tour around the event log cmdlets we come to Clear-EventLog.  This does exactly what it says – it clears the entries out of one or more logs. Note that it does not backup the entries in anyway – it is just a clear. We can clear a single log Clear-EventLog -LogName "Windows PowerShell" […]

under: PowerShellV2

CTP3 – Limit-EventLog

Posted by: | December 29, 2008 | No Comment |

If we look at the event logs that are present on our system we will see how the logs are configured in terms of maximum size, retention days and the action to take in the event of the log becoming full (overflow). PS> Get-EventLog -List   Max(K) Retain OverflowAction        Entries Name  —— —— ————–        ——- […]

under: PowerShell original

CTP3 – Show-EventLog

Posted by: | December 29, 2008 | No Comment |

Show-EventLog is a very straight forward cmdlet with a minimum of parameters.  Outside of the common parameters it can only take a computer name.  As it says in the name the cmdlet opens Event Viewer on the local or remote machine (remember need for admin privileges on Vista and later so start PowerShell using Run […]

under: PowerShell original

CTP3 – Get-EventLog

Posted by: | December 28, 2008 | No Comment |

No doubt there will be a mass of posts on the new features in CTP3 over the next weeks and months.  What I want to try and do is concentrate on those features that are of most benefit to administrators. I am going to start with functionality to work with event logs.  I have blogged […]

under: PowerShell original

Sites and SiteLinks

Posted by: | December 28, 2008 | No Comment |

In my series on System.DirectoryServices.ActiveDirectory I was going to cover creating sites and sitelinks – Rolf has just covered this material so I will point you there instead. http://www.powershell-ag.de/ps/Blog/tabid/73/EntryID/1123/Default.aspx   Technorati Tags: PowerShell,Active Directory

under: PowerShell and Active Directory

Older Posts »

Categories