Solved

Powershell Module Installation

Posted on 2015-01-14
4
397 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
@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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Why would I want to create a function for tracking messages? I am glad you asked. As with most monotonous/routine tasks, human error tends to creep in after doing the same task over and over again. By creating a function, you load the function once…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 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

12 Experts available now in Live!

Get 1:1 Help Now