question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CommandLine property is empty when user has insufficient privileges

See original GitHub issue

Steps to reproduce

Install Oracle XE 11g

 (ps -Name TNSLSNR).CommandLine

Expected behavior

C:\oraclexe\app\oracle\product\11.2.0\server\bin\tnslsnr.exe

Actual behavior

No output

Environment data

Name                           Value
----                           -----
PSVersion                      7.1.0
PSEdition                      Core
GitCommitId                    7.1.0
OS                             Microsoft Windows 10.0.19041
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10

github_iconTop GitHub Comments

3reactions
jborean93commented, Dec 18, 2020

Task manager is a special process where it’s run as elevated by default without having to prompt through UAC. It’s signed by a specific Microsoft cert which allows it to do so and that’s why it can see the command line. So you need to be running as admin and the only action I can reliably see here is for the docs to be updated to state that is the case. As @SeeminglyScience says, changing the behaviour now could break existing scripts so not really something that could be done.

1reaction
SeeminglySciencecommented, Dec 18, 2020

Only when thrown by the method that obtains a value from a property. Note that I’m not necessarily saying it was or wasn’t a good idea, but changing it now would break a lot of folks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read configuration file due to insufficient permissions
My solution would be to run the commands from command line opened with administrator privileges. To do this, find command prompt, right-click it ......
Read more >
Resolving Insufficient Privileges Errors
You see the Insufficient Privileges error if you don't have the right access on different levels. For example, your profile prevents you from...
Read more >
Bizarre empty directory that can only be deleted with rmdir /s
In such a case the Windows explorer often shows the "insufficient permissions" error. This can even be caused by a Windows explorer shell ......
Read more >
Fix user creation and deletion issues in Azure Active ...
Azure AD has many methods for creating and deleting users, such as: ... Insufficient privileges to complete the operation.
Read more >
6 Error Code Reference
You can use EM CLI return codes to manage the control flow in a workflow/scripting ... 219—User has insufficient privileges to perform this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found