Solved

Powershell Module Installation

Posted on 2015-01-14
4
499 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 39

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

This script checks a path to see if a folder exists. If the folder does exist you will get output "The folder has previously been created. No action taken" If not it will create the folder. Then adds one user modify permission to the folder. It …
The following article is intended as a guide to using PowerShell as a more versatile and reliable form of application detection in SCCM.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

808 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