PowerShell for Windows Admins:

Powershell


September 17, 2016  1:56 PM

PowerShell repositories

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

A reader on my blog asked if you can unregister the default PowerShell repository so you just use an internal repository. First off – PSGallery is the default repository PS> Get-PSRepository | Format-List

Name                      :...

September 16, 2016  12:45 PM

Dealing with CIM properties that are integer arrays

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

Saw a post about WmiMonitorID that intrigued me If you use the WmiMonitorID: PS> Get-CimInstance -Namespace root\wmi -ClassName WmiMonitorID | select -f 1 Active                 : True InstanceName           :...


September 15, 2016  2:20 PM

Deadline for proposal submissions fast approaching

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

The deadline for proposal submissions for the 2017 PowerShell and DevOps Global Summit is fast approaching. A list of possible topics is available here 0 Comments     RSS Feed     Email a friend


September 5, 2016  6:29 AM

using help proactively

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

I was reading a thread on the forum about using a particular cmdlet and it occurred to me that the person posing the question hadn’t actually looked at the help file for the cmdlet. One of the first things I do when coming across a new cmdlet – either in some code or when I need to perform...


September 3, 2016  12:14 PM

Open source PowerShell and OMI

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
CIM, Open source, Powershell

OMI – the Open Source CIM server is available on github https://github.com/Microsoft/omi This appears to be a later version than currently shown on the open group web site Combine this with open...


August 30, 2016  12:26 PM

Optimising WMI calls–part 3

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

The next change just uses 1 call to get the disk information instead of 2 Measure-Command -Expression { $srvs = 'W16TP5TGT01', 'W16TP5TGT02' for ($i=1; $i -le 150; $i++){ foreach ($srv in $srvs) { $cs = New-CimSession -ComputerName $srv $bootupMemory = Get-CimInstance -Query "SELECT *...


August 30, 2016  11:41 AM

Optimising WMI calls–part 2

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

Last time we looked at using CIM sessions to make a set of WMI calls run quicker. This time we’ll reduce the number of calls.  I’m deliberately just reducing the number of calls to the Win32_Service class.  We’ll look at the disks another time Our code becomes Measure-Command...


August 30, 2016  11:12 AM

PowerShell speaker opportunities still open

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

You have just over a month to register your session proposals for the 2017 PowerShell Summit - https://powershell.org/2016/08/01/powershell-and-devops-global-summit-2017-call-for-topics/


August 16, 2016  1:46 PM

Update-Help errors

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

Updatable help brings the benefit of up to date help with typos fixed and new edge cases described. The down side is that it sometimes fails: PS> Update-Help -Force Update-Help : Failed to update Help for the module(s) 'Microsoft.PowerShell.Operation.Validation' with UI culture(s) {en-GB} :...


August 1, 2016  5:11 AM

PowerShell Summit 2017–Call for Topics

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

The Call for Topics for PowerShell Summit 2017 is live on powershell.org - 0 Comments     RSS Feed     Email a friend


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: