Require Administrator Permission
- When using Install-Module or Install-PSResource to install
PSCompletions, we can specify the-Scopeparameter. - If you specify
-Scope AllUsers, the module will be installed to the system-level directory, andPSCompletionswill need administrator permission to access it. - Therefore, you should avoid specifying
-Scope AllUserswhen installingPSCompletions. - If
-Scopeis necessary, you should specify-Scope CurrentUser.