Convert AT.EXE into SCHTASKS.EXE

Hello everybody
In the past, the following initial batch always worked from NT 4.0 until Server 2008 R2 without hassles.
REM Reschedule a bunch of batches
SET BATCHROOT=D:\CompanyData\BATCH
AT /DELETE /YES
AT 12:45 /every:M,T,W,Th,F,S,Su %BATCHROOT%\FAVLSSIC.BAT
AT 23:54 /every:M,T,W,Th,F,S,Su %BATCHROOT%\ZEITSYNC.BAT
AT 03:05 /interactive /every:Su %BATCHROOT%\BANDSICH.BAT
AT 00:16 /every:W,S %BATCHROOT%\SCDBLIBB.VBS
Today, Server 2012R2 tells me that AT.EXE is obsoleted so I should use SCHTASKS.EXE instead.
Question: Is there a migration guide or even command line option conversion tool which allows me to convert this initialization batch into SCHTASKS based form? The intention is that I can setup a new server at any time, run this batch and then all repeated
jobs needed by the end customer are scheduled with their right parameters (time and weekdays). This form also allowed me to simply update anything in the past because I just emptied everything and resubmit them.
Thanks in advance.

In the meantime, I successfully got scheduled Jobs running.
Summary for other users having the same problem.
New: You have to give a job name for every task (AT used automatically generated numbers). => /tn option
- /sc is always needed even when running a job once
- Use /ru "" => the job runs with the System account like AT and also in the background when nobody is logged in on the server console
- /every should be either converted into /sc DAILY or /sc WEEKLY and /D <Days,of,Week> (list possible like /every early)
- Start time with /st
- Batch job with /tr
My example above will converted as follow
REM Reschedule a bunch of batches
SET BATCHROOT=D:\CompanyData\BATCH
REM There are a lot of predefined jobs which go lost when REM schtasks /delete /tn * /f
REM Instead better use separate cleanup delete commands
schtasks /delete /tn Favorite_Save /f
schtasks /delete /tn Time_Synchronization /f
schtasks /delete /tn Tape_Backup /f
schtasks /delete /tn Database_Lib_Save /f
schtasks /create /ru "" /st 12:45 /sc DAILY /tn Favorite_Save /tr %BATCHROOT%\FAVLSSIC.BAT
schtasks /create /ru "" /st 23:54 /sc DAILY /ru "" /tn Time_Synchronization %BATCHROOT%\ZEITSYNC.BAT
schtasks /create /ru "" /st 03:05 /it /sc WEEKLY /d SUN /tn Tape_Backup /tr %BATCHROOT%\BANDSICH.BAT
schtasks /create /ru "" /st 00:16 /sc WEEKLY /d WED,SUN /tn Database_Lib_Save /tr %BATCHROOT%\SCDBLIBB.VBS
for Microsoft: It should be not difficult to provide something like "cscript at2schtasks.vbs foo.bat" for such conversions (or even a community member can develop such a little piece of software).
A new problem: Some batches use SSH to Linux boxes.
PuTTY is a nice tool for that but there is a problem: The
The server's host key is not cached in the registry. You
have no guarantee that the server is the computer you
think it is.
The server's rsa2 key fingerprint is:
ssh-rsa 2048 10:d8:d1:e7:8f:9e:42:c6:7b:12:a2:8a:e3:2c:e8:7f
If you trust this host, enter "y" to add the key to
PuTTY's cache and carry on connecting.
If you want to carry on connecting just once, without
adding the key to the cache, enter "n".
If you do not trust this host, press Return to abandon the
connection.
Store key in cache? (y/n)
while the first time. The challenge: The SYSTEM's HKEY_CURRENT_USER profile initialization. On Server 2008R2, the following process works:
http://stackoverflow.com/questions/77528/how-do-you-run-cmd-exe-under-the-local-system-account
i.e. inside the light-blue desktop (Interactive Services Detection) environment, a CMD.EXE can be run and there the call of PLINK.EXE to all SSH target hosts for do the "y" for storing the key is possible so any background job using "-batch" inside PuTTY
works then.
I tested the same on Server 2012R2:
D:\DATEN\BATCH>sc create testsvc binpath= "cmd /K start" type= own type= interac
t
[SC] CreateService ERFOLG
WARNUNG: Der Dienst "testsvc" ist als interaktiver Dienst konfiguriert, dessen
Unterstützung abgelehnt wurde. Die einwandfreie Funktion des Dienstes ist nicht
gewährleistet.
D:\DATEN\BATCH>net start testsvc
Der Dienst reagiert auf die Kontrollfunktion nicht.
Sie erhalten weitere Hilfe, wenn Sie NET HELPMSG 2186 eingeben.
D:\DATEN\BATCH>_
but I don't get the icon in the taskbar for entering in this light-blue desktop.
So how can I activate the light-blue desktop in Server 2012R2 (and probably also valid for Windows 8.1)?

Similar Messages

  • How to convert erl scripts into single exe file ?

    hi
    this is not related to java. Does anybody know how to convert perl scripts into exe file in non-readable format?
    regards
    venki

    I believe that ActiveState used to do a Perl compiler.....not sure if they still do and I don't think it was free anyway. Check around their website...
    http://www.activestate.com/

  • Converting Jar files into Exe

    Can anyone suggest me a free tools for converting jar files into executable??
    Thanks

    thanks
    i have few questions about launch4j
    my application depends upon other jar files also like log4j.jar etc. Can i merge all the dependencies into the executable itself for better management of file? Is it possible in launch4j??
    and is it possible to extract my source code from executable file using reverse engineering techniques??

  • How to convert Flash EXEs to run on a Mac?

    The government where I'm working has distributed DVDs with teacher's guides and course materials to teachers and volunteers working on a new environmental education project.  When I loaded the DVD into my Mac, the DVD title showed up under "Devices" in Finder windows, but it was grayed-out and couldn't be opened.  (I had to go into Terminal and use "drutil eject" to get it out.)
    Today I tested the DVD in a Windows laptop and it worked without any problems.  The interface is composed of Flash EXEs.  I can access all of the other files on the disk -- PDFs, PPTXs, &c. -- but they're all in one directory and not always well-named.  I'd like to be able to use the interface to access the files when I present to my students.
    Does anyone know of a program I can run to convert this DVD of Flash EXEs into something useable on my Mac?  I do have access to a Windows laptop, and I was looking into DVD-to-ISO programs this morning, but I don't know if that would solve the problem of the interface being Flash EXEs.  Any suggestions would be appreciated, thank you

    Unless you have the .swf files, I don't think you'll be able to simply convert the .exe files.  However, have you looked into running Windows on the Mac using a virtual machine?  If this sounds reasonable, check out the following links:
    http://www.vmware.com/products/fusion/
    http://www.parallels.com/
    https://www.virtualbox.org/
    http://www.codeweavers.com/products/

  • SD card folders converted to .exe files in Mac Pro but accessible in Windows

    Hi, To copy some photos, when I inserted my SD card in my Mac pro, the 3 folders in them were converted to .exe files. When I double clicked on one of these "folders", it opened as a text editor app. When I tried the same in windows, all folders and photos were accessible, ie 3 folders with all the photos inside them. When I tried using a different USB stick in the Mac, some folders were converted to .exe files, some were ok and all the files were accessible. This hasn't happened before, ie - I've always been able to access the folders in any USB / SD card in my Mac.
    Any suggestions on how can I access them in Mac? Thx!

    Hrmmm. Rats!
    I was hoping to have that PCI bridge an option. I'd found a digital music site that said the card worked, but then I couldn't find any clear replies to what systems took (a G5 or Mac Pro) the setup. Given my budget, well.. the cost of these things, I'm not budging until I know for sure. Also, I have an Audiophile2496 PCI card that I was hoping to use on that bridge as well. Bummer.
    That Ratoc unit is actually cheaper than the bridge and will surely be fine!
    (I had found a similar listed thing on the Vuescan site, but it was USB.. and more expensive)
    This is *much* better! Thanks.
    Deb.
    Message was edited by: Deborah Terreson  - Camino doesn't play well on this new layout..

  • Convert an EXE back to a VI?

    Hello all,
    I'm just getting started with Labview.  My question is in regards to the possiblity of converting an EXE back to a VI. We have diagnostic software that we use on our equipment and would like to make some modifications to some timing features due to recent hardware/software upgrades.  We'd also like to switch most of the current hardware (ISA DAQ's) to a more modern portable setup (preferably PCMCIA or USB DAQ's).  Is it possible to convert back to VI's so we can make the changes or do we need to start from scratch and rewrite the VI's?  The originals were written a long time ago and the engineers are long since gone.
    Wayne

    I seem to recall reading about some little tricks you can use to get some information from the EXE - something about using LabVIEW to get the name of all VIs in memory.  That will just get you names of the subVI calls, though, and I'm guessing that wouldn't be terribly helpful.
    At least you can take some comfort in knowing that converting something that ran on ISA DAQs would probably require some pretty substantial rewriting anyway to work with modern stuff . (And if you want to hire someone to do it for you, there's always the Jobs forum down below.)
    Message Edited by kehander on 01-31-2008 01:44 PM

  • Convert sapgui.exe to .msi

    Dear Expert ,
    How i can Convert sapgui.exe to  .msi file. So that I can easlly diploy in all my client PC.
    Thanks
    manu

    > Via this method  GUI not installing.Basically we want to diploy SAP GUI in all my Client Workstation via
    > following method . For these method we required  .MSI  file.
    >
    > Using Domain Level group policy in Windows environment.
    >                      or
    > Using SMS Server Software distribution method.
    >                        or
    > Using Windows deployment server as Application package with OS
    in all three methods you can use the above command to install the package.
    And you can create you .msi package out of the Administration tool.
    Markus

  • How can Java program convert to .exe file which can run on window system?

    Hi,
    I am a new programmer, now I wrote a program on the Eclipse, and now I want to convert to .exe file and make the program can be run on other window office system PC.
    I had downed EXE4J software to make the program to .exe. BUT the exe file can not be run on other PC with the error message that warning the PC have not set up JVE. IS it necessary to set up JVE?
    OR give me your experience on how to do it?
    Thanks!

    >
    I am a new programmer, now I wrote a program on the Eclipse, and now I want to convert to .exe file and make the program can be run on other window office system PC.>If you only code for Windows, why not use dotNet or C# or whatever system MS is pushing at this instant?
    If you wish to code for computers, Java is good, but it needs a JRE.
    The easiest way to get a Java application up and running on a client PC is to launch it via. webstart, and to use deployJava.js to ensure the minimum Java is on the client PC, ready to use webstart.
    Used this way, you link to a web page where the user clicks a link that downloads and installs the application (and adds extras like splash screens, desktop integration, registration of interest in file types, automatic update..).
    As an aside. The best way to ensure answers is to indicate your interest in solutions, by adding a lot of Duke stars to a thread.

  • Convert abap reports into crystal reports

    Hi,
    We are trying to convert abap reports into crystal reports.We could convert these reports into XML files
    Now we want to create utility which will automate the conversion of XML files into RPT files of crystal reports.Later on we can refresh the data in reports by changing the datasource location.
    Can you please guide us whether it is possible and if yes how should we go about it?
    regards,
    shital

    Hi, i suggest, 2 technies to do this, the first one, you can use,
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
      EXPORTING
        APPLICATION            = 'C:\Program Files\crystalreports.exe'
      EXCEPTIONS
        CNTL_ERROR             = 1
        ERROR_NO_GUI           = 2
        BAD_PARAMETER          = 3
        FILE_NOT_FOUND         = 4
        PATH_NOT_FOUND         = 5
        FILE_EXTENSION_UNKNOWN = 6
        ERROR_EXECUTE_FAILED   = 7
        SYNCHRONOUS_FAILED     = 8
        NOT_SUPPORTED_BY_GUI   = 9
        OTHERS                 = 10.
    where, exe file could be, a crviewer.exe, and, use a parameters  ( on exe ) to indicate rpt file, or, define of standar mode, a generic name and put, xml file generated via abap, on  a repository, this way, rpt file, when launched, displaying file.
    the second choice, could be,  go SM69, click create. enter a command name 'ZCREXE', enter the path and the exe file name in operating system command field. You can call this exe from ABAP using SXPG_COMMAND_EXECUTE.
    i hope so that my answers help you.
    greetings.

  • Can we convert Java ByteCodes into Executable Independent Files?

    Hi there!
    I have been bragging to my clients the benefits of Java Applications, but one thing I couldn't convince them is the use of a JVM. They dislike the idea of downloading the JRE, and the slowness of programs running in an interpreter. I am stumped for not being able to satisfy their need for a .EXE program on their Win32 systems. And, it would be ridiculous to go back again to C++, after learning Java.
    Is their a tool or a way to convert .CLASS files into .EXE(Win32) files, to make it execute faster and independent? I know it would sacrifice portability, but I have to give in to demands. As they say it, "The customers are always right." Please, anybody out there, shed some light for me on this one. Thanx in advance.
    BlueKnyght.ph

    I have been bragging to my clients the benefits of
    Java Applications, but one thing I couldn't convince
    them is the use of a JVM. They dislike the idea of
    downloading the JRE, and the slowness of programs
    running in an interpreter. I am stumped for not being
    able to satisfy their need for a .EXE program on their
    Win32 systems. And, it would be ridiculous to go back
    again to C++, after learning Java. I'm not going to address the JRE distribution as it's already been mentioned and there are several ways of approaching that problem that you can find easily in the forum so I won't waste space for it here.
    What you need to address more than anything is the supposed slowness of java programs. The question at hand is slow as compared to what? In what context? A benchmark can be twisted to show whatever the author of the report wants it to show. Thus I tend to distrust such statistics in general due to the economical influence of the author or comissioner of the report being in the business of trying to sell something. Exactly what are they calling slow and what causes this perception on their part? I wouldn't sidestep the issue, or try to B.S. about it, but I'd be willing to bet that their fears are unfounded and based on superstition and hearsay.
    >
    Is their a tool or a way to convert .CLASS files into
    .EXE(Win32) files, to make it execute faster and
    independent? I know it would sacrifice portability,
    but I have to give in to demands. As they say it,
    "The customers are always right." Please, anybody out
    there, shed some light for me on this one. Thanx in
    advance.
    BlueKnyght.ph

  • Need to convert a long into a string, please

    hi there
    i need to convert a long into a string. can i just cast it like this:
    (String)longNumber = some function that returns a long;

    Why not just use Long.toString()? If you start with a long value, you can create a Long object and get it's value as a String.

  • Report for converting the documents into the PDF format.

    Hello Experts,
    I need to know if any report/ T-code is available in SAP to convert the files into  PDF format.
    We are processsong these PDF's then into IXOS system.
    Regards,
    Anna.

    Hello ,
    You may check with the below programs:
    Program name                   Report title
    RSTXCPDF                       Routines for Converting OTF Format to PDF Format
    RSTXPDF2                       Administration/Upload of type 1 and TrueType font files
    RSTXPDF3                       Customizing for OTF-PDF Conversion
    RSTXPDF4                       Help Report from CONVERT_OTFSPOOLJOB_2_PDF
    RSTXPDF5                       Help Report from CONVERT_ABAPSPOOLJOB_2_PDF
    RSTXPDFT                       Test report for PDF conversion - converting standard texts to PDF
    RSTXPDFT2
    RSTXPDFT3                      Test
    RSTXPDFT4                      Convert SAPscript (OTF) or ABAP Lists Spool Job by PDF
    RSTXPDFT5                      Test: GUI Download of Spool Request
    Regards
    Ramesh Ch

  • Im trying to convert a PDF into an excel document and I keep getting an error message that reads "An error has occurred while trying to access the service". WHat am I doing wrong?

    Im trying to convert a PDF into an excel document and I keep getting an error message that reads "An error has occurred while trying to access the service". WHat am I doing wrong?

    it seems my subscription had expired so I signed up again.. It was still having trouble so I repeated the sign up process again.. Then it worked perfectly.. Unfortunately, I think I just subscribed twice and need to cancel one of them. Ugh. Such a pain when I'm trying to get this project completed. I'll be canceling at least one of the subscriptions in the morning. Adobe is not my favorite company right now. None of this was intuitive. And trying to get help was an absolute waste of an hour.
    Regards,
    Nathaniel
    [removed by moderator]

  • I have an ipad 2 and want to put my dvds onto the ipad. i have converted the dvd into an mpeg4 file but cannot get it to open in i tunes does anyone know how i do this?

    i have an ipad 2 and want to put my dvds onto the ipad. i have downloaded handbrake and converted the file into mpeg4 file but i cannot get the file to open in itunes

    I have the same problem , i've converted my videos to mp4 , by using different programmes and tried to open them in itunes but it didnt .
    Some people suggested the following although it didnt help me , it might help you
    One suggested to paste the videos that you want in automatically add to itune (  go to your music folder m then click on itunes , then itunes media , and you will find it there )
    Others suggested to o to the ontrol panal , then programmes and features m then lick on quick time (. Or itunes) then Change then repair
    If it didnt help. And you find another method m please let me know
    Thank you

  • How can i convert an image into gif file as jpeg by using com.sun.image.*

    please help me to convert an image into gif format. i have used sun's impl com.sun.image.code.jpeg package to convert a buffered image into a jpeg file. is there any implementatioln available from sun to handle gif files.

    Many. Try for instance google with 'java image encoders'. Go to the URL http://www.google.com/search?q=java+image+encoders and be amazed of the wonders of modern web search tools.

Maybe you are looking for

  • Dell disks with Sun's storage array

    Hi, Does anyone know if its possible to use Dell's disk drives with Sun's StorEdge family of disk arrays. Specifically, the drive is a 300 GB 10K U320 SCSI disk http://www1.ca.dell.com/content/topics/reftopic.aspx/gen/ccare/en/ccare_confirm?c=ca&cs=C

  • Do third party external optical drives work with retina powerbook?

    do third party external optical drives work (read and write) with the retina powerbook?

  • How can I play Premiere Pro through headphones on a Mac?

    I'm using Premiere Pro CS6 on a Mac running OS X 10.9.4 on a Mac Pro (the silver tower version, not the newest one).  Premiere plays fine though the system speakers.  However I can't get it to play through headphones, plugged into the tower.  I've se

  • Button to hide/show regions

    I need to hide/show regions of a page based on when the user clicks a button. I have added the buttons to my page. I see there is a display condition section for the region. How can I tie them together to hide/show.

  • Printing 'material number' in vertical manner in smartforms

    i am printing a smartforms where in the output i have to print a variable in the vertical format.... how can i rotate the variable to print it in the vertical manner... please do help me out.... its very urgent.....