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