SCCM Program - VBScripting not resolving to current Directory

Hey Guys,
My program is pointing to a vbScript ---> cscript.exe Sample.vbs
This sample.vbs contains:
Set WshShell = CreateObject("WScript.Shell")
Set objShell = CreateObject("Shell.Application")
Set fso = CreateObject("Scripting.FileSystemObject")
strCurDir    = WshShell.CurrentDirectory
strExecute = chr(34) & strCurDir & "\setup.exe" & chr(34) & " " & "/configure" & " " & chr(34) & strCurDir & "\INSTALL32UK.xml" & chr(34)
WshShell.Run strExecute, 0, true
The script is not picking the current directory --> Instead it is resolving to
"C:\windows\System32\setup.exe" /cofigure "C:\windows\system32\INSTALL32UK.xml"
The program is ever running with status in SCCM Console.
When i check one of the client logs: I could find the below error,
the specified object could not be found in wmi
Please suggest any other way that my vbscript will resolve Current Directory of my DP and run successfully,

As Torsten said Start /Wait should do the job.
http://technet.microsoft.com/en-us/library/bb491005.aspx
Do a /? on the .exe also to see if there are any additonal switches available. Some installers spawn other processes and have switches to keep the command prompt open (Autocad springs to mind)
Might be worth copying your installer folder in it's entirety to the desktop of a client and run it, see what happens. Will save you a lot of time. Once you have the installer
working fine via a local install from command prompt it will work the same when deployed through Configmgr. 

