Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
rebelinux opened this issue Mar 29, 2024 · 0 comments
Open
2 tasks done

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

rebelinux opened this issue Mar 29, 2024 · 0 comments
Assignees

Comments

@rebelinux
Copy link
Contributor

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
    }

rebelinux@d61484d

image

Additional Context

No response

Before submitting

  • I have read the documentation, and referred to the known issues before submitting this change request.
  • I have checked for previously opened & closed issues before submitting this change request.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants