Articles

PowerShell articles, tutorials, and guides from community experts.

Robin Dadswell
PowerShell for Admins

ICYMI: PowerShell Week of 03-April-2020

Topics include Windows Terminal, Event Logs, String Basics and more.

Special thanks to Robin Dadswell, Prasoon Karunan V, Kiran Patnayakuni and Kevin Laux

Dynamic PowerShell and SSH remoting tabs for Windows Terminal

by Luke on 29th March

I am a SysAdmin and have to connect to dozen of different computers every day, I needed to bring this a little further and make it more “dynamic”: every time I open a remoting tab, it should ask for the computer name and the username if necessary.

Robin Dadswell
PowerShell for Admins

ICYMI: PowerShell Week of 27-March-2020

Topics include Switch Statements, Try Catch, Python and more…

Special thanks to Robin Dadswell, Prasoon Karunan V, Kiran Patnayakuni and Kevin Laux

Use cases for the new null coalescing operator in PowerShell 7

by Luc on 22nd March

Tips and use cases for the new null coalescing operator in PowerShell 7.

Getting into Python by Referencing PowerShell

by @SOZDBA on 23rd March

Trying to break his PowerShell dependency Shane shares an example for a script he wrote in both Python and PowerShell.

Mark Kraus (markekraus)
Announcements

PowerShell Conference Book Volume 3 Call For Authors

EDIT: We have extended the CFA to May 25th!

The  _ PowerShell Conference Book Volume 3 _  Call for Authors (CFA) is now open!

http://bit.ly/PSConfBook3CFA

The timeline for this process should be as follows:

Close submissions on Monday, May 4th, at 11:00 PM PDT

Notify everyone by May 25th

Final drafts will be due by June 1st

Finalize publication by September 30th

We are looking for one chapter per author on the topics of PowerShell, DevOps, WinOps, Open Source, or IT Careers. Topic depths can range from novice to expert. Chapters can be technical or cover cultural aspects. Authors can be new or well established. The book will be written in American English, but non-native speakers are welcome (our editorial team will support you)!

tobor79
Tips and Tricks

Not So Intutive PowerShell Behavior

The below link leads to the module I am writing about in this blog post.
LINK TO POWERSHELL MODULE
At my place of work a task needed to be completed that would allow us IT administrators to set the default lock screen image for our devices. Group Policy was my first thought however it was to broad of a solution. The rules basically became, set the default lock screen on some of the newer laptops and if a default lock screen has been manually chosen by a user; don’t change it.
I figured great that is an easy module to write. I wanted to add the option to execute the command on remote computers as well which is what brought up a couple great unexpected behaviors.
The cmdlets these include are New-PsDrive being executed on a remote machine and Copy-Item from a network location to a local location.