Solved

Unable to get an exe file to run from the vmware esxi 4.1 custom specs

Posted on 2011-02-22
6
608 Views
Last Modified: 2012-05-11
I have a 2008 template setup in a ESXi 4.1 enviorment to use a custom spec. In this custom spec I'm am try to run an excutable:
 
AexNSC.exe -s -a ns="altiris7.global.companyname.com" nsweb="https://altiris7.global.companyname.com/altiris"  -nostartmenu  /s
 
Now if I run this manual in the vm it runs fine, but I just cannot get it to be run from the custom spec. I tried putting it in a .bat file and calling that and still the CS won't run it. I have been able to run other exacutables from the CS just fine.
 
I think it has something to do with teh EXE using the syntaxs.
 
any thoughts?
0
Comment
Question by:rdefino
  • 4
  • 2
6 Comments
 
LVL 28

Expert Comment

by:bgoering
ID: 34954640
Please check (and post if you don't see anything) the customize-guest log file and see if any error is generated. By default I think this goes in the system temp folder (Usually C:\windows\temp)

Good Luck
0
 
LVL 28

Accepted Solution

by:
bgoering earned 250 total points
ID: 34954685
You could also try to run it from a powershell script - create a ps1 file.

$cmdagent = { C:\"Program Files"\test\AeXNSC.exe /install ns=server.test.net nsweb=http://webtest/altiris/ NOSTARTMENU NOTRAYICON /NOADDREMOVE /s }
Invoke-Command $cmdagent

Only quote the "Program Files" don't quote the nsweb argument

http://www.experts-exchange.com/Programming/Languages/Scripting/Powershell/Q_26539262.html

0
 

Author Comment

by:rdefino
ID: 34954878
Now to run this command, do I just copy-paste in a dos prompt. I never used the power shell.

also, I still cannot locate the customization logs.

thanks
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 28

Expert Comment

by:bgoering
ID: 34955613
You create it in a file with a .ps1 extension -- then from customization enter command as

c:\path\to\command.ps1

Alternatively you can run from batch file - ps1 filetype should be associated with powershell
0
 

Author Comment

by:rdefino
ID: 34955851
Could you tell what C:\"Program Files"\test\AeXNSC.exe is doing?  what is the C:\"Program Files"\test\   for?
0
 
LVL 28

Expert Comment

by:bgoering
ID: 34955942
that would just be replaced with the path to your copy of the exe - all parameters should be replaced with what you want. Point is only the part of the path with spaces should be quoted.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now