PowerShell for Windows Admins:

Powershell


April 28, 2017  1:20 PM

Diskpart and PowerShell–part 3: Initialize disk and create volume

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Disk storage, Powershell

Last time we created a virtual disk and mounted it. In this post we’ll initialize the disk and create a volume. Start by remounting the disk Get-VHD -Path C:\test\Test1.vhdx | Mount-VHD You can now initialize the disk: Initialize-Disk -Number 1 Create a partition: New-Partition...

April 27, 2017  1:44 PM

Diskpart and PowerShell–part 2: Create a virtual disk

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Disk storage, Powershell

Before we start digging into the diskpart/Storage module functionality we need a disk to practice on. I don’t recommend using your machine’s system disk – bad things will happen. The Hyper-V module has  a New-VHD cmdlet so lets use that to create a disk to play with. The great thing...


April 26, 2017  1:41 PM

DiskPart and PowerShell–part 1

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
CIM, Disk storage, Powershell

An attendee at the Summit made the statement that the DiskPart utility didn’t have any equivalent in PowerShell. That’s not strictly true as the storage module provides a lot of functionality that maps to diskpart functionality. The module contents include: PS> Get-Command -Module...


April 16, 2017  6:51 PM

PowerShell Summit 2017 thoughts

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

2017 saw our largest Summit to date. 250 PowerShell fanatics (I use the word advisedly) descended on Bellevue Washington. The conversations had already started when I arrived at the hotel on the Friday night before the Summit! We had a planning meeting for Summit 2018 on the Saturday. Some good...


March 31, 2017  2:23 PM

PowerShell v6

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

Tried PowerShell v6 yet? Its the open sourced latest version of PowerShell – runs on Windows, Linux (various flavours) and MacOS Its available from - 0 Comments     RSS Feed     Email a friend


March 31, 2017  1:17 PM

Summit 2017–one week to go

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

With one week to go before travelling to Seattle for the 2017 PowerShell & DevOps Summit I’m putting the finishing touches to my presentations and the Summit organisation. The agenda was published last October but we’ve had to make a few changes recently to cover for speakers that have...


March 29, 2017  1:29 PM

Name mismatch

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Active Directory, CIM, Powershell

Ever wondered why you can’t do this:

Get-ADComputer -Filter * -SearchBase 'OU=Servers,DC=Manticore,DC=org' |
Get-CimInstance -ClassName Win32_OperatingSystem
The –ComputerName parameter on get-CimInstance accepts pipeline input BUT its by property name.
PS> Get-Help...


March 22, 2017  2:49 PM

Get-SupportedFileSystems

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
CIM, Powershell

I stumbled on the Get-SupportedFileSystems cmdlet today. Its part of the Storage module and is defined as a function. Digging a bit further its from a CDXML module based on a CIM class. But which CDXML file contains the definition?

PS> Get-ChildItem -Path...


March 22, 2017  1:43 PM

PowerShell Summit 2017–Community Lightning Demos

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

Early Summits, and their precursors – the PowerShell Deep Dives – featured Lightning rounds where attendees had 10 minutes or so to present something PowerShell related – a tip, trick, discovery, cool piece of code, new technique etc etc etc … Summit 2017 brings that concept back. If...


March 20, 2017  3:10 PM

Updating built in modules

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

Windows 10 and Server 2016 automatically install a module called Pester which is used for testing code. Its the foundation of Test Driven Development or Behaviour Driven Development using PowerShell. The version  installed by default is 3.4.0. Pester is originally an open source module that...


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: