Search

You searched for the word(s): userid:3367
Page 1 of 9 (90 items) 1 2 3 4 5 Next > ... Last »
  • Hamming Distance

    Catching up on my reading I came across this post - http://blogs.msdn.com/powershell/archive/2009/09/20/what-s-up-with-command-prefixes.aspx which is a good explanation for why we should use command prefixes when creating cmdlets.  There is a reference to prefixes increasing the Hamming Distance of noun names. Not knowing what a Hamming Distance is I followed the link to http://en.wikipedia.org/wiki/Hamming_distance and found that it is a measure of the difference between two strings i.e. how
    Posted to Richard Siddaway's Blog (Weblog) by RichardSiddaway on Wed, Oct 14 2009
  • Date and Time

    I recently came across a script that used date and time information in this manner 001 002 003 004 005 006 $stuff   =   "Stuff" $monthday   =   Get-Date   -Format   "ddMMM" $year   =   Get-Date   -Format   yyyy $time   =   Get-Date   -Format   "HH:mm:ss" $data   =   "$monthday"   +   ","   +   "$year"   +   ","  
    Posted to Richard Siddaway's Blog (Weblog) by RichardSiddaway on Mon, Oct 12 2009
    Filed under: Powershell
  • 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 to Richard Siddaway's Blog (Weblog) by RichardSiddaway on Mon, Sep 7 2009
    Filed under: PowerShell V2
  • 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 in PowerShell for this and finally got round to it.  The blocking is because of a zone identifier in an alternate data stream (ADS) attached to the file. If you have been around PowerShell for any length of time you may remember MoWs post
    Posted to Richard Siddaway's Blog (Weblog) by RichardSiddaway on Sat, Sep 5 2009
    Filed under: PowerShell V2, Modules, Hidden Files, File Attributes
  • 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 – see http://adreplicationmodule.codeplex.com/ Technorati Tags: PowerShell v2 , Active Directory , Replication
    Posted to Richard Siddaway's Blog (Weblog) by RichardSiddaway on Fri, Sep 4 2009
    Filed under: PowerShell and Active Directory, Active Directory, Windows Server 2008, PowerShell V2, Modules
  • 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 does demonstrate the strength of the PowerShell community. One project that caught my eye was James O’Neill’s PowerShell configurator for Server 2008 R2 Core and Hyper Server R2.  Its done as a PowerShell v2 module with the following functions
    Posted to Richard Siddaway's Blog (Weblog) by RichardSiddaway on Fri, Sep 4 2009
    Filed under: Windows Server 2008, PowerShell V2
  • 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   (         [string]   $style   =   "Normal" ,         [string]   $text       )     $global:paragraph   =   $doc . Content . Paragraphs . Add ( )    
    Posted to Richard Siddaway's Blog (Weblog) by RichardSiddaway on Thu, Sep 3 2009
    Filed under: PowerShell V2
  • 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]   $row   =   1 ,         [int]   $col   =   1 ,         [string]   $text     )     $table . Cell ( $row , $col
    Posted to Richard Siddaway's Blog (Weblog) by RichardSiddaway on Wed, Sep 2 2009
    Filed under: PowerShell V2
  • Module Contents

    I’ve been writing a few modules recently and sometimes forget what I have in each module. Simple way to view the functions each module makes available. 001 002 003 004 005 006 007 Clear-Host Get-Module   -ListAvailable   |   foreach   {     Import-Module   $_ . Name     Get-Command   -Module   $_ . Name   |   Select   Module ,   Name     Remove-Module   $_ . Name     ""
    Posted to Richard Siddaway's Blog (Weblog) by RichardSiddaway on Tue, Sep 1 2009
    Filed under: PowerShell V2
  • Word Close Document

    So far we have created a document and started to add data into the document. 001 002 003 004 005 006 007 008 function   Close-WordDocument   {     param   (         [ parameter ( Mandatory = $true ) ]         [string] $file     )     $doc . SaveAs ( [REF] $file )     $word . Quit ( ) }   We pass a file name in as a parameter. Notice that the parameter
    Posted to Richard Siddaway's Blog (Weblog) by RichardSiddaway on Tue, Sep 1 2009
    Filed under: PowerShell V2
Page 1 of 9 (90 items) 1 2 3 4 5 Next > ... Last »