Similar Messages

  • Acrobat Pro "save as" function in the file menu does not show the current directory of the file

    I have installed CC but Acrobat Pro gives me headaches.
    The "save as" function in the file menu does not show the current directory of the file but something I have worked on in the past.
    It forces me to navigates through my hard disk for this very straightforward thing in normal conditions. I precise: Acrobat is the only software reacting like that.
    I use Windows7 professional 64bits.

    I use what seems to be the latest version available on the Cloud:
    To illustrate my point, I open a directory with explorer and double-click on the only PDF in there:
    So here it is, open:
    When I do a "Save as", it takes me to a totally different place on the disk!
    Very annoying...
    Thanks for your time!
    JJ

  • How to trace an application which is not in the current directory?

    Hi,
    When I use simple example 'Trace' to trace my application in current directory, it works well.
    But I cannot trace the applications which are in different directory or in an .jar file. Even I've already add it to the classpath.
    The following is my test:
    I put Myapp.class in .\classes
    java -cp .;.\classes com.sun.tools.example.trace.Trace Myappit shows me:
    java.lang.NoClassDefFoundError: Myapp
    Warning: classic VM not supported; client VM will be used
    Exception in thread "main" -- VM Started --
    -- The application exited --Can anyone help me ?
    thanks

    The following is my test:
    I put Myapp.class in .\classes
    java -cp .;.\classescom.sun.tools.example.trace.Trace MyappThere are two JVMs involved when you are tracing or debugging.
    Rather than putting the classpath on your command line, set it as
    an environment variable so that both JVMs can use it. That way, the
    second JVM (which is executing the Myapp class) will be able to find it.
    If your current directory is %JAVA_HOME%/demp/jpda, then this example
    will trace the SwingSet2 demo program:
    set CLASSPATH=".;%JAVA_HOME%/lib/tools.jar;%JAVA_HOME%/demo/jfc/SwingSet2/SwingSet2.jar"
    java com.sun.tools.example.trace.Trace SwingSet2Let me deconstruct the CLASSPATH:
    . is on the classpath so the first JVM will locate
    the com.sun.tools.example.trace.Trace class relative to
    your current directory. You may also use the absolute
    path instead of dot.
    %JAVA_HOME%/lib/tools.jar is there so both JVMs
    can locate the JDI (Java Debug Interface) classes in tools.jar.
    %JAVA_HOME%/demo/jfc/SwingSet2/SwingSet2.jar is
    there so the second JVM (the debugee) can load the
    SwingSet2 class..

  • JFileChooser: changing file type resets current directory

    I create a JFileChooser with multiple file types and set the current directory. It comes up with the first file type and the current directory. If I select another file type, the files shown are not in the current directory, which I set -- they are files in the application default directory. Is there a way to keep my current directory, while changing the file type? Or is this a feature?

    Are you talking about your own CDs imported to iTunes or are you talking about songs purchased from the iTunes Music Store (iTMS)? If the latter, the iTMS, you do not get any choice in the format downloaded. You get protected AAC files and that is all.
    If you want to change how you import files, go to the iTunes preferences for importing and choose the format you want to use from now on.
    Patrick

  • How to now the Current Directory

    Hi everyone, i have a little problem, i dont'n know how to get the name of the current directory where i have the .jar file of my applet, and i need to know which is this directory to do something on it.
    How could i know the current directory?...
    Thanks.

    Hi.
    You can not get the current directory: applets can not access the hard drive. Instead you can get the code location, which will given the current directory if running locally.
    Try this: within the applet do : getCodeBase(). This will give you an URL to the code of the Applet, that is the JAR file.
    Hope this helps,
    Nuno

  • Current date parameter in concurrent program is not not taking current date

    Hi All,
    I have scheduled one concurrent request running very day @21:30 ,one of the parameter passed is current date ,which defined as default value at the time of defining concurrent program.Surprisingly its taking next day date as parameter.Can someone help me resolving this issue.
    From where this current date is taken.
    When I am logged in unix as oracle user and executing following query I am getting follwoing results
    SQL> alter session set nls_date_format='MM/DD/YYYY HH24:MI:SS';
    Session altered.
    SQL> select current_date from dual;
    CURRENT_DATE
    05/25/2010 07:40:11
    SQL> select sysdate from dual;
    SYSDATE
    05/25/2010 07:40:20
    date
    Tue May 25 07:40:35 SAUST 2010
    When I logged in unix as applmgr user:
    SQL> select current_date from dual;
    CURRENT_DATE
    05/25/2010 04:41:17
    SQL> select sysdate from dual;
    SYSDATE
    05/25/2010 07:41:19
    date
    Tue May 25 07:41:04 SAUST 2010
    Unix level date is correct and sysdate is also correct in both cases.
    But current_date when logged in s applmgr user is wrong,is this reason for the issue.
    If so how can I change it
    Version : 11.5.10.2
    Database : 10.2.0.4
    OS : AIX 5.3
    Thanks in advance

    Hi;
    Please check below and see its helpful:
    Scheduled Request Set Using 'Current Date' In Parameters Will Set Parameters One Day Out [ID 242654.1]
    The parameter Argument 2 (GL DATE) does not select the Current Date when schedule [ID 250431.1]
    Regard
    Helios

  • Java not checking current directory

    I'm trying to run one of my classes in command line. First time I've done this, usually use JBuilder, but I need to send command line arguments for this assignment, which is easier to do in command line.
    I'm using Windows XP. My class is called Fexpand. I go to the directory that the class is in. I check this with dir, and Fexpand.class is clearly present. I type "java Fexpand" and hit enter. I get "Exception in thread "main" java.lang.NoClassDefFoundError: Fexpand" If I put the full path to the current directory in manually with -classpath it will run just fine. But everything I've checked says this shouldn't be necessary and it should be checking the current directory automatically.
    Now javac works just fine. Just for kicks I thought I'd see if compiling with javac would make any difference. Went to my source directory (because JBuilder keeps compiled classes separate from source), typed "javac Fexpand.java" and it worked just fine. And since there was now an Fexpand.class in this directory, too, I thought I'd try running it. "java Fexpand" Still get the same error.
    My CLASSPATH variable contains the following (including quotes, I didn't add those for clarity, they're in the value for CLASSPATH): "C:\Program Files\Java\j2re1.4.2_04\lib\ext\QTJava.zip"
    I have no idea whether or not this is right, but it's the only culprit I can think of.
    Thanks for any help.

    But everything I've checked says this shouldn't be necessary and it should be checking the current directory automatically.Not if you hava overridden the default checking by explicitly specifying a classpath. Read the documentation Setting the Classpath and How Classes are Found here:
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/tools.html

  • Running a java program in a directory other than the current directory

    How do I run a java program that's located in a directory other than the current directory?
    There is a file Test.java in /dir1/subdir1. If my current directory is anywhere other than that directory, say /dir2/subdir2, I can compile Test.java by using:
    javac -classpath /dir1/subdir1 /dir1/subdir1/Test.java
    But when I try to run it with:
    java -classpath /dir1/subdir1 /dir1/subdir1/Test
    I get a java.lang.NoClassDefFoundError: \dir1\subdir1\Test
    Any thoughts?

    You need to specify just the name of the class you want to run. So java -classpath /dir1/subdir1 Test

  • On Creative Cloud,Photoshop CC Trial (or any other Adobe programs) does not download , States "Download error  Press Retry to try again... (49)". How can I resolve this?

    On Creative Cloud,Photoshop CC Trial (or any other Adobe programs) does not download , States "Download error  Press Retry to try again... (49)". How can I resolve this?

    Try logging out of the CC Application and restarting your computer. Also, try running the CC app as an administrator.
    Benjamin

  • Variant of program is not the current version

    Hi
    When the program started in CCS, it has been cancelled and giving the "Variant of program is not the current version" . how can i solve this and where ill get the soln for this type of error.
    Reply me asap
    thanks
    Umashankar

    you did not give much details about your problem. where you got this error, which program ? what are you trying to do ??
    If this is an ABAP Program,you can  always create a new variant directly in QA & PRD
    SE 38 > Progrma name > Execute (if you have selection screen) > enter your new selections > 'Goto' menu > Save as variant > give new name > Save
    If you dont have selection screen in your program
    SE 38 > Program Name > Change/ Display > Goto > Variants > Create
    Cheers
    Praveen

  • Cd_links: could not get current directory

    I am installing Oracle8 in Linux and that's the error that I am
    getting: cd_links: could not get current directory
    Does anyone know where is cd_links?
    null

    Claudia (guest) wrote:
    : I am installing Oracle8 in Linux and that's the error that I am
    : getting: cd_links: could not get current directory
    : Does anyone know where is cd_links?
    Which Oracle version are you installing? It's the Enterprise
    Edition or the Standard Edition, did you download it from the
    web? or you got the cd?
    null

  • Sharepoint does not resolve users from federated AD directory

    Our sharepoint farm resides in a domain called abc.com and we just federated with another domain def.com.
    The issue is that 9 out of 10 times sharepoint does not resolve users from def.com when adding them using the normal GUI and people picker. Users from def.com domain will have to click on the url and request access before they can be added to the sharepoint.
    Please can someone let me know what needs to be done so that sharepoint can resolve users from def.com domain using the people picker.
    Kind Regards
    Louis
    thanks

    Here is the way to do this via PowerShell:
    http://thesharepointfarm.com/2014/01/powershell-for-people-picker-properties/
    Do you have a two-way trust enabled? In that, case, it isn't required to use peoplepicker-searchadforests. If you do have a two way trust in place and SharePoint has port access to the remote domain controllers, does the remote domain NetBIOS and FQDN match
    (e.g. EXAMPLE and EXAMPLE.com)?
    As far as the credentials, you put in the remote domain's credentials, e.g. "forest:abc.com;forest:def.com,username,password" where the username is the sAMAccountName of a user in the remote domain.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Error: "Could not resolve [public class] to a component implementation

    Here's another clueless newbie question! :-(
    I define a public class "DynamicTextArea" at the top of the file, and get the compiler error message "Could not resolve <DynamicTextArea> to a component implementation" at the bottom of the same file.
    Clearly, I don't understand something very basic.
    (The code between the commenrted asterisks was originally in a separate package file, which I couldn't get either mxmlc or FlexBuilder to find, so rather than fight that issue now, I moved it into the same file.)
    Here's the file:
    <?xml version="1.0" encoding="utf-8" ?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    >
    <!--****************************************************************-->
        <mx:Script>
        <![CDATA[
      import flash.events.Event;
      import mx.controls.TextArea;
    public class DynamicTextArea extends TextArea{
        public function DynamicTextArea(){
          super();
          super.horizontalScrollPolicy = "off";
          super.verticalScrollPolicy = "off";
          this.addEventListener(Event.CHANGE, adjustHeightHandler);
        private function adjustHeightHandler(event:Event):void{
          trace("textField.getLineMetrics(0).height: " + textField.getLineMetrics(0).height);
          if(height <= textField.textHeight + textField.getLineMetrics(0).height){
            height = textField.textHeight;    
            validateNow();
        override public function set text(val:String):void{
          textField.text = val;
          validateNow();
          height = textField.textHeight;
          validateNow();
        override public function set htmlText(val:String):void{
          textField.htmlText = val;
          validateNow();
          height = textField.textHeight;
          validateNow();
        override public function set height(value:Number):void{
          if(textField == null){
            if(height <= value){
              super.height = value;
          }else{      
            var currentHeight:uint = textField.textHeight + textField.getLineMetrics(0).height;
            if (currentHeight<= super.maxHeight){
              if(textField.textHeight != textField.getLineMetrics(0).height){
                super.height = currentHeight;
            }else{
                super.height = super.maxHeight;        
        override public function get text():String{
            return textField.text;
        override public function get htmlText():String{
            return textField.htmlText;
        override public function set maxHeight(value:Number):void{
          super.maxHeight = value;
        ]]>
      </mx:Script>
    <!--****************************************************************-->
         <mx:Script>
        <![CDATA[
          import mx.controls.Alert;
          private var str:String = "This text will be long enough to trigger " +
            "the TextArea to increase its height.";
          private var htmlStr:String = "This <b>text</b> will be <font color='#00FF00'>long enough</font> to trigger " +
            "the TextArea to increase its height.";
          private function setLargeText():void{
            txt1.text = str;
            txt2.text = str;
            txt3.text = str;
            txt4.text = str;
            txt5.htmlText = htmlStr;
            txt6.htmlText = htmlStr;
            txt7.htmlText = htmlStr;
            txt8.htmlText = htmlStr;
        ]]>
      </mx:Script>
      <DynamicTextArea id="txt1" width="300" height="14"/>
      <DynamicTextArea id="txt2" width="300" height="20"/>
      <DynamicTextArea id="txt3" width="300" height="28"/>
      <DynamicTextArea id="txt4" width="300" height="50"/>
      <DynamicTextArea id="txt5" width="300" height="14"/>
      <DynamicTextArea id="txt6" width="300" height="20"/>
      <DynamicTextArea id="txt7" width="300" height="28"/>
      <DynamicTextArea id="txt8" width="300" height="50"/>
      <mx:Button label="Set Large Text" click="setLargeText();"/>
    </mx:Application>
         Thanks for any insight you can provide!
    Harvey

    Gordon:
        As you've noted, there were multiple  misunderstandings.
        Some are due to references in the language which are  different from uses in pre-existing languages.
        Take "name spaces". They look like URLs but they're  not. One of the first errors I made when starting Flex was to try to browse to  http://www.adobe.com/2006/mxml. I  figured that it would have some description of the language. But it didn't. In  spite of LOOKING like a URL, it doesn't point to anything; it's really just an  arbitrary magic incantation, like "Open Sesame".
        But, then when I wanted to use my OWN namespace, I  find that it's NOT arbitrary, and does have to point to something, but it's  still not a URL. The "AHA" moment was when Michael told me that "*" means "look  in this directory for a file with the name later named in an import statement,  but not named here". And if the file was in subfolder  "X" I'd have to use "X.*", while if it were a URL I'd use slash instead of  dot, but never an asterisk.
        When the language syntax is so contrary to the  expectations of people coming from a declarative language or web programming  background, I think it is important to explicitly address the differences and  disabuse them of their preconceptions. I think the same should apply to the ways  in which ActionScript differs from ECMAScript.
        Another problem adding to my confusion is the habit  of naming variables with the names of keywords but with capitalization changes.  Not only does that set readers up for subtle "gotchas", but makes it unclear  which names are truly arbitrary, and which are required by the  compiler.
    It might be a good idea to have a convention of an  identifiable format for user variables. Many authors use names like  myButton for that purpose.
        It would also be helpful if printed text could  simulate the syntax coloring of the better editors, or at least have more  in-source comments saying exactly what each line does. (Or both)
        Another aid to understanding would be to provide a  reference to the alternative (MXML or AS) way of doing anything, whenever you  demonstrate one of the ways.
        I find that the emphasis on using FlexBuilder  distracts from a sense of what is really going on behind the scenes. E,g.: If  FlexBuilder automatically sets up the folder structure, I don't learn to do it  myself. I like to work at the code level, so when something goes wrong I don't  have to worry about what level it went wrong at.
        Also, not everyone is willing to drop $600 or $250  BEFORE they've learned whether they even like Flex. Your tutorials are, by  definition, addressed to newcomers who may well not yet have committed to the  expense of FlexBuilder. So more emphasis on using mxmlc would be nice. It would  also be helpful to discuss how to use local servers, like Tomcat, during the  development stage.
        Thanks for asking my opinion. I'm afraid that my 40  years of programming experience may make it harder for me to adapt to this new  style of programming than it would be for a kid with a tabula rasa. But, it  looks like it'll be fun once I get over the hump!
    Harvey

  • Could not resolve ilog:BrazilMap to a component implementation.

    Hey all,
    A former employee developed a very nice Flash UI for our company's front page. I have taken his role since he left and was recently tasked with altering some of the code. The source code I have on file for this UI, when loaded in Flash Builder 4 using the 3.5 SDK, does not run flawlessly. Without changing any code, the application will not run. It gives me the error: "Could not resolve <ilog:BrazilMap> to a component implementation."
    If I click "Proceed with Launch" at the error screen, everything runs fine, however I cannot "Export a Release Build" until this error is resolved.
    Here's the namespaces found at the top of CountriesMap.mxml (where the error occurs):
    <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="100" height="100%" xmlns:ilog="http://www.ilog.com/2007/ilog/flex" xmlns:mccune="com.dougmccune.containers.*" creationPolicy="all" creationComplete=";" creationCompleteEffect="{Iris}" hideEffect="{Iris}" showEffect="{Iris}">
    About a hundred lines down, the actual error is triggered on the "ilog:" line of code below:
    <mx:ViewStack ... >
         <mx:Canvas ... >
              <ilog:BrazilMap ... />
         </mx:Canvas>
    </mx:ViewStack>
    I'm relatively new to this (but not to programming in general) and the former employee is not available. Any insight you all could provide would be gratefully appreciated!
    Incidentally, I've tried tinkering with the namespaces (this is a common issue online), but just get more errors. :-/
    Thanks!

    Thanks for the rapid reply Ubuntu! Since the live version runs on the server, I assume the libraries are stored somewhere on the server. Where in the code would it indicate where the libraries are stored? I assume it must have a directory path listed somewhere, but I can't find? :-/
    Thanks!

  • SCCM 2012 client not being reinstalled after OS re-image

    So last spring I rolled out SCCM 2012 and set up the whole boundary group/discovery thing so that it automatically populated my device and user collections based upon Active Directory.  All of my computers (app. 750) have been available in SCCM for
    a year now.  All was good - I was interacting with my comptuers and deploying software through SCCM with no issues.  Now I'm doing OS re-installs (the OS image does not have the SCCM client pre-installed) on computers.  These are computers that
    were previously known to SCCM, but after restarting them with a fresh version of Windows, the SCCM client software does not get re-deployed to them.  I've let them sit for hours, days, even a week.  I have Client Push Installation configured for
    the site with an account that has both rights to the SCCM server as well as local admin rights on each machine.  If I browse to that machine in its device collection (where it remains listed), I can right-click it and manually install the client. 
    That works just fine.  But I don't want to do that for 750 machines.  Can someone please tell me what I'm missing?  Thanks!

    No I am not deleting old computer records.  I'm the only one who administers the SCCM site but we have many technicians who go out and repair computers that may involve re-imaging.  They don't always take the time to communicate each one to me. 
    As for using SCCM for OS deployment, we're currently using WDS because that's what we had first.  I put SCCM in place just to have a flexible way to deploy software.  My next step - probably later this summer - will be to find a way to move
    imaging over to SCCM as well.  However, this is not an immediate need.  What is immediate is that we're about to re-install our Windows image on hundreds of computers starting in a week or so and none of them are getting a client after the fact.
    I have client push, heartbeat discovery, and clear install flag all configured but these clients just don't get reinstalled.  If I go to their device collection and tell SCCM to manually push the client to that device, it fires right off.  So I
    know it isn't an issue with admin rights within the client push settings.

Maybe you are looking for

  • How to load a XML file into the database

    Hi, I've always only loaded data into the database by using SQL-Loader and the data format was Excel or ASCII Now I have to load a XML. How can I do? The company where I work has Oracle vers. 8i (don't laugh, please) Thanks in advance!

  • Doubt on quick mask mode?

    Hi i have 3 layers in photoshop. Background layer1 layer2 Now on layer 2 i did a selection and entered into quick mask mode and then applied gussian blur. When this is done does the selection borders try to blend with the back ground or will they try

  • Illustrator Licensing?

    I have Illustrator cs3....actually the whole cs3 package...I got it a year and a half ago and installed it on my mac using volume registration key. I would like to know if its possible to get the software onto my new desktop pc? I need to be able to

  • HT201178 Where do I find my pin in order to connect my wireless keypad to my iPad?

    Hi

  • Query Generator Funny error message

    Hello Experts, Not sure if you ever seen something like this, but be great if anyone can offer me some insight... on a normal query with parameter I have something like thsi /*select from ORDR t0*/ declare @begandate as datetime /* where */ set @bega