header image

Archive for June, 2016

Wireless on Windows 2016 TP5

Posted by: | June 30, 2016 Comments Off on Wireless on Windows 2016 TP5 |

Windows Server 2016 TP5 which appeared at the end of April has a major flaw. It doesn’t work with wireless cards!   I use a relatively high-spec laptop as my lab machine. Not being able to get the wireless card working means no Internet access and makes activation a lot more difficult.   The June […]

under: Windows Server 2016

Cleaning up entries on Remote Desktop Connection

Posted by: | June 29, 2016 Comments Off on Cleaning up entries on Remote Desktop Connection |

I use RDP between my main laptop and the machine on which my lab resides. When I rebuild the lab the entries in the Remote Desktop Connection for the old machine still remain.   There isn’t a direct way to remove those entries. But you can remove them from the registry.   First view the […]

under: PowerShell, Registry

Boolean in Where-Object filter

Posted by: | June 29, 2016 Comments Off on Boolean in Where-Object filter |

I was testing some code yesterday and realised there was a quirk in the way the original where syntax (with {}) worked and the way the newer syntax worked.   To demonstrate this I created a set of objects $i = 0 $tests = while ($i -lt 25){   New-Object -TypeName PSObject -Property @{     […]

under: PowerShell Basics

Still asking for topics

Posted by: | June 28, 2016 Comments Off on Still asking for topics |

Earlier in the month I posted a request for topics on powershell.org https://powershell.org/request-for-topics/   This is a request for YOU to tell us what topics you would like to see at the next PowerShell & DevOps Summit   We’ve had a handful of replies so far.   This is your chance to influence the content […]

under: PowerShell, Summit

PowerShell Summit & Conference videos 2016

Posted by: | June 27, 2016 Comments Off on PowerShell Summit & Conference videos 2016 |

  If you didn’t get to any of these conferences this year the videos are now available.   PowerShell and DevOps Summit https://www.youtube.com/playlist?list=PLfeA8kIs7Coc1Jn5hC4e_XgbFUaS5jY2i   European PowerShell Conference https://www.youtube.com/channel/UCxgrI58XiKnDDByjhRJs5fg   You might find this interesting as well. WinOps conference https://www.youtube.com/channel/UCP1OgsLk-HkEdQyhjJX_5JQ

under: PowerShell

Too many Windows 10 releases????????

Posted by: | June 26, 2016 Comments Off on Too many Windows 10 releases???????? |

The last couple of days have seen some incredibly stupid headlines but one that caught my eye was someone from the “computer press” whining that there are too many releases of Windows 10.   Unbelievable   What part of the Windows Insider Preview program does this person not understand?   You have to sign up […]

under: Opinion, Windows 10

Parallel processing

Posted by: | June 25, 2016 Comments Off on Parallel processing |

One of the great features PowerShell brings is the ability to remotely administer your servers. Most people begin remote administration by processing the servers sequentially. Eventually, this process breaks down because you have too many servers and/or the processes you are running against each server are long running.   At this point you have to […]

under: PowerShell


Posted by: | June 12, 2016 Comments Off on Months |

It would be nice to be able to do this: PS>  Get-Date -Day 25 -Month December -Year 2016 Get-Date : Cannot bind parameter ‘Month’. Cannot convert value "December" to type "System.Int32". Error: "Input string was not in a correct format." At line:1 char:25 + Get-Date -Day 25 -Month December -Year 2016 +                         ~~~~~~~~     + […]

under: PowerShell Basics, PowerShell v5

WMI classes and Storage cmdlets

Posted by: | June 11, 2016 Comments Off on WMI classes and Storage cmdlets |

There is a hierarchy of objects to work through when dealing with disks First you have the physical disk PS>  Get-CimInstance -ClassName Win32_DiskDrive | fl Partitions : 5 DeviceID   : \\.\PHYSICALDRIVE0 Model      : HFS256G3AMNB-2200A Size       : 256052966400 Caption    : HFS256G3AMNB-2200A   A physical disk can have 1 or more partitions: PS>  Get-CimInstance -ClassName Win32_DiskPartition | […]

under: PowerShell and CIM, PowerShell and WMI

WMI Filters

Posted by: | June 10, 2016 Comments Off on WMI Filters |

A common mistake with WMI/CIM filters is: PS>  Get-WmiObject -Class Win32_LogicalDisk -Filter "DeviceId=C:" Get-WmiObject : Invalid query "select * from Win32_LogicalDisk where DeviceId=C:" At line:1 char:1 + Get-WmiObject -Class Win32_LogicalDisk -Filter "DeviceId=C:" + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : InvalidArgument: (:) [Get-WmiObject], ManagementException     + FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCo    mmand   The clue is in the […]

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

Older Posts »