Solved

Powershell Module Installation

Posted on 2015-01-14
4
555 Views
Last Modified: 2015-01-20
windows 7 64 bit is my os
powershell version 3.0

My first issue isgetting powershell to run the command get-disk

after get-disk command submission..... powershell returns

get-disk: the term 'get-disk' is not recognized.........

i go and download the storagespaces.zip file located here

https://gallery.technet.microsoft.com/scriptcenter/Storage-Spaces-module-for-4be70a0c
and place the files in a newly created folder called

C:\Windows\System32\WindowsPowerShell\v1.0\Modules\StorageSpaces

i run the command import-module storagespaces and get the following error

import-module " The specified module 'storage' is not loaded.

1)can someone point me to the dern storage module?
2) i just need to get the get-disk function to work at this juncture so if I'm going at wrong.  Please correct
0
Comment
Question by:jamesmetcalf74
  • 2
4 Comments
 
LVL 44

Accepted Solution

by:
Rainer Jeschor earned 250 total points
ID: 40549260
Hi,
as far as I know, this is dependent on the OS - and from the MSDN documentation it looks like the commandlet is only available starting Windows 8 / Server 2012:
http://technet.microsoft.com/en-us/library/hh848657(v=wps.620).aspx

HTH
Rainer
0
 
LVL 16

Assisted Solution

by:Joshua Grantom
Joshua Grantom earned 125 total points
ID: 40549262
Get-Disk only works with Windows 8.1 and Server 2012. Requires Powershell 4.0

http://technet.microsoft.com/en-us/library/hh848657.aspx


EDIT: Rainer beat me to it.
0
 
LVL 44

Assisted Solution

by:Rainer Jeschor
Rainer Jeschor earned 250 total points
ID: 40549263
And when you review your mentioned link, you can see that for Win 7 it states Supported = No
0
 
LVL 40

Assisted Solution

by:footech
footech earned 125 total points
ID: 40549363
@RainerJ - Actually, that just means it hasn't been tested (verified) by the author on Win 7.  But it's certainly true that the Get-Disk command isn't available on Win7, no matter what version of PS you have installed.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question