Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

$iswindows ? #4

Open
rogermartensson opened this issue Mar 10, 2019 · 1 comment
Open

$iswindows ? #4

rogermartensson opened this issue Mar 10, 2019 · 1 comment

Comments

@rogermartensson
Copy link

Tried your latest release thinking I could add a cmdlet or two.

You've already added those I found missing but I found a reference to a variable called $IsWindows.
That is part of PowerShell Core/6 and not anything earlier normally found on a windows installation.

Is it needed? If so, maybe a workaround should be made where $IsWindows is not available?

@jonnyt
Copy link
Owner

jonnyt commented Mar 13, 2019

Yes that should be fixed then. It's only needed if you are getting large result sets back because of limitations in the .Net implementation that I didn't run into when using PowerShell Core.

This discussion has what looks like a good fix:

$runningOnWindows = -not (Test-Path variable:IsWindows) -or $IsWindows

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

2 participants