PowerShell for Windows Admins:


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...


August 18, 2016  9:59 AM

PowerShell is Open Sourced

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

For those of you that have been at PowerShell events over the last few years you’ll have heard Jeffrey Snover state that he wanted to take PowerShell to other platforms. Now its happened Jeffrey has announced that an ALPHA release of PowerShell is now available for Linux and Mac. ...


June 9, 2016  3:47 AM

Converting strings to dates

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

You’ll see many examples of this: PS>  [datetime]'12/25/2016' 25 December 2016 00:00:00 This works great if the date is in US format – MM/DD/YYYY For those of us who use different date formats – such as England DD/MM/YYYY – this approach won’t work PS> ...


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: