I want to print the policy name which is "My Default Policy". I am using the following command, however, this print only "My" as my delimiter is a space. How do i make a new line as the delimiter?
reg query "HKEY_LOCAL_MACHINE\Software\McAfee\DLP\Agent\Properties\Policy" | find "PolicyName" > tmp.txt
for /F "tokens=3 delims= " %%f in (tmp.txt) do (echo "Policy Name:" %%f >> C:\mcafee.txt)