batch script to full use's last name based on sam id
I have this script to read in text file that contains list of user's logon name, then I want it to give me user's firstname and lastname based on it. But it keeps telling me"%%L" is unexpected at this time.
Could someone look at this and tell me what is wrong? Thanks
Cfor /f %%L in (c:\test.txt) do dsquery user -samid %%L | dsget user -ln
Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.