CommandLine property is empty when user has insufficient privileges
See original GitHub issueSteps 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:
- Created 3 years ago
- Comments:10
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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.