Skip to content
This repository has been archived by the owner on May 30, 2019. It is now read-only.

PowerShell Versions #31

Open
ikkaro opened this issue Nov 28, 2014 · 5 comments
Open

PowerShell Versions #31

ikkaro opened this issue Nov 28, 2014 · 5 comments

Comments

@ikkaro
Copy link

ikkaro commented Nov 28, 2014

Hi Matt,

It seems that the module doesn't works fine in Powershell v2.0 because of the method IsNullOrWhitespace and others, could that to be fixed or add a copy of the functions for PowerShell 2.0.

http://blog.danskingdom.com/powershell-2-0-vs-3-0-syntax-differences-and-more/

@christrotter
Copy link

Also confirming this - runs fine under 3.0, but not 2.0. Not a biggie, gives us a reason to upgrade to 3.0.

@daks
Copy link
Contributor

daks commented Dec 23, 2014

In fact, it needs PowerShell v3. Maybe adding the information in the README could be useful, or just a check in the code.

Something like

if ($host.version.major -lt 3) {
   write-host You need at least version 3 of Powershell.
   Exit
}

I could add it to the code, but I don't know where to put it for a module.

@toni-moreno
Copy link

Hi @MattHodge , @ikkaro , @daks , there is any tested workarround which enable us run this tool ok in Powershell v2 ?

@MattHodge
Copy link
Owner

I am pretty sure someone made a fork which supported v2. Cannot find it though :/

@gsmaul
Copy link

gsmaul commented Nov 5, 2015

The fork that supports v2 is located here: https://github.com/ashishpandey/Graphite-PowerShell-Functions

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants