Quantcast
Channel: Windows Performance Toolkit (WPT) v5 forum
Viewing all articles
Browse latest Browse all 275

Logman batch file, token error in CMD

$
0
0

I am trying to create a batch file containing logman script that will run PerfMon for 5 minutes recording throughput and save the output in a file. As a test I wrote this quick bit of code and as far as I am aware this is correct, however when I run it I encounter an error, this error also occurs if I trpe directly into cmd instead of running the .bat file. I do not know why this is happening, I am using a windows 7 laptop from home and and am the only user(administrator) on it. How can I stop this token error from happening. Running this directly from perfmon is fine but not what I need to do.

Code:

logman create counter log_test -c "\PhysicalDisk(_Total)\Disk Write Bytes/sec" -rf 05:00 -si 00:10 -o "c:\PerfLogs"

Error:

Access Denied.

You're running with a restricted token, try running elevated.

Thanks,

Dan


Viewing all articles
Browse latest Browse all 275

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>