header image

Archive for November, 2015

PowerShell Summit 2016–agenda complete

Posted by: | November 27, 2015 Comments Off on PowerShell Summit 2016–agenda complete |

The agenda is complete on the event web site. We still have to finalise the sessions from the PowerShell Team but they will be giving a number of sessions.

under: PowerShell Summit

A deal of the day you’ll not want to miss

Posted by: | November 26, 2015 Comments Off on A deal of the day you’ll not want to miss |

PowerShell in Action, Third Edition is part of Manning’s Deal of the Day on Friday 27 November – see www.manning.com for details on the day –   Half off my book Windows PowerShell in Action, Third Edition. Use code dotd112715au at https://www.manning.com/books/windows-powershell-in-action-third-edition

under: Books, PowerShell

Creating Registry Key

Posted by: | November 20, 2015 Comments Off on Creating Registry Key |

I had a question left on the blog asking how to create a registry key. My preferred method is to use the CIM class = StdRegProv. Its a static class so you don’t need to create an object   [uint32]$hklm = 2147483650 $newkey = ‘SOFTWARE\NewKey’ Invoke-CimMethod -ClassName StdRegProv -MethodName CreateKey -Arguments @{hDefKey = $hklm; sSubKeyName […]

under: PowerShell and CIM, PowerShell and WMI

PowerShell column

Posted by: | November 20, 2015 Comments Off on PowerShell column |

The first in a regular(ish) series of articles has been published on the TechNet UK Blog.   http://blogs.technet.com/b/uktechnet/archive/2015/11/20/why-you-need-to-learn-powershell.aspx   Covering all things PowerShell related the articles will be appearing every 3-4 weeks.

under: Learning PowerShell

Windows Server 2016 TP4

Posted by: | November 20, 2015 Comments Off on Windows Server 2016 TP4 |

A new technology preview for Windows Server 2016 has just been released. Available from all good Microsoft download sites.

under: Windows Server 2016

Splatting and Default parameters

Posted by: | November 19, 2015 Comments Off on Splatting and Default parameters |

One thing you don’t hear much about is default parameters. Consider this Get-CimInstance -ClassName Win32_LogicalDisk -Filter "DeviceId = ‘C:’"   A pretty standard use of CIM.   Now think if you have to do this across a number of machines on a regular basis.  Typing could get a bit tedious. You could use splatting: $params […]

under: PowerShell Basics

Out of Process

Posted by: | November 18, 2015 Comments Off on Out of Process |

One thing I’ve been seeing come up a lot recently is the problem of modules and cmdlets cot being available when jobs and workflows are executed even though the module has been specifically loaded into PowerShell.   This is because workflows and Jobs run in a separate process when you execute them – NOT your […]

under: PowerShell Basics

Accessing WMI

Posted by: | November 16, 2015 Comments Off on Accessing WMI |

There are 3 sets of cmdlets for working with WMI classes – the WMI cmdlets, the WSMAN cmdlets and the CIM cmdlets.  The protocols used by these 3 sets are different.   The WMI cmdlets introduced in PowerShell 1 & 2 use DCOM for local and remote access under all circumstances   The WSMAN cmdlets […]

under: PowerShell and WMI

PowerShell + DevOps Global Summit 2016 – the agenda

Posted by: | November 14, 2015 Comments Off on PowerShell + DevOps Global Summit 2016 – the agenda |

We’ve finalised the agenda and we’re starting to publish session information on the web site at https://eventloom.com/event/login/PSNA16   There are a handful of sessions on the site at present. The rest will be added over the next week or so.   Keep checking back to see who’s been added.   Registration opens 1 December 2015

under: PowerShell Summit

WMI wildcards and filtering

Posted by: | November 11, 2015 Comments Off on WMI wildcards and filtering |

A question on the forum asking about filtering WMI results raises a number of interesting points.   The user wanted to pass a computername and a filter term to pull product information from remote machines. I ended up with this $computername = $env:COMPUTERNAME $filter = ‘Live’ $scriptblock = {     param($filter)     Get-WmiObject -Class Win32_product […]

under: CIM, PowerShell and CIM, PowerShell and WMI, PowerShell Basics

Older Posts »