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
Expected Behavior
Import and use the module under a non-privileged PowerShell session
Current Behavior
Requires elevated session because one command has #requires statement
Failure Information
Write-Error: Failed to import private function C:\Modules\RubrikPolaris\M365\New-EnterpriseApplication.ps1: The script 'New-EnterpriseApplication.ps1' cannot be run because it contains a "#requires" statement for running as Administrator. The current PowerShell session is not running as Administrator. Start PowerShell by using the Run as Administrator option, and then try running the script again.
Steps to Reproduce
Open PowerShell 7 session, run import command:
> ipmo C:\Modules\RubrikPolaris\Write-Error: Failed to import private function C:\Modules\RubrikPolaris\M365\New-EnterpriseApplication.ps1: The script 'New-EnterpriseApplication.ps1' cannot be run because it contains a "#requires" statement for running as Administrator. The current PowerShell session is not running as Administrator. Start PowerShell by using the Run as Administrator option, and then try running the script again.
Expected Behavior
Import and use the module under a non-privileged PowerShell session
Current Behavior
Requires elevated session because one command has
#requires
statementFailure Information
Write-Error: Failed to import private function C:\Modules\RubrikPolaris\M365\New-EnterpriseApplication.ps1: The script 'New-EnterpriseApplication.ps1' cannot be run because it contains a "#requires" statement for running as Administrator. The current PowerShell session is not running as Administrator. Start PowerShell by using the Run as Administrator option, and then try running the script again.
Steps to Reproduce
Open PowerShell 7 session, run import command:
Context
polaris-o365-powershell/RubrikPolaris/M365/New-EnterpriseApplication.ps1
Line 1 in 762189b
The text was updated successfully, but these errors were encountered: