AsBuiltReport.Core icon indicating copy to clipboard operation
AsBuiltReport.Core copied to clipboard

Add code to detect if script is running from PowerShell ISE

Open rebelinux opened this issue 1 year ago • 0 comments
trafficstars

Description

It would be nice to add some protection against running the report from a Powershell ISE window.

    if ($psISE) {
        Write-Error -Message "You cannot run this script inside the PowerShell ISE. Please execute it from the PowerShell Command Window."
        break
    }

https://github.com/rebelinux/AsBuiltReport.Core/commit/d61484ddb03f2ef3c9b360dc4c4b8b31a390989b

image

Additional Context

No response

Before submitting

  • [X] I have read the documentation, and referred to the known issues before submitting this change request.
  • [X] I have checked for previously opened & closed issues before submitting this change request.

rebelinux avatar Mar 29 '24 02:03 rebelinux