Logon script to install hotfix

I'm currently trying to create a login script that installs an MSP file on users machines. I have created a script to install the application and it appears to work locally without any issues, but when I try and add the script into the users AD profile it tells me that there is a problem with the installer package. I think the problem is with where the hotfix is stored on the server, so I would like to incorporate a copy function into the script that would copy the file to the local machine before running the script

Does anyone have any suggestions on how I might do this?
Who is Participating?
kevinhsiehConnect With a Mentor Commented:
Users shouldn't have rights to install a hotfix. Use a startup script instead which runs under the localsystem account. Your script should have a way of checking to see if the hotfix has been successfully installed before trying to install it again.
why not just add"
copy [msp file]  %TEMP%

and then run from that location?
Are you sure it is the location of the MSP and not administrator authorization that is at issue?

MartynLawsonAuthor Commented:
Thanks for the suggestion. This worked great
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.