Skip to content

Different result from ssh and powershell #1349

Open
@Santuz90

Description

@Santuz90

"OpenSSH for Windows" version
OpenSSH_for_Windows_7.9p1, LibreSSL 2.6.5

Server OperatingSystem
Windows Server 2012 R2 Datacenter

Client OperatingSystem
Fedora 29 / Windows Server 2012 R2 Datacenter

What is failing
cmdlets Get-Hotfix

Expected output
Source Description HotFixID InstalledBy InstalledOn


SVRTMP Security Update KB3004365 NT AUTHORITY\SYSTEM
SVRTMP Hotfix KB3004545 NT AUTHORITY\SYSTEM
SVRTMP Update KB3012235 NT AUTHORITY\SYSTEM
SVRTMP Update KB3012702 NT AUTHORITY\SYSTEM

Actual output
get-hotfix : Access denied
At line:1 char:1

  • get-hotfix
  •   + CategoryInfo          : NotSpecified: (:) [Get-HotFix], ManagementExcept
     ion
      + FullyQualifiedErrorId : System.Management.ManagementException,Microsoft.
     PowerShell.Commands.GetHotFixCommand
    
    

The user is a domain user with standard user rigths (only remote desktop capability).
If i send the cmdlet from powershell connected in RDP it works without problem, when launched in ssh it respond with Access Denied.

It works in SSH only if the user was added to Local Administrators group on the remote machine (SVRTMP).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions