header image

Archive for May, 2009

Hidden Files

Posted by: | May 30, 2009 | No Comment |

The last post got me thinking about hidden files and file attributes and how we can manipulate them in PowerShell.  Lets start by creating a PowerShell script. PS> "’hello world’" > test.ps1PS> ./test.ps1 We can see the file in a directory listing PS> Get-ChildItem test.ps1     Directory: C:\scripts Mode                LastWriteTime     Length Name—-                ————-     —— —–a—        […]

under: PowerShell original

Removing Hidden files

Posted by: | May 28, 2009 | No Comment |

I used the OneNote 2007 Side Note utility this morning and for some reason it created a table of contents file ( .onetoc2 ) file in each of the folders in which I keep my PowerShell. Strange behaviour.  Any way there are more of them than I want to delete by hand. Get-ChildItem doesn’t show […]

under: PowerShell original

In this post http://richardsiddaway.spaces.live.com/default.aspx?_c01_BlogPart=blogentry&_c=BlogPart&handle=cns!43CFA46A74CF3E96!2349 I was complaining that Live Search had stopped working on my Windows 7 build.  I had a Vista machine that I had upgraded and post the upgrade Live Search wouldn’t work.  I’d also noticed that Live Search had stopped working on a Vista machine that had been upgraded to IE8. I […]

under: Windows 7

Friday 19 June 2009

Posted by: | May 21, 2009 | No Comment |

Where are you going to be on Friday 19 June? Glued to your computer – thats where. Why? Because it is the TechNet Virtual Conference – that’s why.  Lots of great sessions on all sorts of new Microsoft technologies. First Important point Yes there is a PowerShell session.  I am presenting so of the great […]

under: PowerShell original

Chapter 12 – dealing with Exchange servers is available on MEAP – http://www.manning.com/siddaway/   Chapter 13 (IIS) is coming along nicely and should be available soon   Enjoy

under: PowerShell original

Unix to PowerShell

Posted by: | May 19, 2009 | No Comment |

PowerShell already uses some Unix commands as aliases e.g. ls is alias for Get-ChildItem. Joe Pruitt is starting a series of posts that will create PowerShell equivalents for some of the most popular Unix tools.  First up is md5 http://devcentral.f5.com/weblogs/Joe/archive/2009/05/18/unix-to-powershell—md5.aspx Technorati Tags: PowerShell

under: PowerShell original

One thing that is really driving me nuts with windows 7 is the way it keeps deciding to maximise Windows just because I happen to move them to a particular point on screen. if I want a Window maximised I will maximise it. Stop making decisions on my behalf. I’ve had to use Windows XP […]

under: Rant, Windows 7

Scripting Games 2009

Posted by: | May 18, 2009 | No Comment |

The last few years have seen Microsoft running the annual Scripting Games – usually early in the year.  Don’t worry if you think you’ve missed them as this year they will be in the Summer – June 16-26. See – http://www.microsoft.com/technet/scriptcenter/funzone/games/games09/announcement.mspx for the announcement and see http://www.microsoft.com/technet/scriptcenter/funzone/games/default.mspx for the previous years events. while ($true) {“I […]

under: PowerShell original, Scripting Games

Combining Output

Posted by: | May 16, 2009 | No Comment |

A recent question of the PowerShell forum asked how the output of two scripts could be combined.  The scripts in question were using Get-ChildItem and Get-Acl to pull back two sets of information related to the file. PowerShell produces objects. .NET objects with a PowerShell wrapper. The questioner was looking for something like the UNION […]

under: PowerShell original

Looking at the module list available when you install the Windows 2008 R2 RSAT pack on Windows 7  I noticed one called NetworkLoadBalancingClusters.  Well really its called NetworkLoadBalancingCl… in most displays.    NetworkLoadBalancingClusters must the longest of module names!   Still when we import it we get a long list of cmdlets – (Get-Command -Module […]

under: Windows 7

Older Posts »