PowerShell for Windows Admins:

Disks


July 7, 2011  2:18 PM

Next drive letter



Posted by: Richard Siddaway
Disks

I’ve been working on using the Hyper-V PowerShell library and wanted to use the Mount-VHD function.  It wants a drive letter.  The library provides Get-FirstAvailableDriveLetter but what I want is actually the next letter in the sequence.  I want to avoid A & B to avoid...

June 23, 2011  12:46 PM

Testing the 4K boundary



Posted by: Richard Siddaway
Disks

Advanced Format disks have started shipping –see

Bookmark and Share     0 Comments     RSS Feed     Email a friend


April 29, 2011  3:28 AM

PowerShell Deep Dive: II Win32_Volume



Posted by: Richard Siddaway
Disks, PowerShell v2, WMI

One question that I was asked at the deep dive -

Is there a way to link a disk volume back to the physical disk it resides on?

There doesn’t seem to be. If we test the WMI classes associated with a volume we get these results

Win32_Directory
Win32_QuotaSetting...


February 16, 2010  4:11 PM

Disks: CD Drives



Posted by: Richard Siddaway
Disks, PowerShell v2

Just to finish off our look at disks – we’ll have a quick look at CD drives


February 11, 2010  4:07 PM

VolumeLabels



Posted by: Richard Siddaway
Disks, PowerShell v2

Need to read just the volume labels on a system.  Try this


February 8, 2010  2:10 PM

Defragmenting a volume



Posted by: Richard Siddaway
Disks

 

We have seen how to analyse a volume to see if it needs a defrag.  This is how we do it.  Modern windows systems will do a certain amount of defrag work automatically but sometimes we need to help them out.

 

  Bookmark and Share     0 Comments     RSS Feed     Email a friend


February 6, 2010  1:22 PM

Defrag Analysis Part 2



Posted by: Richard Siddaway
Disks

Last time we saw how to check whether a single volume needs a defrag run.  Usually our servers have a number of volumes – ideally we want to check all of them together

  Bookmark and Share     0 Comments     RSS Feed     Email a friend


February 5, 2010  3:25 PM

Defrag Analysis



Posted by: Richard Siddaway
Disks

One nasty fact of life we have to deal with as admins is disk fragmentation. We can discover how fragmented our disks are by Opening the Start Menu – Admin tools – Computer Management – Disk Management – pick a volume – click analyse.  My fingers ache from all this clicking.

...


February 3, 2010  4:40 PM

Disk Methods Part 2



Posted by: Richard Siddaway
Disks

 

We recently saw how to use the Chkdsk method of the Win32_Logicaldisk class.  A quicker way to do this is to use Invoke-WmiMethod which was introduced with PowerShell 2.  This uses the path to the WMI object we are interested in – this is held in the __PATH...


January 23, 2010  6:54 AM

Disk Methods Part 1



Posted by: Richard Siddaway
Disks

 

We have seen how to pull information about our disks – what about working with them. As a quick recap on the objects that PowerShell deals with – properties give us the information and methods enable us to do stuff. So what stuff can we do?

We can find out from the...


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: