Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SET destpath="\\networklogs\measure_sw_usage\extractinfo_%COMPUTERNAME%.txt"
- for /f "skip=2 tokens=1,* delims=," %%A IN ('wmic computersystem get username /format:csv') DO (echo %%B >>%destpath%)
- what the output should be
- testdomain\username
- what the output in the text file shows
- estdomain\username
Advertisement
Add Comment
Please, Sign In to add comment