AsBuiltReport / AsBuiltReport.Core

Repository for AsBuiltReport core module
https://www.asbuiltreport.com
MIT License
54 stars 23 forks source link

Add code to detect if script is running from PowerShell ISE #52

Open rebelinux opened 7 months ago

rebelinux commented 7 months ago

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