• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 786
  • Last Modified:

Question about deploying Java updates

I will deploying a Java update to 40 clients, I made a batch file with the following contents:

msiexec.exe /i \\Nira-server2\nirait\Deployments\Java\jre1.6.0_24.msi /quiet /norestart /L*v %LOGPATH%\Javainstall.log

Open in new window


and when I run the batch file on a test computer a command windows pops up and I get the following message:

'\\nira-server2\NiraIT\Deployments\Java'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.

C:\WINDOWS>msiexec.exe /i \\Nira-server2\nirait\Deployments\Java\jre1.6.0_24.msi
 /quiet /norestart /L*v \Javainstall.log

Open in new window


Java is updated but how do I get rid of the command window?  Also do I need to copy the MSI file locally (somewhere under c:) or to a mapped network drive?
0
GreyHippo
Asked:
GreyHippo
  • 4
  • 3
  • 2
  • +1
1 Solution
 
for_yanCommented:
It means that cmd.exe does not support \\serverNmae notation
I guess you need to map the location as networl drive to some letter
 
0
 
for_yanCommented:
Actually cmd. exe supports command
net
which shiould allow you to map the drive before you rtun instalaltion

Type

net use ?

at the command line
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
you could pipe output to > nul
0
Worried about phishing attacks?

90% of attacks start with a phish. It’s critical that IT admins and MSSPs have the right security in place to protect their end users from these phishing attacks. Check out our latest feature brief for tips and tricks to keep your employees off a hackers line!

 
for_yanCommented:
The only problem is that you don't know which drive leetter would be avaialable
for each of the 40 users, you can select some in the end of the alphabet:

Sonething like that in your batch file should probably work:

net use y: \\Nira-server2
msiexec.exe /i y:\\nirait\Deployments\Java\jre1.6.0_24.msi /quiet /norestart /L*v %LOGPATH%\Javainstall.log
0
 
GreyHippoAuthor Commented:
Is there a way to not have the command window popup?
0
 
for_yanCommented:
If you make a shortcut to your .bat file
put it on the desktop and then you can edit properties of the shortcut and say
I guess "run minimized" or somthing like that
I think it worked for me this way
0
 
DonNetwork AdministratorCommented:
Here's a couple other ways to update JAVA(and other apps)


Local Updates Publisher
http://sourceforge.net/apps/mediawiki/localupdatepubl/index.php?title=Main_Page


Privilege Authority
http://www.scriptlogic.com/products/privilegeauthority/elevate-apps.asp

Both are completely free
0
 
GreyHippoAuthor Commented:
When I deploy the batch file through Group Policy during logon the command windows doesn't popup and even though I am using UNC naming conventon in the batch file the client is still able to find it on the network and run it.

I probably should have tested out a few more scenarios on my end before asking a question

Dstewart,

Thanks for your suggestions, I may try those in the future.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Yep, you probably should!
0
 
GreyHippoAuthor Commented:
I should have worded my question differently because I forgot to mention that I would be deploying the batch file using Group Policy, because some of peoples comments don't apply when using Group Policy.
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.

Join & Write a Comment

Featured Post

Improved Protection from Phishing Attacks

WatchGuard DNSWatch reduces malware infections by detecting and blocking malicious DNS requests, improving your ability to protect employees from phishing attacks. Learn more about our newest service included in Total Security Suite today!

  • 4
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now