PowerShell for Windows Admins:

PowerShell


December 21, 2014  7:49 AM

Delivering PowerShell code with the November preview

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

Step one of investigating OneGet and PowerShellGet – install the latest preview.  I have the environment I used for the demos at the European PowerShell Summit with a machine set up for DSC. Its currently running the September preview: £>...

December 17, 2014  10:00 AM

Selecting AD properties

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Active Directory, Powershell

Saw a question on the forums about selecting name properties using the Microsoft AD cmdlets.  By default Get-AdUser returns a limited subset of properties: £> Get-ADUser -identity richard DistinguishedName : CN=Richard,CN=Users,DC=Manticore,DC=org Enabled           :...


December 15, 2014  3:54 PM

WMI — identifying writable properties

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
CIM, Powershell, WMI

One common mistake I see is people trying to set the value of a read only property on a WMI class.  There isn’t a quick way to see if a property is writable. Get-CimClass can be used but you have to dig into the Qualifiers for each property.   You can use this function to determine...


December 12, 2014  2:10 PM

Delivering PowerShell code

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

Do you have a need to deliver PowerShell code to multiple machines. I do. I have a dev environment plus test and production environments. I need to move code from dev through test and production. One way to do this is to create all of your code as modules and use the PowerShell 5.0 feature –...


December 10, 2014  1:40 PM

Learning PowerShell

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

I’ve been thinking about how people learn PowerShell through watching some people at work who are learning it and watching the questions on the forums – many of which start off “I’m new to PowerShell and…” There seems to be two broad approaches: Option 1 is to get some training....


December 9, 2014  2:54 PM

What Formatting cmdlets do to your data

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

I have seen an increasing number of questions recently where the answer has been to remove Format-Table from the pipeline. As an example consider the names of the processes running on your machine Get-Process -Name calc | Stop-Process works because you are piping the selected object into the...


November 28, 2014  12:38 PM

Add a drop down to a Word document

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Microsoft Word 2013, Powershell

  Its surprisingly easy to programatically add a drop down list to Word document   $Word = New-Object -Com Word.Application $word.visible = $true $template = "c:\test\template.docx" $Doc = $Word.Documents.Open($template) $Doc.Activate() $cntrl =...


November 27, 2014  2:46 PM

The little changes that make a difference

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

Each version of PowerShell introduces a new headline feature – remoting, workflows, DSC, OneGet in version 2,3,4 and 5 respectively. While this can change the way we work there are also a host of little changes that come along that are often overlooked. One example is a change to...


November 26, 2014  1:53 PM

Persisting PowerShell Objects

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

I was asked recently about persisting PowerShell objects. The idea was to test a particular property on a semi-regular basis and save the object with the highest value for the property.  If the next test has a higher value it is saved and overwrites the existing object.   There are a...


November 25, 2014  2:17 PM

PowerShell Summit Europe 2015 – – topics to include

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

Are you planning on attending the PowerShell Summit Europe 2015.  If so what topics would you like to see covered. The Summit is deliberately pitched at a high level so you won’t find beginner level content. If there’s a topic you’d like to be included in the agenda – leave a comment...


Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: