indeed !! you are right ! on my sandbox machine, i don't have uac enable :D that's why ..
so i erased these lines and the script worked perfeclty.
BUT...
if i use it with UAC enable, i have a problem.
the order "ALT y" is working good manually , yes, but the problem is the UAC pop up is not automatically on front.
sorry for my bad english.
i mean, if i click on the UAC pop-up, and making myself ALT Y, ok , it's working.
but i need to click on the pop-up.
if not, it seems the cmd windows are in front.(i don't know the term in english)
en francais: c'est comme si la fenetre de l'UAC n'etait pas selectionné automatiquement.
du coup, ma commande ALT y ne sert a rien, vu qu'elle agi au niveau de la fenetre "cmd" :(
so the order to say yes i want to authorize on UAC "ALT y" is not understood by the PC.
am i the only one to have this problem ?
is there a command line to select the UAC pop-up, before makiing the ALT y ?
:)