header image

Archive for February, 2016

CSV file with [] in headers

Posted by: | February 29, 2016 Comments Off on CSV file with [] in headers |

With the PowerShell Summit registration deadline rapidly approaching I wanted to see how registrations were going. I can down load a CSV file from the event website that lists attendees. Great. Just need to do some sorting and grouping and I’m golden.   I’m running PowerShell 5.0 on Windows 10 Insider build 14271   First […]

under: PowerShell Basics

PowerShell Summit–Registration closing soon

Posted by: | February 27, 2016 Comments Off on PowerShell Summit–Registration closing soon |

Registration for the PowerShell and DevOps Global Summit will be closing in the next few days – http://powershell.org/wp/2016/02/18/last-chance-for-powershellsummit-org-registration/   We still have a few places left but you’ll have to hurry

under: PowerShell, Summit

WMF 5.0 RTM has been republished

Posted by: | February 24, 2016 Comments Off on WMF 5.0 RTM has been republished |

A post on the PowerShell Team blog – https://blogs.msdn.microsoft.com/powershell/2016/02/24/windows-management-framework-wmf-5-0-rtm-packages-has-been-republished/ – reports that WMF 5.0 RTM has been republished. You’ll have to uninstall the original RTM package before installing the new one.

under: PowerShell v5, WMFv5

Get-ADUser quirk

Posted by: | February 24, 2016 Comments Off on Get-ADUser quirk |

Came across an interesting quirk of the way Get-ADUser works.   If you use the –Identity parameter and tell it to find a specific user PS> Get-ADUser -Identity dontexist Get-ADUser : Cannot find an object with identity: ‘dontexist’ under: ‘DC=Manticore,DC=org’. At line:1 char:1 + Get-ADUser -Identity dontexist + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : ObjectNotFound: (dontexist:ADUser) […]

under: PowerShell and Active Directory

IP Default Gateways by cmdlet

Posted by: | February 22, 2016 Comments Off on IP Default Gateways by cmdlet |

Following my recent post on setting the default gateway by using the Win32_NetworkAdapterConfiguration CIM class here’s how you do it using the networking cmdlets Discover your adapters Get-NetAdapter   Check the default gateway for an adapter Get-NetIPConfiguration -InterfaceIndex 12 | select InterfaceIndex, IPv4Address, IPv4DefaultGateway   Set the default gateway New-NetRoute -InterfaceIndex 12  -DestinationPrefix ‘0.0.0.0/0’ -NextHop […]

under: Networking, PowerShell

Quick test for updates that aren’t installed

Posted by: | February 22, 2016 Comments Off on Quick test for updates that aren’t installed |

I want a quick test to determine if any of the updates I’d approved hadn’t been installed on all of the relevant machines.   Get-WsusUpdate -Approval Approved | where InstalledOrNotApplicablePercentage -ne 100   Get the list of approved updates and filter on the InstalledOrNotApplicablePercentage   If anything does show up you can dig further to […]

under: PowerShell, WSUS

IP Default Gateways

Posted by: | February 21, 2016 Comments Off on IP Default Gateways |

When you configure the IP Address on a network adapter you also have to set the default gateway if you want the machine to communicate with machines on other subnets.   One way you can do this is through the SetGateways method of Win32_NetworkAdapterConfiguration $class = Get-CimClass -ClassName Win32_NetworkAdapterConfiguration $class.CimClassMethods[‘SetGateWays’].Parameters Name                  CimType Qualifiers                         ReferenceClassName —-                  […]

under: Networking, PowerShell, PowerShell and CIM

PowerShell Conference EU 2016–things to look forward to

Posted by: | February 15, 2016 Comments Off on PowerShell Conference EU 2016–things to look forward to |

With 64 days to the European PowerShell conference (and less to the PowerShell Summit) I’m busy getting my sessions prepared.   At the European conference I’m presenting pre-conference workshops on DSC and CIM and then two sessions on managing the new Container feature in Server 2016 with PowerShell.   As i’m not organising this one […]

under: PowerShell

PowerShell articles – – February 2016

Posted by: | February 10, 2016 Comments Off on PowerShell articles – – February 2016 |

I’ve had 2 articles published this week.   The first one is on the Scripting Guy blog https://blogs.technet.microsoft.com/heyscriptingguy/2016/02/08/should-i-use-cim-or-wmi-with-windows-powershell/   And looks at the WMI and CIM cmdlets showing why 99.99% you should be using the CIM cmdlets.   The second article is on the UK TechNet blog http://blogs.technet.com/b/uktechnet/archive/2016/02/10/powershell-and-server-core.aspx   and discusses how to configure and […]

under: PowerShell

WMF 5.0 download latest news

Posted by: | February 8, 2016 Comments Off on WMF 5.0 download latest news |

According to the PowerShell Team blog – https://blogs.msdn.microsoft.com/powershell/2015/12/23/windows-management-framework-wmf-5-0-currently-removed-from-download-center/    The issue has been resolved and a WMF 5.0 RTM build should be available around the end of February

under: WMFv5

Older Posts »

Categories