Code Monkey home page Code Monkey logo

Comments (11)

TravisEz13 avatar TravisEz13 commented on June 12, 2024

What is $env:psmodulepath Do you have a path listed twice?

from storagedsc.

timomta avatar timomta commented on June 12, 2024

Hi Travis, no C:\Program Files\WindowsPowerShell\Modules shows a single directory for xStorage and a single 2.5.0.0 within that directory:

From: Travis Plunk [mailto:[email protected]]
Sent: Friday, April 22, 2016 1:59 PM
To: PowerShell/xStorage [email protected]
Cc: Tim Omta [email protected]; Author [email protected]
Subject: Re: [PowerShell/xStorage] Duplicate Identical Module Versions Break Import-DSCResource and Publish-AzureVMDscConfiguration (#34)

What is $env:psmodulepath Do you have a path listed twice?


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub #34 (comment) https://github.com/notifications/beacon/AGdd8WABQHTWmx2pESizibfpzAU2QCF1ks5p6TaxgaJpZM4IN8d3.gif

from storagedsc.

TravisEz13 avatar TravisEz13 commented on June 12, 2024

What is your $env:psmodulepath when running in Powershell?
Can you run "$env:psmodulePath" and send the output?

from storagedsc.

timomta avatar timomta commented on June 12, 2024

Hi Travis,

Here is my path:

C:\Users\tomta\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\Window

sPowerShell\v1.0\Modules;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\PowerShell\Modules;C:\Program Files\Mic

rosoft Message Analyzer\PowerShell;C:\Program Files\WindowsPowerShell\Modules;C:\Program Files (x86)\Microsoft SDKs\Az

ure\PowerShell\ResourceManager\AzureResourceManager;C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ServiceManag

ement;C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\Storage\

I checked all the directories listed in it and only C:\Users\tomta\Documents\WindowsPowerShell\Modules contains xStorage. Note that for some reason C:\Users\tomta\Documents\WindowsPowerShell\Modules is listed twice though. I’ll fix that and see if that is the problem…

From: Travis Plunk [mailto:[email protected]]
Sent: Friday, April 22, 2016 2:25 PM
To: PowerShell/xStorage [email protected]
Cc: Tim Omta [email protected]; Author [email protected]
Subject: Re: [PowerShell/xStorage] Duplicate Identical Module Versions Break Import-DSCResource and Publish-AzureVMDscConfiguration (#34)

What is your $env:psmodulepath when running in Powershell?
Can you run "$env:psmodulePath" and send the output?


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub #34 (comment) https://github.com/notifications/beacon/AGdd8ZsIlOScqk0fhVV-6HeQeGioeE9Pks5p6Ty8gaJpZM4IN8d3.gif

from storagedsc.

timomta avatar timomta commented on June 12, 2024

Travis, that duplicate entry in my module path was the problem. Some extraordinarily helpful installer must have added it sometime in the past and I didn’t see it.

Thanks for prompting me to review that path.

From: Travis Plunk [mailto:[email protected]]
Sent: Friday, April 22, 2016 2:25 PM
To: PowerShell/xStorage [email protected]
Cc: Tim Omta [email protected]; Author [email protected]
Subject: Re: [PowerShell/xStorage] Duplicate Identical Module Versions Break Import-DSCResource and Publish-AzureVMDscConfiguration (#34)

What is your $env:psmodulepath when running in Powershell?
Can you run "$env:psmodulePath" and send the output?


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub #34 (comment) https://github.com/notifications/beacon/AGdd8ZsIlOScqk0fhVV-6HeQeGioeE9Pks5p6Ty8gaJpZM4IN8d3.gif

from storagedsc.

TravisEz13 avatar TravisEz13 commented on June 12, 2024

Here is your path reformated to one path per line and sorted, the problem is in bold.

  • C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ResourceManager\AzureResourceManager;
  • C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ServiceManagement;
  • C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\Storage\
  • C:\Program Files (x86)\Microsoft SQL Server\120\Tools\PowerShell\Modules;
  • C:\Program Files\Microsoft Message Analyzer\PowerShell;
  • C:\Program Files\WindowsPowerShell\Modules;
  • C:\Program Files\WindowsPowerShell\Modules;
  • C:\Users\tomta\Documents\WindowsPowerShell\Modules;
  • C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules;

Please file an issue for this on [https://windowsserver.uservoice.com/forums/301869-powershell](PowerShell User Voice)

I suspect when you installed the azure SDK it duplicated the path.

To fix this open (this is windows 10 the names may vary slightly on other Oss)

  1. Open Control panel
  2. Open System and Security
  3. Open System
  4. Open Advanced System Setting
  5. Open Environment variables
  6. In system varibales find PSModule Path, click it
  7. click edit
  8. Remove any reference to C:\Program Files\WindowsPowerShell\Modules
  9. click ok
  10. close any powershell windows
  11. if you are using any application other than windows explore to launch powershell, close those as well.

It should now be fixed

from storagedsc.

TravisEz13 avatar TravisEz13 commented on June 12, 2024

Forgot to add, please confirm this resolves the issue so I can close this question.

from storagedsc.

timomta avatar timomta commented on June 12, 2024

Confirmed: something added that path to my system environment PSModulePath. I remove it via Control Panel and everything is working as expected.

From: Travis Plunk [mailto:[email protected]]
Sent: Friday, April 22, 2016 2:45 PM
To: PowerShell/xStorage [email protected]
Cc: Tim Omta [email protected]; Author [email protected]
Subject: Re: [PowerShell/xStorage] Duplicate Identical Module Versions Break Import-DSCResource and Publish-AzureVMDscConfiguration (#34)

Forgot to add, please confirm this resolves the issue so I can close this question.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub #34 (comment) https://github.com/notifications/beacon/AGdd8QhaA_VnLKzRUih4g7uzNDTdFqEDks5p6UFkgaJpZM4IN8d3.gif

from storagedsc.

TravisEz13 avatar TravisEz13 commented on June 12, 2024

Thanks for confirming, If you please the powershell behavior here is incorrect, please file an issue on PowerShell UserVoice

from storagedsc.

timomta avatar timomta commented on June 12, 2024

Here you go Travis, please vote it up: https://windowsserver.uservoice.com/forums/301869-powershell/suggestions/13545987-duplicate-psmodulepath-entries-cause-module-resolu

From: Travis Plunk [mailto:[email protected]]
Sent: Friday, April 22, 2016 3:07 PM
To: PowerShell/xStorage [email protected]
Cc: Tim Omta [email protected]; Author [email protected]
Subject: Re: [PowerShell/xStorage] Duplicate Identical Module Versions Break Import-DSCResource and Publish-AzureVMDscConfiguration (#34)

Thanks for confirming, If you please the powershell behavior here is incorrect, please file an issue on PowerShell UserVoice https://windowsserver.uservoice.com/forums/301869-powershell


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub #34 (comment) https://github.com/notifications/beacon/AGdd8WfwZ_J3tiZbC7c-PJGCFdedmTFtks5p6UZ9gaJpZM4IN8d3.gif

from storagedsc.

timomta avatar timomta commented on June 12, 2024

Issue logged here on PS UserVoice, please vote it up if you have this issue: https://windowsserver.uservoice.com/forums/301869-powershell/suggestions/13545987-duplicate-psmodulepath-entries-cause-module-resolu

from storagedsc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.