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

Install-SteamCMD: The current PowerShell session is not running as Administrator. #105

Open
flleeppyy opened this issue Sep 14, 2024 · 0 comments
Labels
Category-Module Pertaining to the module's functionality itself. Issue-Discussion Let's talk about it!

Comments

@flleeppyy
Copy link

flleeppyy commented Sep 14, 2024

Describe "Module Bug or Issue"

When running Install-SteamCMD after installing the powershell module to the current user, this error is thrown

PS C:\Users\flleeppyy> Install-SteamCMD
WARNING: The support for Windows PowerShell (v5) will be deprecated in the next major version of SteamPS. Please ensure
 your system supports PowerShell 7.
Install-SteamCMD : 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.
At line:1 char:1
+ Install-SteamCMD
+ ~~~~~~~~~~~~~~~~
    + CategoryInfo          : PermissionDenied: (False:Boolean) [Install-SteamCMD], Exception
    + FullyQualifiedErrorId : MissingUserPermissions,Install-SteamCMD

Context "The Problem"

It is asking for administrator when I installed the PS module to the current user instead of globally (which requires admin)

Context "Expected Behavior"

I expect it to install SteamCMD without admin privilages. It wouldn't make sense to allow the powershell module to be installed to the current user without admin, then ask for admin when installing steamcmd.

Context "Additional Information"

If it's because of the default path being in program files, I should be able to specify -InstallPath to a directory I have access to, and not require administrative privilages.

Name    Version
----    -------
SteamPS 4.1.0

Name                           Value
----                           -----
PSVersion                      5.1.20348.2227
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.20348.2227
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
@flleeppyy flleeppyy added Category-Module Pertaining to the module's functionality itself. Issue-Discussion Let's talk about it! labels Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category-Module Pertaining to the module's functionality itself. Issue-Discussion Let's talk about it!
Projects
None yet
Development

No branches or pull requests

1 participant