Coder Social home page Coder Social logo

Comments (7)

vkvikaskmr avatar vkvikaskmr commented on August 10, 2024

Hi @jcitpro, we need some more information.

  1. Which OS are you using?
  2. Can you confirm the location of registry entry for the PowershellVersion 5? You can use regedit and search in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell to get its location.

from sharefile-powershell.

jcitpro avatar jcitpro commented on August 10, 2024

Hi @vkvikaskmr
Microsoft Windows [Version 10.0.14393]

In the regsitry location it looks like I only have reg keys for 1 and 3.
image

That said when I run the $psversiontable.psversion I see 5 listed.
image

Thanks for the help with this.

from sharefile-powershell.

vkvikaskmr avatar vkvikaskmr commented on August 10, 2024

If you open PowerShell->3 and then select PowershellEngine, you should be able to see all the versions that are supported. Version 5.1 should be one of them.
I have tried replicating it on win 8.1 and win 10 but failed to do so. I will try to verify this on the same OS version that you have mentioned and get back to you.

from sharefile-powershell.

jcitpro avatar jcitpro commented on August 10, 2024

See below.

image

Thanks again.

from sharefile-powershell.

vkvikaskmr avatar vkvikaskmr commented on August 10, 2024

Hey! @jcitpro can you please share the same snapshot for PowerShell->1. We have one check around that as well.

from sharefile-powershell.

jcitpro avatar jcitpro commented on August 10, 2024

Those entries do not exist.
image

from sharefile-powershell.

vkvikaskmr avatar vkvikaskmr commented on August 10, 2024

Hi @jcitpro ,
For snapins to work we should have PowershellVersion Engine v2.0 explicitly installed; the registry of which sits under PowerShell\1. The reason is that if we install a snapin with Powershell v3.0 or higher they are not getting registered as snapin and then the add-pssnapin command fails, probably because v3.0 and above requires modules and not snapins. Need to investigate more on this.
So, suggested workaround would be to install PowerShell Engine v2.0 and and then give it a try. Let me know if that works for you. As a reference here is how the registry should look :
image

from sharefile-powershell.

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.