Command at the command prompt to schedule tasks?

Hello

I'm hoping to network two Windows PCs together, an XP and Win 7, in a homegroup and using the XP computer as a backup for files that I have worked on throughout the day.

For the moment, the XP computer, which has a hard drive of several hundred GB, is inactive.

However, what I didn't do, is copy a file after the other every day to the XP computer: a Word document, a picture, a movie, then another Word document, then a Notepad file, etc.

I understand that I can use the command line command to tell Win 7 to automatically copy all files worked during the 24 hours, every 24 hours to my XP computer. I guess I would need to write a script of backup for this copy and overwriting of files on the XP computer, but I don't know how to do this.

Any advice, please?

Thank you

Did you read this in my first reply here?

Here is a guide to the networking of the different editions of Windows:

"Networking of computers running different versions of Windows.

http://Windows.Microsoft.com/en-us/Windows/networking-home-computers-running-different-Windows#networking-home-computers-running-different-Windows=Windows-7

Tags: Windows

Similar Questions

  • Running Powershell script with ESXCLI commands via a scheduled task in Windows 2012 does not work.

    I'm trying to run a powershell script of a scheduled task in Windows 2012. The script calls the commands ESXCLI and ends with success (exporting to a CSV file) but the file has no data inside.  If I run the script manually without the scheduled task file has all the I expect to exit.

    I wonder if there is a framework with Powershell or a PSSnapin I need to add to the script for it to run via a scheduled task.  Has anyone done this before with the ESXCLI commands?

    panhvr - you may to something.  The process account that I use to run this script has only read-only access in vCenter.  I logged on the server I am running these reports with the process ID and tried to run the script.  He gave me errors indicating permission to perform the operations of esxcli was denied.

    I think we found the culprit!  I'll have this process ID in vCenter rights upward.

    Thank you all!

  • Access to the content of the problems and configuring scheduled tasks

    Hi all!

    I am new to the community. IM an apprentice in the last year. I'm working with vmware esx / vsphere since August 2009.

    In December 2009 I started to script powershell and powerCLI.

    Maybe someone can help me, I searched for a long time, but I do not know how.

    I have a small script that takes you through some menus. There you can select the data center, the template and insert the name of the virtual machine. Data warehouses and the host or a cluster will automatically get to deploy. In the end, the script creates an INI file like this:

    vmname = test

    Location = VENV40

    Model = w2k3eesp2x32_template

    Cluster_Host = adcv43e.xxx.yyyy .net

    DatastoreSystem = esx40_nfs01_SystemDrives1

    DatastoreSwap = esx40_nfs02_SwapDrives1

    VCenterVENV = xx.yy.xx.yyy

    Now to my problem. The second script should be an infinite loop, looking if there are a few new INI files.

    Due to our policies, we can only deploy during the night (storage overhead). We have 3 "slots".  to 01:00 to 03:00 and 05:00, where we can deploy a virtual machine.

    The second script should get the regular deployment of the Vcenter task and check if there is a "slot" to deploy, if not, check the next night and so on.

    My problems are:

    I can not only the deployment task

    The departure time you have a time difference in the vcenter? (eastern daylight time?)

    When I got the available task, how to create a new one with the Ini file information?

    Someone at - it an idea?

    That's what I have so far. It was just to try if I can get the scheduled task

    1. --------------------------------------------------------------------------------------------

    2. Force load (otherwise VMware.Vim items are not known)

    http://Reflection.Assembly: LoadWithPartialName ("vmware.vim")

    CLS #clearscreen

    $svcRef = new-object VMware.Vim.ManagedObjectReference

    $svcRef.Type = 'ServiceInstance.

    $svcRef.Value = 'ServiceInstance.

    $serviceInstance = get-views $svcRef

    1. This returns a MoRef scheduled task manager

    $schMgr_ref = $serviceInstance.Content.scheduledTaskManager

    1. This returns the actual scheduled task manager object

    $schMgr_obj = get-views $schMgr_ref

    1. The method must be called on the object

    2. The method requires 1 argument.

    3. As the API Ref stipulates that when the parameter is Null, the method will return

    4. all scheduled tasks

    $foo = $schMgr_obj. RetrieveEntityScheduledTask ($null)

    1. The method returns an array of task object references

    {foreach ($task in $foo)

    $infos = (get-view $task) .info

    $taskname = $infos. Name

    $taskdate =($infos.) Scheduler). RunAt

    $task = "$taskname", "$taskdate".

    }

    #----


    Thanking you in anticipation.

    I am looking before I heard you and sorry for my bad English

    Greetings PowaCLI

    There are two problems.

    (1) the property $cloneSpec.Location.Pool must a resourcepool pint. In the script below I took the default value (and hidden) resourcepool called Resources.

    (2) the $spec. Scheduler property must be one of AfterStartupTaskScheduler, OnceTaskScheduler, RecurrentTaskScheduler.

    You will probably need to put the $spec. Scheduler.runAt to the property a value if you want to avoid the task starts immediately.

    $taskName = "Create new VM"
    $taskHours = 1,3,5
    $iniPath = "D:\__IPA_PowerCLI_VM\INI\"
    
    Connect-VIServer 10.11.4.209
    
    $si = Get-View ServiceInstance
    $schedMgr = Get-View $si.Content.scheduledTaskManager
    
    $scheduled = @()
    $schedMgr.ScheduledTask | %{Get-View -Id $_} | %{
         if($_.Info.Name -like ($taskName + "*")){
              $scheduled += $_.Info.NextRunTime.ToLocalTime()
         }
    }
    
    $now = Get-Date -Minute 0 -Second 0
    if($now.Hour -gt $taskHours[-1]){
         $now = $now.AddDays(1)
    }
    
    $iniFiles = Get-Item ($iniPath + "*") -Include "*.csv"
    foreach($iniFile in $iniFiles){
         $params = Import-Csv $iniFile  # -UseCulture
         $notScheduled = $true
         while($notScheduled){
              $taskHours | %{
                   $schedTime = $now.Date.AddHours($_)
                   if(!($scheduled -contains $schedTime)){
                        $spec = New-Object VMware.Vim.ScheduledTaskSpec
    
                        $spec.Action = New-Object VMware.Vim.MethodAction
    
                        $arg1 = New-Object VMware.Vim.MethodActionArgument
                        $arg1.Value = New-Object VMware.Vim.VirtualMachineRelocateSpec
                        $arg1.value = (Get-Folder vm| Get-View).MoRef  # (Get-Folder $params.Location| Get-View).MoRef
                        $spec.Action.argument += $arg1
    
                        $arg2 = New-Object VMware.Vim.MethodActionArgument
                        $arg2.value = "TESTVM"
                        $spec.Action.argument += $arg2
    
                        $cloneSpec = New-Object VMware.Vim.VirtualMachineCloneSpec
                        $cloneSpec.Location = New-Object VMware.Vim.VirtualMachineRelocateSpec
                        $cloneSpec.Location.Datastore = (Get-Datastore qesx00_nfs01_SystemDrives1| Get-View).MoRef
                        $cloneSpec.Location.Pool = (Get-cluster QVENV00_Cluster00 | Get-ResourcePool Resources  | Get-View).MoRef
    
                        $arg3 = New-Object VMware.Vim.MethodActionArgument
                        $arg3.value = $clonespec
                        $spec.Action.argument += $arg3
                        $spec.Action.Name = "CloneVM_Task"
                        $spec.Description = "Test"
                        $spec.Scheduler = New-Object VMware.Vim.OnceTaskScheduler
    
                        $spec.Enabled = $true
                        $spec.Name = $taskName + " " + $now
    
                        $entity = Get-Template IPAtestmaschine_Luca | Get-View
    
                        $schedMgr.CreateScheduledTask($entity.MoRef,$spec)
    
                        $notScheduled = $false
                   }
              }
              $now = $now.AddDays(1)
         }
    }
    

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • Can we prevent the popup Scheduler task Service at the start of the system for a scheduled task to run periodically?

    When I have any task scheduled to run periodically (for example, daily, weekly), the Task Scheduler Service dialog box always appears on the logon screen if the computer was turned off at the time of day the task should run. From my experiences, it seems as the process that determines a spot missed his scheduled time does not consider that the PC is turned off. There seems to be no way to prevent this. Even when a task is scheduled to run at the system startup and periodically, the dialog box appears when the login screen appears.

    This analysis is correct?

    I have three tasks in Task Scheduler. I didn't know anything about the task scheduler until I started having the popup. The first time I looked at Task Scheduler these three tasks have been implemented as follows.

    Adobe Flash Player Updater - Annex: every 1 hour (s) 03:05 for 24 hour (s) on every day...

    GoogleUpdateTaskMachineCore - Annex: Run when the user login

    GoogleUpdateTaskMachineUA - Annex: every 1 hour (s) 20:51 24 hour (s) on every day...

    I have no idea how or when it has been implemented in this way, but I only started to receive this dialog box by the end of 2011. Would it have happened during an Adobe Flash Player update or update of Google?

    I changed the calendar. I've now set up three tasks to run at startup of the system. The popup appears now. Is there a reason why I have to trigger these tasks once per hour?

    CSF

    You don't need these tasks scheduled at all.

    You can go to each site and look for updates when you want.

    If you have installed google something he will continue to try to catch up, and if you have installed adobe you can disable automatic updating.

  • IOM - understand the operations of the user - a scheduled task

    Hello

    Could someone here explain what means this task?
    The manual says:
    This scheduled task performs the operation specified by the UserOperation attribute on the user specified by the attribute UserLogin account

    Anyone here have an example scenario that this task could be useful?

    Concerning
    HH

    Pretty simple. This Scheduler is used to perform actions on the user IOM account according to a predefined schedule. This means that you can perform the actions ENABLE, DISABLE or DELETE any user of IOM. And the attribute values can be:

    UserLogin - IOM User Login
    UserOperation - ENABLE

    The scheduler run above will allow the user if the people with reduced mobility. Now the utility part. Consider the following use cases:

    (* 1) * cancelled at any user tell User001 you and that you want to disable this user and all resources provisioned at 18:00 hours once he finished all the work desktop, and if you turn off the user to the user to disable the button the user directly and all of its resources would be left immediately. So you can assign to this scheduler to run at 18:00 hours, with values User001 and DISABLE

    (* 2) * you're a Helpdesk guy / IOM and Director of IOM does not want you to have access to the item of menu users because he doesn't want you to have a look at the personal data of the user IOM but he want always that you can actually run enable - disable actions on IOM. In this case, that it will give you access to the menu item manage schedule the task so that you can perform the daily activity of the operations. It is a solution for the use case.

    Thank you

    Sunny

  • services that run via scheduled task

    Hi all

    I am creating a task scheduled to start/stop services. the scheduled task must be run under the service account with minimal rights, as rights of the user or the user rights of maximum power.
    I created the scheduled task running under the account of service with power user rights to stop a service, but unfortunately the task was doing what it suppose to do.
    I did some troubleshooting and investigated as shown below:
    1. I used the runas command to run net stop under the service account that runs the scheduled task, the service is stopped, as it is assumed
    2. I connect to the server using the account service and disconnected (the session will be shown in the disk for the service account) and at the same time open a session to the server with a different account performed the scheduled task, the task does what it is supposed to do. (the service is stopped)
    Note: the scheduled task is set to enabled (scheduled task to run at a specified time)
    3 when I changed the rights on behalf of rights of administrator power user rights service and perform scheduled task, the task runs correctly and does what he must do.
    4. the service was set to be managed by the user with power, which means that if a user opens a session on the server and try to start/stop the service, he will be able to action and is successful.
    my questions will be as shown below:
    1. to start/stop the service via a scheduled task, the service account needs a session to be able to perform the task?
    2 must. the service account the highest privileges to perform the task?
    3. is there a way to avoid to run the scheduled task to run with minimum privileges? What kind of things need to be done.
    Thanks in advance for your answer.

    I would look at the link below.  This should answer all these questions.

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/sag_tsconcepts03.mspx?mfr=true

  • manages scheduled tasks has stopped working and was closed

    Lately I get this error message often when I start using my Vista PC (Vista Business SP2) in the morning: "manages scheduled tasks has stopped working and was closed".

    And this morning the automatic update of Windows Defender definitions also could not install (so I would be dnld and installed).  Set to automatic update referred to 'unknown error' (8 and 57, I think).

    FYI, sfc/scannow reported no integrity violoations with system files.  I also reconfigured my PC there is to make sure that it is clean, fresh and perfectly up-to-date before reinstalling all my apps, and it's been updated for about 2 months then.

    How this application problem "manages scheduled tasks" can be fixed?  If you don't know, where can I get an answer?  Neither Google nor Bing seem to show any reference to the exact phrase "" manages scheduled tasks has stopped working stopped working '. "

    Craig in New Jersey

    Update 7/22: I'm starting to suspect a problem of interactions between turn off Vista and [printer] HP Digital Imaging Monitor.  I tried to disable it via msconfig, a couple of days and have not seen the mistakes regularly ever since, but the jury is still pending for another week or two.   I'll report after awhile.

    It is too early to point a finger because we know that all of them have well worked normally in the past and they seem equally at risk of corruption.  For example, I have no these errors when you use the same software HP on my Win7 PC and I don't have these errors for a few months after that the reconstruction of my Vista laptop, so I'm suspecting some piece of software has become corrupted (something in Vista), or something the tracking software program, some windows or component or registry setting software execution to one who relies on the HP printer.

    Craig in New Jersey

    Update 7/27 edit: Since disabling component HP Digital Imaging Monitor (hpqtra08.exe) drivers HP printer/scanner more than a week ago, I have not seen error messages 'has stopped working and was closed"breed, and Windows Update seems to operate normally.

  • How to make a scheduled task to close after 5 minutes?

    I have a program that should run for a minute or two, but sometimes crashes.  I created a scheduled task to run every hour, 10-minute course.  Everyonce in a while, however, he crashes and prevents it from running again the next time.  How can I stop the program after 5 minutes?

    Hello

    1. Are what program you referring?
    2. What scheduled task you are trying to run for each hour, 10-minute courses?

    You will get an adjustment to close the task if it runs for more than an hour.

    I suggest you try these methods and check the status of the issue.

    Method 1:

    I would say allows you to delete a scheduled task, restart the computer and re-scheduled task and check the status of the issue.

    Schedule a task.

    http://Windows.Microsoft.com/en-us/Windows7/schedule-a-task

    Method 2:

    Keep the computer in a clean boot and check the status of the issue.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7.

    http://support.Microsoft.com/kb/929135

    Note: Please, go to step 7 of the Kb to maintain the computer to a normal startup after you fix the problem.

  • Photos with scheduled tasks

    Hi all

    I'm trying to find a script that will create a scheduled task to take snapshots of a text file at a specific time. The file of text being the names of the virtual machines.

    Any help will be be created.

    What I meant is that you can use the same concept of scheduled task to launch a script.

    In this script, you can read the file with the names of virtual machine and create a snapshot for each of them.

  • Error in a scheduled task in CF 10 Standard Edi.

    Hi team,

    Currently, we are facing a problem in the options of the scheduled tasks in ColdFusion 10 while we try to schedule tasks. We use the same installation successfully in ColdFusion 7 Standard edition to date and calendar tasks works perfectly in this version.

    Also the same option of scheduled task we have successfully tested in trial version of 10 CF (developer edition) before we bought the license. Once we have updated with the Standard license all annexes have been removed from the list we have planned in the Evaluation Version, and when we tried several options to create new tasks, we continued to get the following message

    • An error occurred scheduling the task.

    Advanced planning support not available in this edition of ColdFusion server.

    Also as we checked it under CF 10 updates server, there are no available updates are the list. Please let know us is a solution to this issue.

    Best respect

    Mallet

    Hi Mallet,

    It has been fixed in ColdFusion 10 1 update, please check if you have installed updates to ColdFusion.

    Kind regards

    Priyank

  • Call several files of unique ColdFusion scheduled task


    Our host allows us only to have 5 jobs scheduled per account, but we need run cfml applications to import data from several sites (at least 15 process).  What I want to do is to combine all "sample applications" for all sites in a scheduled task that is running to succeed them as well to reduce the number of necessary scheduled tasks.

    We use ColdFusion to connect to a MySQL database to collect all sample applications. First the application retrieves all records without indicator from a remote database, then starts a loop through all the records returned. In the loop of each, the app "scrubs" the data by correctly formatting phone numbers, abbreviations of address setting, etc. The application stores data rubbed on a local MS SQL table then start the loop on the next row. Finally, the application sends an email saying that it has completed successfully.

    What I'm trying to do is to create a new Parent application that will run as a scheduled task to do the following:
    -New Parent App works as a scheduled task and calls / includes first X example application app files
    -New Parent App works first sample app request as described above (which can take up to a minute to process)
    -App parent waits until after the first sample application request completed, then App Parent continues in second request sample app, etc.
    -After all sample requests are complete email new App sends completion with date and time

    The problem I have is the scheduled task to wait apppage1.cfm finish before loading apppage2.cfm and so on. Can you give me a simple set of code that accomplishes this mission?

    I've attached an example of the page include the needs to complete before moving on.

    Our approach is a little more complete.

    First of all, (which means my work colleagues) wrote a custom tag that does something like this:

    Error log

    Then our real planned work do it like this:

    a very long deadline (and none of the real jobs can have their own timeout)

    set some variables

    Use the tag customized for each job we want to execute

    Send a message if an error occurred.

  • Can I stop or restart the Task Scheduler service from the command prompt in Windows 2008 service?

    I'm on Server 2008. I have a scheduled task that is not working properly. I went to Services, and I see that it is configured to start automatically and it is actually being run. The problem is that I can't stop, pause, or restart the service. Y at - there a command I can run that can stop or restart the service?

    Why not with the right button of the job itself in the Task Scheduler, and then stop it?

    There are several methods to stop the Task Scheduler service that. Here's one of them:

    1. Create a task scheduled, called 'StopScheduler' as follows:
      -Triggering factor: at boot time
      -Command: sc.exe
      -Settings: time stop
      -User: System
      -Run with the highest privileges.
    2. Right click on the task of StopScheduler, and then click Run.
    3. Solve your tasks.
    4. Restart the Task Scheduler.
    5. Disable or remove the task StopScheduler.
    Note also that this forum focuses on the issue of Windows 7 in a domestic environment. There are dedicated forums for Server 2008.
  • How to create an image system to the command prompt?

    I need to create an image of 'system' and I can't have accdess Wizard "backup and restore".

    Hi princesscontino,

    Thanks for the question.

    (1) what exactly happens when you try to access Wizard backup?

    (2) there was recent changes made to the computer before the show?

    (3) you have other programs of backup of other third-party backup programs?

    You can configure Windows backup to run any way you want and also to create a task in Task Scheduler to run the weekly wbadmin command to create the system image. For the sup of wbadmin commands, see http://technet.microsoft.com/en-us/library/cc754015 (WS.10) .aspx

    You must run wbadmin from an elevated command prompt. (To open a command prompt, click Start, right click Guest and then click Run as administrator.

    "Wbadmin" command line utility and the utility is available only in Windows Vista Business, Enterprise and Ultimate editions and not in the Home Basic or Home Premium editions.

    You can also check: http://windows.microsoft.com/en-US/windows-vista/Back-up-and-restore-frequently-asked-questions

    Please report if you are still having the problem. I will be happy to provide you with the additional options that you can use to get the problem resolved.

  • Pavilion Elite HPE-170 t: need help with the result of a command prompt to Power Options

    I have recently upgraded to Windows 10 in Windows 7.  Like so many thousands of people, I problelms of sleep mode.  Mine will not be auto-sleep.  It has been suggested that I saw to run command prompt: powercfg-applications

    It supposedly will list the items running on your computer which can now be auto-sleep to work.  I tried several times and up to now, I get the same item displayed each time.  This is what is displayed: \device\harddiskvolume2\windows\sysWOW64\svchost.exe (hpqddsvc) is followed by this message: a file delete operation is underway

    My first thought is that if there is an operation to remove file in progress all the time, it's maybe the reason why my computer is not auto-sleep.  If there is someone out there who can shed some light on this situation, I would appreciate the help.

    EUREKA * SOLVED

    I found the answer to my problem!  After using the control system: powercfg-query and get the answer: \device\harddiskvolume2\windows\sysWOW64\svchost.exe (hpqddsvc) delete file operation is in progress

    I started looking for whatever it is associated with the answer above.  In the Manager of tasks in respect of the services, I found the name of the file hpqddsvc, with a description of HP CUE DeviceDiscovery Service was running.  When I stopped the task and re-tried in opt power standby mode, it worked correctly.  In the Configuration of the system (by typing msconfig at the run prompt) on the Services tab, I unchecked the box for HP CUE DeviceDiscovery Service and rebooted the computer.  The service is no longer running.

    I'm sure that this Service has been added to my computer when I downloaded the hp.com/support product detection tool .  The tool scans your computer to detect and identify HP products.

    This can be useful to others who have the problem of the auto-sleep I've had.

  • my command prompt has been disabled by the administrator

    I want to fix this problem.

    Message: "the command prompt has been disabled by your administrator".

    When you try to run CMD.exe or a batch file, you may receive the message "that the command prompt has been disabled by your administrator ". This is caused by the restrictions placed on the registry. DisableCMD value is set to 1 or via Group Policy. To enable the Task Manager, try one of these methods:

    Method 1: Use the console Registry tool

    • Click Start, run and type this command exactly as shown below: (best - copy and paste)

    Tracking Add HKCU\Software\Policies\Microsoft\Windows\System v DisableCMD /t REG_DWORD 0 f d

    Method 2: Modify the registry directly

    • Open the Publisher of the registry (Regedit.exe) and navigate to:

    [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System]

    • In the right pane, double-click DisableCMD and set its data to 0

    Method 3: Use the Group Policy Editor in Windows XP Professional.

    • Click Start, run, type gpedit.msc and click OK.

    • Navigate to User Configuration-Administrative Templates-System

    • Double-click the prevent access to the command prompt

    You can then disable or set the not configured policy. Disabling or setting this policy unconfigured should solve the problem.

    If you face any problem, let me know.

    K M JAI Support general (INDIA)

Maybe you are looking for

  • Satellite A30 213: Internet Wi - Fi, USB and Touchpad drivers needed please

    Hello Recently, I restarted my pc, but have not used the application supplied with the pc CD. Now my internet connection is not installed, then the light does not illuminate, and my Touchpad is not scrolling features. My USB 2.0 speed is also slow. I

  • Dualview on 2 external displays Satellite P100

    I just bought a Satellite P100 to replace my desktop computer is waiting for that, since it has two outputs for external monitor I could drive two external monitors simultaneously using DualView. It would seem that I have either: Internal display + d

  • Problem chart yoga 900

    Hello I met an annoying problem with my 900 of Yoga. the display is frequently glitching... or can say turning off & on less than a second. can anyone here help me how I can solve this problem? I tried to reinstall the graphics driver. but he said it

  • Looking for fonts, BC C39 3-1 HD Wide (C39HDW3. (TTF). Any suggestions?

    I'm looking for a barcode font: BC C39 Wide 3-1 I think it's the file name is C39HDW3. FTT Is there a way I can find this through Microsoft, or otherwise buy this font? Thank you The f

  • But key issue

    Hello We bought a Cisco ASA 5505, was broken and must be sent to cisco for repairs. When he returned to us encryption AES to 3DES en did no more work. I type in the CLI of show-activation key and it is the output: The devices allowed for this platfor