how can I hide the cmd window when running a VBScript scheduled task on Win 2003 R2 SP2 x64? ...

How can I reduce the gap between left and right of cdot with a macro?

Generate an RGB colour grid

Do any jurisdictions seriously consider reclassifying social media websites as publishers?

Do I really need to have a message in a novel to appeal to readers?

Take 2! Is this homebrew Lady of Pain warlock patron balanced?

What are the diatonic extended chords of C major?

How to compare two different files line by line in unix?

How were pictures turned from film to a big picture in a picture frame before digital scanning?

Is grep documentation about ignoring case wrong, since it doesn't ignore case in filenames?

Chinese Seal on silk painting - what does it mean?

Morning, Afternoon, Night Kanji

Denied boarding although I have proper visa and documentation. To whom should I make a complaint?

How to install press fit bottom bracket into new frame

Converted a Scalar function to a TVF function for parallel execution-Still running in Serial mode

How does the math work when buying airline miles?

Selecting user stories during sprint planning

How do I use the new nonlinear finite element in Mathematica 12 for this equation?

Performance gap between vector<bool> and array

What do you call the main part of a joke?

How fail-safe is nr as stop bytes?

What is the topology associated with the algebras for the ultrafilter monad?

Crossing US/Canada Border for less than 24 hours

Why wasn't DOSKEY integrated with COMMAND.COM?

How much damage would a cupful of neutron star matter do to the Earth?



how can I hide the cmd window when running a VBScript scheduled task on Win 2003 R2 SP2 x64?



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)
Come Celebrate our 10 Year Anniversary!Registry read permissions (scripting) on Windows Server 2003Task Scheduler not able to execute .vbs scripts successfullyCannot install SMTP Service - Insert disk labeled “Service Pack 2 CD-ROM”PSKill does not run from VbScriptHow does the “Last Result” column of Scheduled Tasks in Windows Server 2003 get set from a process or script?cmd.exe version comparison?MS Server 2003 Standard x64 Edition Service Pack 2 website displays differently than when it was on 32-bit serverHow to prevent schtasks on Windows 7 from showing the command prompt after executing a task?do scheduled tasks in windows server 2003 r2 overlap?Multiple 12292 and 10 VSS errors





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I am running a VBScript (.vbs) file via Windows Scheduled Task.



On a Windows XP SP3 x86 machine, a command window is not shown when the task executes.



On a Windows Server 2003 R2 SP2 x64 machine, a command window is shown when the task executes.



Does anyone know why the difference in behavior and, in particular, how I can suppress the command window on the server?



Full version is Microsoft Windows Server 2003 R2 Enterprise Edition x64 (5.2.3790).










share|improve this question














bumped to the homepage by Community 13 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Does the scheduled task have anything to do with it. Perhaps one system is set to use wscript by default and the other is set to use cscript?

    – Zoredache
    Dec 7 '11 at 18:33













  • On both systems the scheduled task is configured to run the .vbs file and, I guess, let the file association take care of which executable is run. This is a very good point though - I will check which executable is being run on each system... when I get into the office tomorrow ;-).

    – AdamRalph
    Dec 7 '11 at 18:56




















0















I am running a VBScript (.vbs) file via Windows Scheduled Task.



On a Windows XP SP3 x86 machine, a command window is not shown when the task executes.



On a Windows Server 2003 R2 SP2 x64 machine, a command window is shown when the task executes.



Does anyone know why the difference in behavior and, in particular, how I can suppress the command window on the server?



Full version is Microsoft Windows Server 2003 R2 Enterprise Edition x64 (5.2.3790).










share|improve this question














bumped to the homepage by Community 13 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Does the scheduled task have anything to do with it. Perhaps one system is set to use wscript by default and the other is set to use cscript?

    – Zoredache
    Dec 7 '11 at 18:33













  • On both systems the scheduled task is configured to run the .vbs file and, I guess, let the file association take care of which executable is run. This is a very good point though - I will check which executable is being run on each system... when I get into the office tomorrow ;-).

    – AdamRalph
    Dec 7 '11 at 18:56
















0












0








0


0






I am running a VBScript (.vbs) file via Windows Scheduled Task.



On a Windows XP SP3 x86 machine, a command window is not shown when the task executes.



On a Windows Server 2003 R2 SP2 x64 machine, a command window is shown when the task executes.



Does anyone know why the difference in behavior and, in particular, how I can suppress the command window on the server?



Full version is Microsoft Windows Server 2003 R2 Enterprise Edition x64 (5.2.3790).










