Ask Your Question

Access denied in command prompt

asked 2019-12-16 14:11:51 +0000

Neha malhotra gravatar image

updated 2019-12-16 14:43:10 +0000


While trying to execute tshark commands through command prompt, i am getting error message as "Access Denied". I can not get admin rights on my system. Is there any workaround? Please assist.

Regards, Neha Malhotra

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-12-16 17:03:59 +0000

grahamb gravatar image

You don't mention the OS, but it's likely that it's Windows. Wireshark, by default. installs into a protected directory, usually "C:\Program Files" and ordinary users cannot write into this directory without privilege elevation and I suspect you are trying to write capture files into this directory.

To fix this, simply change into a directory where you do have write permission, e.g. your "Documents" directory, and run the command there, adding the full path to tshark, e.g.

"C:\Program Files\Wireshark\tshark.exe" ... -w capture1.pcapng.

You could alternatively supply the full path to the capture file, e.g.

tshark ... -w "C:\Users\<your user name>\Documents\capture1.pcapng"
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2019-12-16 14:11:51 +0000

Seen: 74 times

Last updated: Dec 16 '19