use Y: "\\share\public"
$username=readvalue("hkey_current_user\software\microsoft\exchange","UserName")
shell "%comspec% /e:2048 /c dir c:\progra~1\*. > y:\txt\progra~1\"+$username

I have included above into the first line of my existing login.kix and post to my PDC but I found only some users run this and return result. Why?

Appreciate if someone can give me some ideas.