Skip to content

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

@flleeppyy

Description

@flleeppyy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Category-ModulePertaining to the module's functionality itself.Issue-DiscussionLet's talk about it!

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions