c# - Power shell: Import-Module -
i have been trying app fabric caching on win2008 standard server. when execute follwowing command get: import-module distributedcacheadministration import-module : specified module 'distributedcacheadministration' not loaded because no valid module file found in module directory.
where directory located , how can use module
also, appears have powershell 1. cant seem install powershell 2
modules , commands feature in powershell 2 only, can quite you're running version. guess you're confused because powershell.exe located in "1.0" directory; that's make version 2.0 backwards compatible.
you need specify exact location of module load: import-module [-force] path-to-module-file`
even better have available via $psmodulepath environment variable. try get-module -listavailable see modules available. since 1 you're trying load not seem listed, try setting $psmodulepath folder above directory holding module file.
when you're satisfied having correct module path, set via computer properties.
Comments
Post a Comment