Solved

Powershell Module Installation

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

Suggested Solutions

Title # Comments Views Activity
sccm client without collection 1 41
Standalone converter (Shrinking process) 4 55
Simple Q for someone 3 19
Powershell 'Like' Command Query 5 5
Utilizing an array to gracefully append to a list of EmailAddresses
The article will show you how you can maintain a simple logfile of all Startup and Shutdown events on Windows servers and desktops with PowerShell. The script can be easily adapted into doing more like gracefully silencing/updating your monitoring s…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

861 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now