Browse by Tags

All Tags » PowerShell V2 (RSS)

WMICookbook: Read Routing Table

When we need to troubleshoot networking problems we will sometimes need to read the routing table on a machine. The routing table contains the information on the routes known to the network interfaces. This can be created automatically or manually . On...

PowerShell v2 cmdlets

Jonathan has started a series of posts at http://www.jonathanmedd.net/ on all of the new cmdlets in PowerShell v2.  If you are just starting with v2, or want more information on whats new, this is a good place to start. Technorati Tags: PowerShell...
Posted by RichardSiddaway | with no comments
Filed under:

Reminders via WPF

If I am working on my home machine I don’t necessarily have Outlook or any other application that gives me calendaring capability open. There are times when I need a simple reminder to do something. For some reason I always seem to have PowerShell open...
Posted by RichardSiddaway | with no comments

WMI CookBook: Associators Pt I

WMI is a wonderful thing and like many people I have a love-hate relationship with it. It is incredibly powerful, and can take you deep into the system, but it is not easy to find your way. I have decided to spend some time digging into WMI and will document...

Friday 13th Part II

  No not the film 001 002 003 004 005 006 007 008 009 010 011 012 013 function   get-fri13   { <# .SYNOPSIS Calculates each Friday 13th for a given year .DESCRIPTION .PARAMETER year Specifies the year as an integer .EXAMPLE for current...
Posted by RichardSiddaway | with no comments
Filed under:

Scheduled Tasks

Keeping on the theme of Scheduled Tasks I wanted to dig into the tasks that exist on my system.  I did a fresh install of Windows 7 in August and haven’t created any scheduled tasks – so what I see should be close to the system defaults.  This...

Cleaning the Temp folder - Scheduling

When I posted about cleaning the temp folder http://msmvps.com/blogs/richardsiddaway/archive/2009/11/04/cleaning-temp-folder.aspx I said I would look at scheduling the task.  I had intended to use the TaskScheduler module in the new PowerShell pack...
Posted by RichardSiddaway | with no comments

Extension for temporary files

When I did the post on creating temporary files http://msmvps.com/blogs/richardsiddaway/archive/2009/11/05/creating-temporary-files.aspx I said I’d modify it so the file would be created with a given extension. 001 002 003 004 005 006 007 008 009 010...
Posted by RichardSiddaway | with no comments

Security Essentials

  001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017 018 019 020 021 022 023 #Requires -version 2.0 ## wrapper functions for Microsoft Security Essentials $mse   =   "C:\Program Files\Microsoft Security Essentials...
Posted by RichardSiddaway | with no comments
Filed under:

Getting Change Events

I wasn’t particularly happy with the script for getting change events on the filesystemwatcher we discussed last time.  As a quick recap we ended up with this 001 002 003 004 Get-Event   -SourceIdentifier   "File System Changed"...
Posted by RichardSiddaway | with no comments

Watching the file system

We saw how to watch for WMI events http://msmvps.com/blogs/richardsiddaway/archive/2009/11/07/powershell-wmi-events.aspx . In this post we will look at watching the file system. This time we will use the .NET System.IO.FileSystemWatcher object which means...
Posted by RichardSiddaway | with no comments

Multiple test files

Back here http://msmvps.com/blogs/richardsiddaway/archive/2009/11/05/creating-temporary-files.aspx or http://richardsiddaway.spaces.live.com/blog/cns!43CFA46A74CF3E96!2595.entry I showed how to create temporary test files. We can simply create multiple...
Posted by RichardSiddaway | with no comments

PowerShell WMI events

In my previous post ( http://richardsiddaway.spaces.live.com/blog/cns!43CFA46A74CF3E96!2598.entry   or http://richardsiddaway.spaces.live.com/blog/cns!43CFA46A74CF3E96!2598.entry ) I started to look at WMI events in PowerShell v2.  The win32_process...

PowerShell Eventing

This isn’t the latest sport added for the 2012 Olympics but a way to dig deeper into what is happening on your machine.  There is a continuous stream of events occurring on a computer – programs stop or start, files open or close etc etc.  Some...

Word module

I’ve posted a PowerShell module that includes the functions in earlier posts to my skydrive  -   http://cid-43cfa46a74cf3e96.skydrive.live.com/browse.aspx/PowerShell%20Scripts Enjoy Technorati Tags: PowerShell v2 , Word , Module
Posted by RichardSiddaway | with no comments
Filed under:

Unblocking files

When I download files from the Internet to Vista or Windows 7 the file is blocked and I can’t execute it until its unblocked. This is especially annoying with zip files because if I unzip them all the contents are blocked. I have been meaning to do something...

Codeplex AD Replication Module

The other codeplex project that caught my eye was a brand new one to create a PowerShell module to manage AD replication.  This one will be very useful and one I will be using a lot. There is still time for suggestions as to content for this project...

Codeplex PowerShell Configurator

I was looking at codeplex (Microsoft’s Open Source site) and decided to do a search for projects relating to PowerShell. 161 projects were returned.  The first 110 had an obvious PowerShell connection.  This is a tremendous number and really...

Word Add text

Keeping on with our look at Word we need to able to add text to the documents we are creating. 001 002 003 004 005 006 007 008 009 010 011 function   Add-Text   {     param   (         ...
Posted by RichardSiddaway | with no comments
Filed under:

Word add data to a table

We created a table in a recent post.  This time round we add some data to the table.   001 002 003 004 005 006 007 008 009 function   Add-TableData   {     param   (         [int...
Posted by RichardSiddaway | with no comments
Filed under:
More Posts Next page »