share|improve this question














I am running a VBScript (.vbs) file via Windows Scheduled Task.



On a Windows XP SP3 x86 machine, a command window is not shown when the task executes.



On a Windows Server 2003 R2 SP2 x64 machine, a command window is shown when the task executes.



Does anyone know why the difference in behavior and, in particular, how I can suppress the command window on the server?



Full version is Microsoft Windows Server 2003 R2 Enterprise Edition x64 (5.2.3790).







vbscript windows-server-2003-r2






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 7 '11 at 17:38









AdamRalphAdamRalph

10114




10114





bumped to the homepage by Community 13 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 13 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Does the scheduled task have anything to do with it. Perhaps one system is set to use wscript by default and the other is set to use cscript?

    – Zoredache
    Dec 7 '11 at 18:33













  • On both systems the scheduled task is configured to run the .vbs file and, I guess, let the file association take care of which executable is run. This is a very good point though - I will check which executable is being run on each system... when I get into the office tomorrow ;-).

    – AdamRalph
    Dec 7 '11 at 18:56





















  • Does the scheduled task have anything to do with it. Perhaps one system is set to use wscript by default and the other is set to use cscript?

    – Zoredache
    Dec 7 '11 at 18:33













  • On both systems the scheduled task is configured to run the .vbs file and, I guess, let the file association take care of which executable is run. This is a very good point though - I will check which executable is being run on each system... when I get into the office tomorrow ;-).

    – AdamRalph
    Dec 7 '11 at 18:56



















Does the scheduled task have anything to do with it. Perhaps one system is set to use wscript by default and the other is set to use cscript?

– Zoredache
Dec 7 '11 at 18:33







Does the scheduled task have anything to do with it. Perhaps one system is set to use wscript by default and the other is set to use cscript?

– Zoredache
Dec 7 '11 at 18:33















On both systems the scheduled task is configured to run the .vbs file and, I guess, let the file association take care of which executable is run. This is a very good point though - I will check which executable is being run on each system... when I get into the office tomorrow ;-).

– AdamRalph
Dec 7 '11 at 18:56







On both systems the scheduled task is configured to run the .vbs file and, I guess, let the file association take care of which executable is run. This is a very good point though - I will check which executable is being run on each system... when I get into the office tomorrow ;-).

– AdamRalph
Dec 7 '11 at 18:56












2 Answers
2






active

oldest

votes


















0














The CMD window is being shown most likely because it is being run via cscript. The CMD window will be displayed if the user that the task is configured to run as, is logged in at the time it executes.






share|improve this answer































    0














    Change your scheduled task to launch via WScript similar to:



    wscript //b //nologo <scriptname>





    share|improve this answer
























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "2"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f338643%2fhow-can-i-hide-the-cmd-window-when-running-a-vbscript-scheduled-task-on-win-2003%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      The CMD window is being shown most likely because it is being run via cscript. The CMD window will be displayed if the user that the task is configured to run as, is logged in at the time it executes.






      share|improve this answer




























        0














        The CMD window is being shown most likely because it is being run via cscript. The CMD window will be displayed if the user that the task is configured to run as, is logged in at the time it executes.






        share|improve this answer


























          0












          0








          0







          The CMD window is being shown most likely because it is being run via cscript. The CMD window will be displayed if the user that the task is configured to run as, is logged in at the time it executes.






          share|improve this answer













          The CMD window is being shown most likely because it is being run via cscript. The CMD window will be displayed if the user that the task is configured to run as, is logged in at the time it executes.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 17 '13 at 3:08









          Jay AdamsJay Adams

          30615




          30615

























              0














              Change your scheduled task to launch via WScript similar to:



              wscript //b //nologo <scriptname>





              share|improve this answer




























                0














                Change your scheduled task to launch via WScript similar to:



                wscript //b //nologo <scriptname>





                share|improve this answer


























                  0












                  0








                  0







                  Change your scheduled task to launch via WScript similar to:



                  wscript //b //nologo <scriptname>





                  share|improve this answer













                  Change your scheduled task to launch via WScript similar to:



                  wscript //b //nologo <scriptname>






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 9 '15 at 16:09









                  Mr. SmytheMr. Smythe

                  4181613




                  4181613






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Server Fault!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f338643%2fhow-can-i-hide-the-cmd-window-when-running-a-vbscript-scheduled-task-on-win-2003%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

                      Список ссавців Італії Природоохоронні статуси | Список |...

                      Українські прізвища Зміст Історичні відомості |...