You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 30, 2019. It is now read-only.
Thanks a lot for a great project! I found some issues with it though:
--> I was getting no such method Dispose() on Windows 2008 with PowerShell 2.0 installed here:
function PSUsing$inputObject = $ (throw "The parameter -inputObject is required."),$scriptBlock = $ (throw "The parameter -scriptBlock is required.")
{
param (
[System.IDisposable]
[ScriptBlock]
)
Try
{
&$scriptBlock
}
Finally
{
if ($inputObject -ne $null)
{
if ($inputObject.psbase -eq $null)
{
$inputObject.Dispose()
}
else
{
$inputObject.psbase.Dispose() <-------- No such method psbase.Dispose() in PowerShell 2.0
}
}
}
}
I had to comment that line out to make module work.
--> Module was erroring on that line with PowerShell 2.0:
RootModule = 'Graphite-Powershell.psm1'
I had to replace it with:
ModuleToProcess = 'Graphite-Powershell.psm1'
All these issues go away if I upgrade to PowerShell 3.0 though.