Monthly Archives: September 2007

Assemblies loaded in PowerShell

A question in the newsgroups about using Windows Forms with PowerShell got me thinking about what assemblies are actually loaded by PowerShell.  As I load a number of extra snapins in my profile I decided to step through them and … Continue reading

Posted in Powershell | 4 Comments

Loading Assemblies

PowerShell sits on top of .NET which means that it can utilise the .NET functionality.  PowerShell, by default, does not load all of the .NET assemblies.  To use this extra functionality it is necessary to load the relevant assembly.  The … Continue reading

Posted in Powershell | Leave a comment

Table Creation with SMO

In a recent post http://richardsiddaway.spaces.live.com/blog/cns!43CFA46A74CF3E96!727.entry  I showed how to use SMO to create a database table.  The drawback to the approach used in that post was that the columns had to be added separately rather than using the usual CREATE TABLE command. … Continue reading

Posted in PowerShell and SQL Server | Leave a comment

Windows Server 2008 RC0

RC0 has been released For download: 32-bit: http://download.microsoft.com/download/5/6/b/56bb9f61-e8e1-4ba8-b9fc-46cfc17dc119/6001.16659.070916-1443_x86fre_Server_en-us-KR1SFRE_EN_DVD.iso 64-bit http://download.microsoft.com/download/5/6/b/56bb9f61-e8e1-4ba8-b9fc-46cfc17dc119/6001.16659.070916-1443_amd64fre_Server_en-us-KR1SXFRE_EN_DVD.iso This version includes Windows Server Virtualisation (on a 64bit machine).  See James’ blog for details of how to install the Virtualization role  http://blogs.technet.com/jamesone/archive/2007/09/26/other-big-news-2008-rc-0-and-installing-windows-server-virtualization.aspx   Technorati Tags: Windows Server 2008

Posted in Uncategorized | Leave a comment

PowerShell V2

Looks like details of PowerShell V2 will be announced at IT Forum in November.  That is quite fitting as the RTW was announced there last year.  See  http://blogs.msdn.com/powershell/archive/2007/09/26/howto-invoking-cmdlets-from-within-a-cmdlet.aspx Technorati Tags: PowerShell

Posted in Powershell | Leave a comment

Export-OneNote

The Export-OneNote cmdlet does what it says and exports information held in OneNote notebooks.  There are a number of very nice features about this cmdlet.  The main one is the number of formats to which data can be exported – MHT, PDF,DOC, … Continue reading

Posted in Powershell | Leave a comment

Open-OneNote cmdlet

The Open-OneNote cmdlet doesn’t do what I expected.  I had expected it to literally do what is says and open the OneNote application.   What is seems to do is swap you to the onenote provider and navigate to the appropriate … Continue reading

Posted in Powershell | Leave a comment

OneNote TOC

Do you want to create a Table of Contents for your OneNote notebooks. Try using Get-OneNoteTOC. Though as it is creating a TOC shouldn’t the verb be set? Using the OneNote provider navigate to the notebook section you want to … Continue reading

Posted in Powershell | Leave a comment

OneNote Provider

I was trying to use the OneNote provider and was getting an error the the component could not be accessed.  In the System Event Log I found this under an EventID 10010 with a source of DistributedCOM. The server {0039FFEC-A022-4232-8274-6B34787BFC27} … Continue reading

Posted in Powershell | Leave a comment

Help Files

I tend to look at most of the new PowerShell cmdlets and providers as they come along.  One thing that I have noticed in a number of products is the lack of examples. I think a few, well chosen examples make … Continue reading

Posted in Learning Powershell | Leave a comment