• Home
  • About me

Christopher Dargel's Exchange and Windows Blog

I created this blog to generate a collection of useful tips, tricks and links for me and for sharing these with others. This blog will deal with various topics of Microsoft Backoffice software like Microsoft Exchange, Microsoft Active Directory Services and other Microsoft Infrastructure related topics. I hope this blog will grow to a collection of knowledge which will make admin’s day more comfortable and easier. Comments and revisions are welcome.
Stay updated via RSS

  • Search the blog

  • Recent Posts

    • Change Windows 2012 Server Edition
    • Hooray! Exchange 2016 RTM released!
    • Apply PersonalTags to CustomFolders – Exchange 2013
    • Office 365 Directory Synchronization – Feature Comparision
    • Exchange 2016 Architecture – EHLO
  • Top posts

    • Remove (legacy) Exchange server using ADSIEdit
    • Complete remove Exchange 2013 using ADSIEdit
    • Remove public folder using ADSIEdit
    • Remove CAS Array with ADSI Edit
    • FSMO Roles in Active Directory Database ADSI
  • Tag cloud

    365 2003 2007 2010 2013 2016 access active activesync ADSI adsiedit bulk cannot Cleanup coexistence cross dag database default delete directory Edit ems error exchange fails file folder force full group installation legacy mail mailbox mbx messagetracking migration move OAB office ou out outlook overview OWA PAck partition permission permissions powershell public release remove replication ressource retention rollup rtm schedule schema script server Service size SP SP2 sp3 system task transport update user Version Windows
  • Categories

  • Meta

    • Register
    • Log in
    • Entries feed
    • Comments feed
    • WordPress.com
  • Enter your email address to follow this blog and receive notifications of new posts by email.

  • RSS Exchange Team Blog

    • An error has occurred; the feed is probably down. Try again later.
  • RSS Stephan’s Microsoft Blog

    • An error has occurred; the feed is probably down. Try again later.
  • RSS Bechtle Blog

    • An error has occurred; the feed is probably down. Try again later.

Task scheduling a batch command

Posted: August 21, 2012 in Info, Windows Server
Tags: 2008, angemeldet, aufgaben, aufgabenplanung, batch, login, nicht, planung, r2, robocopy, schedule, server, task, Windows
0

Hi,

if you ever would start a batch command by Windows task scheduler you might wonder, why the command isn’t executed if noone is logged in. I run in this issue while migrating a file server. I wanted to do a synchronize job every night but scheduling only succeeded when I was logged in.

If you want to do this automated without login, you’ve to pass the commandline as parameter in the “Action” section:

Action: Start a program
Settings: program / script: “C:\Windows\System32\cmd.exe”
Add arguments (optional): /C C:\batch.bat”

Cheers,

Chris

Share this:

  • Twitter
  • Email
  • Facebook

Like this:

Like Loading...

Related

Leave a Reply Cancel reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

You are commenting using your WordPress.com account. ( Log Out /  Change )

Google photo

You are commenting using your Google account. ( Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. ( Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. ( Log Out /  Change )

Cancel

Connecting to %s

Windows 8 RTM – Upgrade
Next Post

Blog at WordPress.com.
Cancel
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
%d bloggers like this: