Browse by Tags

All Tags » Windows 7 » PowerShell V2 (RSS)

Remoting between PowerShell v3 CTP 2 and PowerShell v2

One of the questions on tonight’s Live Meeting concerned the compatibility between remoting on PowerShell v2 and PowerShell v3 CTP 2 The difference is that v3 uses a WSMAN 3.0 stack but v2 uses 2.0 I used two machines: Windows 2008 R2 SP 1 with PowerShell...

Outlook: deleting mail items

As promised here is the function to delete mail items in a specific folder function remove-mailitem { [ CmdletBinding ( SupportsShouldProcess = $true ) ] param ( [ parameter ( Mandatory = $true ) ] [string] $mailfolder , [datetime] $start , [datetime...

Outlook: Viewing mail items

Continuing our perambulation around Outlook when used with multiple hotmail accounts its time to look at the other folders and the mail items they contain. This post will show how to view the mail items and a future post will show how to delete items...

Clearing junk mail

Getting back to looking at working with Outlook we can adapt the function used to deleted the contents of the Deleted Items folder to work with the Junk mail folders function clear-junkmail { $outlook = New-Object -ComObject Outlook.Application get-mailitemcount...

Outlook folder item count revisited

I started this series http://msmvps.com/blogs/richardsiddaway/archive/2011/07/30/outlook-connector-amp-mail-folder-item-count.aspx by looking at how we could enumerate the mail folders in Outlook 2010 when I had had four hotmail accounts open.  The...

Emptying the Deleted folders–version 2

The original version of this function only did one pass at deleting and had to iterate through all of the folders to find the Deleted Items folder.  This time we use the collection of folders we created using the get-mailfolders function to go directly...

Outlook folders

The functions we’ve seen so far have involved iterating through the whole set of Outlook folders. That’s a lot of folders (I have 4 email accounts with lost of folders). The trick is to do this just once and then use the GetFolderFromID method at the...

Emptying the Deleted Items Folder

Continuing our look at scripting against Outlook & the hotmail connector Many of the emails I get end up being read once and deleted. This leaves a ton of stuff in the deleted items folders. Periodically I’ll clean these up. This is one way how it...

Outlook Connector & mail folder item count

On my home laptop I use Live Mail to aggregate my hotmail accounts. On my travelling netbook I decided to try the Outlook Connector http://office.microsoft.com/en-us/outlook-help/microsoft-office-outlook-hotmail-connector-overview-HA010222518.aspx This...

Moving Windows

In answer to a forum question I started to look at how you could move the PowerShell window from within PowerShell. Its not straight forward as we have to dig into the Win32 APIs I came up with this code function move-window { param ( [int] $newX , [int...

OneNote PowerShell provider

One sad casualty of my move to Windows 7 and Office 2010 is the OneNote PowerShell provider. http://bdewey.com/2007/07/18/onenote-powershell-provider/ It doesn’t work vey well in this scenario. It will read oneNote pages but it doesn’t want to create...

root\wmi - ProcessorBiosInfo

The root\wmi namespace contains a massive number of classes. Unfortunately there appears to be very little documentation available for these classes. Another issue is that many of classes do not appear to return anything (at least on my Windows 7 system...

PAM 0.5

Just released PowerShell Admin Modules (PAM) 0.5.  This adds the PAMStability module for working with stability and reliability metrics on Windows 7 and 2008 R2. The following 2 functions are available: get-stabilityindex get-reliabilityrecords see...

Performance monitoring with Get-Counter

I last looked at the Get-Counter cmdlet back in 2009 when we were in the middle of CTP 3 for PowerShell 2.  its time for a revisit. Gathering performance counter information provides a good look inside your systems to enable you to decide what is...
Posted by RichardSiddaway | with no comments
Filed under: ,

IE History

Saw a post on the forums that looked interesting. Problem Convert  this VBScript into PowerShell 001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017 018 019 020 021 022 023 024 025 026 027 028 029 030 031 032 033 034 035 036 037 038...

Powershell User Group Live Meeting: Modules

When: Tuesday, Apr 20, 2010 7:30 PM (BST) Where: Virtual *~*~*~*~*~*~*~*~*~* Notes We will cover the new module functionality introduced with PowerShell v2 with a biref look at some of the functionality available in Windows 7/Windows 2008 R2 Richard Siddaway...

PowerShell pack: PSuserTools

The PSusertools module contains 4 functions: Get-CurrentUser Get-Everyone Start-ProcessAsAdministrator Test-IsAdministrator   get-currentuser uses System.Security.Principal.WindowsIdentitiy to identify the current user. One oddity is that the group...

UG meeting - recording

Thank you to the people who attended tonight’s Live Meeting and especially for the feedback. The slides and demo script from tonight’s PowerShell UG meeting can be found here http://cid-43cfa46a74cf3e96.skydrive.live.com/browse.aspx/PowerShell%20User...

PowerShell pack: Mount-SpecialFolder

Special folders are things like Favourites, Desktop and StartMenu folders.  The Mount-SpecialFolder mounts one specified special folder or all special folders.  The folders involved can be found by using the .NET enumeration used to discover...
Posted by RichardSiddaway | with no comments

PowerShell pack: Get-FreeDiskSpace

The Filesystem module has some interesting things for us.  The get-freediskspace function looked useful – so I tried it. It is safe so you can try this at home PS> Get-FreeDiskSpace Timestamp                ...
Posted by RichardSiddaway | with no comments
More Posts Next page »