hello
I want to write a simple PowerShell script & use it as logon script on my students systems so that anytime they logon to their windows 7 or windows 8 systems, their computer name be created as a simple text file on their desktop ( or preferably on all users desktop on the same machine) & along with their logon, if there is currently another computername.txt file on their desktop, first it be removed & then new one which is updated be created.
note that I want the name of the text file be the same as system's Hostname ( I don't need the hostname be added inside text file). I mean for example when student loges to windows, see a file called PC01.txt on his desktop
what script is the best to do that?
really thanks