Skip to content

Powershell 7 dosen't work under NT AUTHORITY\NETWORK SERVICE #4256

@MonkeTGG

Description

@MonkeTGG

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues, especially the pinned issues.

Exception report

S C:\Windows\ServiceProfiles\NetworkService\Desktop>                                                                   Oops, something went wrong.                                                                                             Please report this bug with ALL the details below, including both the 'Environment' and 'Exception' sections.           Please report on GitHub: https://github.com/PowerShell/PSReadLine/issues/new?template=Bug_Report.yaml                   Thank you!                                                                                                                                                                                                                                      ### Environment                                                                                                         PSReadLine: 2.3.5+2cc85806c561a9395751a96a818e8ff1592d19f7                                                              PowerShell: 7.4.6                                                                                                       OS: Microsoft Windows 10.0.19045                                                                                        BufferWidth: 120                                                                                                        BufferHeight: 9001                                                                                                                                                                                                                              Last 0 Keys:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ### Exception                                                                                                                                                                                                                                   System.UnauthorizedAccessException: Access to the path 'PSReadLineHistoryFile_4175510596' is denied.                       at System.Threading.Mutex.CreateMutexCore(Boolean initiallyOwned, String name, Boolean& createdNew)                     at System.Threading.Mutex..ctor(Boolean initiallyOwned, String name)                                                    at Microsoft.PowerShell.PSConsoleReadLine.DelayedOneTimeInitialize()                                                    at Microsoft.PowerShell.PSConsoleReadLine.Initialize(Runspace runspace, EngineIntrinsics engineIntrinsics)              at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics, CancellationToken cancellationToken, Nullable`1 lastRunStatus)

Screenshot

N/A, its crashes on startup

Environment data

cant blud, keeps on crashing, yes i have pressed Ctrl + C

Steps to reproduce

run Powershell 7 as NT AUTHORITY\NETWORK SERVICE using something like Process Hacker, watch it error out

Expected behavior

It works

Actual behavior

crashes upon boot

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions