header image

Archive for August, 2008

W2KSG: Making Decisions

Posted by: | August 27, 2008 | No Comment |

Lets continue extending our PowerShell use and look at making decisions.  This corresponds to Listing 2.11 in the Scripting Guide – Script Center Home > Microsoft Windows 2000 Scripting Guide > Scripting Concepts and Technologies for System Administration > VBScript Primer > VBScript Overview > Making Decisions Taking Multiple Actions by Using If Then Else […]

under: PowerShell original

W2KSG: Mutiple Runs

Posted by: | August 27, 2008 | No Comment |

We have a script that will run through the logical disks on a machine and return the free space.  How do we run that multiple times? Script Center Home > Microsoft Windows 2000 Scripting Guide > Scripting Concepts and Technologies for System Administration > VBScript Primer > VBScript Overview > Looping For Next $convert = […]

under: PowerShell original

October PowerShell event

Posted by: | August 26, 2008 | No Comment |

Don’t forget there will be a TechNet PowerShell event in Birmingham (UK) on the afternoon of 14 October 2008.  Registration is open at http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032383908&Culture=en-GB   Share this post :   Technorati Tags: PowerShell

under: PowerShell original

W2KSG: Using Collections

Posted by: | August 26, 2008 | No Comment |

As we saw in the previous post Get-WMIObject returns a collection of objects. To continue with our script development to take that into account. PowerShell handles objects on the pipeline so we don’t need to use the collection explicitly Listing 2.8 would become ## listing 2.8 $convert = 1MB$computer = "pcrs2" Get-WmiObject -ComputerName $computer -Class […]

under: PowerShell original

We have seen how to use a string as a variable.  How do we join, or concatenate two strings.  The scripting guide has an example  Script Center Home > Microsoft Windows 2000 Scripting Guide > Scripting Concepts and Technologies for System Administration > VBScript Primer > VBScript Overview > Strings Concatenating Strings ## listing 2.7 […]

under: PowerShell original

W2KSG: Using Strings

Posted by: | August 25, 2008 | No Comment |

We come to Listing 2.6 – using strings as variables Script Center Home > Microsoft Windows 2000 Scripting Guide > Scripting Concepts and Technologies for System Administration > VBScript Primer > VBScript Overview > Strings Strings as Variables In this listing we add the ability to specify the computer  we are working with. WMI is […]

under: PowerShell original

PowerShell in Sweden

Posted by: | August 25, 2008 | No Comment |

September 16th brings a PowerShell event to Sweden.  In the morning I will be speaking on PowerShell in two sessions : PowerShell Overview Learning Powershell Using WMI Break Administering Active Directory Administering IIS 7 Registration for the event is here http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032386415&Culture=sv-SE In the afternoon there will be the first meeting of the Swedish\Nordic PowerShell User […]

under: PowerShell User Group

The Scripting Guide uses the script we saw in the previous post – http://richardsiddaway.spaces.live.com/blog/cns!43CFA46A74CF3E96!1646.entry and uses variables and constants to calculate the free space in MB rather than bytes (Listing 2.3) Script Center Home > Microsoft Windows 2000 Scripting Guide > Scripting Concepts and Technologies for System Administration > VBScript Primer > VBScript Overview Variables […]

under: PowerShell original

The Windows 2000 Scripting Guide was an invaluable resource for VBScript users. It was one of the things that helped bring scripting into the mainstream of admin activity. It contains a lot of scripting background information but written from a VBScript viewpoint. The example scripts are still incredibly useful – but they are written in […]

under: PowerShell original

TechEd EMEA

Posted by: | August 24, 2008 | No Comment |

Anyone interested in PowerShell and is going to be at TechEd EMEA (IT Pro) early in November – drop me a message if you want to meet up. Let me know especially if you are interested in the UK User group. There may well be other PowerShell related community stuff going on.  More later.   […]

under: PowerShell original

« Newer Posts - Older Posts »

Categories