PowerShell for Windows Admins:


July 1, 2019  1:11 PM

MVP award

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

I received the email this afternoon informing that I’d been awarded MVP status for another year – the 12th year I’ve received the MVP award. I’m highly honoured to receive this and thank everyone who’ve read my blog, my articles or books, or listened to my talks.

November 29, 2018  1:01 PM

Reverse a string

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

I sort of brushed over it on my last post but this is how you reverse a string. The code is at https://github.com/RichardSiddaway/Blogcode/blob/master/stringtechniques.ps1 Take the input string and turn it into an array of chars. Use the reverse static method of the array class to reverse the...


December 10, 2017  7:30 AM

Avoid the truncation in the display

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

A question came up regarding my recent post about using the file system COM object to get folder sizes. The question was about the folder path and how you could see the whole path. In other words how to avoid the truncation in the display and the three dots. When PowerShell displays objects it...


June 30, 2017  1:26 PM

Learning PowerShell

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

A recent post on powershell.org - https://powershell.org/2017/06/22/taking-powershell-to-the-next-level/ - gave this path for learning PowerShell and becoming more proficient Books: Learn Powershell In A Month of Lunches Learn Powershell Toolmaking in a month of Lunches Windows Powershell In...


May 3, 2017  10:07 AM

OpenSSH

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

PowerShell v6 enables remoting over SSH between Linux and Windows machines. SSH connectivity is established using OpenSSH. You can use remoting over SSH in any of these scenarios: Windows - Linux Linux - Windows Windows - Windows Linux – Linux You can also establish traditional WinRM...


April 2, 2017  7:35 AM

PowerShell Direct failure

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

PowerShell Direct is introduced with Server 2016/Windows 10. it enables you to create a remoting session from the Hyper-V host to a VM using the VM name or ID. I recent discovered a PowerShell Direct failure that I couldn’t explain until now. Normally you do this:

PS> New-PSSession...


January 24, 2017  2:37 PM

WMF 5.1 now available

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

The download for WMF 5.1 for down level operating systems is now available: 0 Comments     RSS Feed     Email a friend


December 30, 2016  2:10 PM

Preserving property order

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

This is a very common pattern:

$os = Get-CimInstance -ClassName Win32_OperatingSystem 
$comp = Get-CimInstance -ClassName Win32_ComputerSystem

$props = @{
  OS = $os.Caption
  InstallDate = $os.InstallDate
  LastBoot = $os.LastBootUpTime
  Make = $comp.Manufacturer
  Model =...


August 31, 2016  10:02 AM

Access functions

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

I had a request for the Access functions I wrote about in this post 0 Comments     RSS Feed     Email a friend


August 29, 2016  1:37 PM

Optimising WMI calls–part 1

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

Recently saw some code where user was running this $bootupMemory = gwmi -Query "SELECT * FROM Win32_OperatingSystem" -ComputerName $srv $cpuLoad = gwmi -Query "SELECT * FROM Win32_Processor" -ComputerName $srv $tSessions = gwmi -Query "SELECT * FROM Win32_TerminalService" -ComputerName...


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: