Comments (11)
What is $env:psmodulepath Do you have a path listed twice?
from storagedsc.
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.
What is your $env:psmodulepath
when running in Powershell?
Can you run "$env:psmodulePath" and send the output?
from storagedsc.
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.
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.
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)
- Open Control panel
- Open System and Security
- Open System
- Open Advanced System Setting
- Open Environment variables
- In system varibales find PSModule Path, click it
- click edit
- Remove any reference to
C:\Program Files\WindowsPowerShell\Modules
- click ok
- close any powershell windows
- if you are using any application other than windows explore to launch powershell, close those as well.
It should now be fixed
from storagedsc.
Forgot to add, please confirm this resolves the issue so I can close this question.
from storagedsc.
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.
Thanks for confirming, If you please the powershell behavior here is incorrect, please file an issue on PowerShell UserVoice
from storagedsc.
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.
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)
- Enable Code Coverage Reporting
- StorageDSC.Common: Assert-AccessPathValid does not properly validate slashes. HOT 1
- Get-DiskByIdentifier: Allow selection based on Serial Number
- Disk with Number '2' is already initialized with partition style '' but 'MBR' is required. HOT 1
- Update Azure DevOps Pipeline Images
- Update CI Pipeline Files from Latest Pattern
- Convert to class-based resources
- Convert tests to Pester 5
- DSC_Disk trigers defrag HOT 1
- Get-DiskByIdentifier: Allow FriendlyName property to be used as a disk identifier HOT 1
- Automatic Documentation Generation Fails on Ubuntu-22.04 build image
- Access denied to mount iso HOT 15
- OpticalDiskDriveLetter: The optical disk 1 could not be found in the system on Azure Windows Server 2022
- DSC_Disk: Add support for creating Dev Drive volume HOT 6
- VirtualHardDisk: New resource proposal HOT 3
- The deploy fails because there is a space in a tag in the module manifest HOT 3
- Trigger BREAKING CHANGE from PR #278 HOT 1
- Dev Drive DSC error message when not run as admin HOT 2
- OpticalDiskDriveLetter: DVD Drive for Windows Server Gen2 (UEFI) OS Images filtered HOT 12
- Make Supporting Helper Functions Public so that they can be tested/autodoced
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from storagedsc.