And please do not comment on how this should not be done by users, but only Administrators/IT, as I know what I'm doing. Therefore I think the $verb is different from the scripts I've found, but I haven't tested on my work station.įurthermore my work station has a very limited UAC,Īnd therefore I do not have Administrator rights. The machine where I need to do this runs Windows 7 with english language. I'm currently testing it on my home laptop which runs Windows 7 with danish language. How to pin to start menu using PowerShell, but I cannot make it work. When the folder has been copied I want the file %USERPROFILE%\Desktop\Opslag\Opslag.lnk to be added to the Start Menu. The %SOURCE% and ?STINATION% are set earlier in the script. XCOPY %SOURCE% ?STINATION% /D /E /C /R /I /K /Y MSG "%USERNAME%" The program is already installed. START "" "%USERPROFILE%\Desktop\Opslag\Opslag.lnk" /secondary /minimized Here is my code: IF EXIST "%USERPROFILE%\Desktop\Opslag\Opslag.hta" ( I'm currently making an installation script by using a.
0 Comments
Leave a Reply. |