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?
LVL 1
MartynLawsonAsked:
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.
0
 
n2fcCommented:
why not just add"
copy [msp file]  %TEMP%

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

See:
http://msdn.microsoft.com/en-us/library/aa372388(v=VS.85).aspx
0
 
MartynLawsonAuthor Commented:
Thanks for the suggestion. This worked great
0
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.