AsBuiltReport.Core
AsBuiltReport.Core copied to clipboard
Add code to detect if script is running from PowerShell ISE
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
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.