OK with the UAC setting (Registry) turned off.
I logon and stall no difference the last script with all the registry keys did not complete the required tasks.

Here is the line I used to switch off the UAC in registry

C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f


berni