Tag Info

Hot answers tagged

48

Congratulations! You've come up against a problem that has stumped many a Windows user/admin. No, you cannot rename a task except for exporting, renaming and importing again. Yes, it's rather silly. Perhaps an enterprising scripter could create a simple PowerShell script that automates this, but until then, you're stuck with your export/import two-step. ...


3

If you're not interested in the output, you can use Ctrl-Z and then bg to run the task in the background, and then disown to stop the shell sending it a SIGHUP when you disconnect.


2

The simplest way would be to use a batch file that runs the first command with START /WAIT. E.g. start /wait spider.bat secondjob.bat The batch file will then pause and wait until the "spider" task finishes and then run your next script. (Or an executable, this will work for executables as well as .bat/.cmd scripts)


2

I mostly run php on *nix machines so not sure about this. Normally php scripts are run by the web-server when someone requests a page with some php in it. In your Server 2008 set-up your default action for .php may be set to another action (e.g. 'open file in editor') rather than 'run script using php.exe' You have to call up the php interpreter and use ...


2

You need to invoke php with your script as an argument: "C:\Program Files\PHP\php.exe" -f "C:\Path\to\your\script.php" The -f switch is from the linux version, but I believe it's the same for Windows; you'll also need to specify the correct path to php.exe, wherever that is.


2

There is a known bug with task scheduler that will cause it to run the same task twice from time to time. It happens when the previous scheduled task terminates exactly when the new task is supposed to start: the scheduler will then run the same task twice. There is a hotfix available there: http://support.microsoft.com/kb/2461249 When we ran into that ...


2

I take it from the fact you mention public folders, that you are using Exchange? If so you can use the free/busy features of Exchange to do this. It does have some problems, in that it will only show that a user is free or busy, not what they are busy doing. You can read more about it here.


2

It's unclear from your question whether the task is running as "LOCAL SYSTEM" or a local user that's a service account. If, the user is a local service account, not the system account, and the user is not in the Administrators group, then you'll need to make modifications to the security settings of cmd.exe - by default, the NTFS ACL only allows ...


2

Make a user account, set permissions so the task can run as that user (e.g. folder access permissions), run a command prompt as that user (runas /user:domain\user cmd) then from there try the task. When that's working, set the scheduled task to run as that user. Edit: this wont work until you take into account Shane Madden's reply about permissions on ...


2

I had a similar issue because my .cmd file was in C:\ (root). After moving elsewhere, it ran fine from the Task Scheduler. In some corporate environments, there are restrictions at the C:\ root level.


2

For reference the local admin account can be enabled during the TS as well, see the screenshot below: Now, for your command: I suspect that the command can only be run under the Full OS (as opposed to WinPE. I noticed in your screenshot you don't restart into the Full OS at all. Any SCCM packages (this includes command line commands that act on the Full ...


1

If this is a Windows Server 2008 - you can try the below from the Task Scheduler - You can then uncheck the days you dont want the task to run as I have highlighted in blue. I believe this is what you are looking for...


1

Well, One way I see to do this is to the task to end on a holiday, then have a second task starting on the next working day, and ending that task the next holiday. Rinse and repeat per holiday. The newer versions of task scheduler does seem to let you string events together, but I don't see any option not to run a task on a specific day.


1

IIS. Seriously. from home, from his smartphone, whateve A lot easier if you can rely on standard HTTP, no login, no requirement for a remote desktop front end. I'm concerned about securing IIS considering it will require being world accessible. Trivial. HTTPS, integrated security, everyon out except certain allowed people. course Remote ...


1

Maybe this help you tfpt query /collection:https://myserver:8443/tfs/Default "Project\My Queries\Android Bug&Change Request List for Release Notes" /format:tsv >c:\test.txt


1

To export the query to Excel, you need to initiate the command from Excel. Probably it is possible, but it is not easy. Another option is to create a PowerShell script or Console application that reads the result of the query and writes the result in a csv file. A last option is to use reporting services. You don't have a work item query then, but you ...


1

Try a pause in your script.You will then be able to read the problem. In my case, I got an access denied error, since the script started running in \windows\system32. So, after changing into the correct folder (cd), it worked.


1

For XP, 2000 and Server 2003 take a look at this MS article "the only way to schedule a task as the System Account is to use AT.EXE to schedule the task" http://support.microsoft.com/kb/223375 For vista and 2008 this may help http://stackoverflow.com/questions/77528/how-do-you-run-cmd-exe-under-the-local-system-account


1

A similar BAT works just fine for me when running via task scheduler on my XP machine. I would not focus on the BAT itself and look into the task scheduler. Revise your question to includes the log from task scheduler - you'll probably find an issue with passwords or something. Also, include all the details of the task itself - who it's running as, etc. What ...


1

I ended up doing this with a batch file, and setting it to run via Task Scheduler. Here is the batch file if anyone is interested: @echo off set RETENTION_PERIOD_DAYS=30 set FILE_BASED_ARCHIVES=g:\shares\public\crashes set DIRECTORY_BASED_ARCHIVES=g:\shares\results set MINIMUM_FILESIZE=1000000 set ZIP_PATH="c:\Program Files\7-Zip\7z.exe" if not {%1}=={} ...


1

Please be sure before you answer "Cannot do this", "Impossible", etc. Check out this power shell script.


1

Unfortunately not. That's the way this is done now. I believe it's for security purposes, so that set tasks cannot be modified while they are actually setup and enabled.


1

If you can, run your php script locally (as SmallClanger suggests); create a .bat script so you link this .bat into task scheduler. If you must call the php page remotely, create always a bat script with this line: "C:\Program Files\Internet Explorer\iexplore.exe" www.yourdomain.com/page.php If you want to close the Internet explorer windows, try with ...


1

It's intended to identify that those other items have not been set. Some organizations may have a person responsible for setting priority, classification, etc... Triaged would indicate to a developer that those items have been properly evaluated.


1

Tasks need to open a CMD window and pass net use commands, then do a DIR command, pipping the output to a file on the server You can't map drives if you aren't logged into the box. Try modifying your script so that it does a directory listing on the UNC path, that should work fine.


1

By far the easiest and most reliable way is to add the currently scheduled task to the start of your batch file and then run that batch file via the task scheduler instead.


1

Steps: In Active Directory create a domain local group "Application Group" In Active Directory create a global group "Application Users" add the Application Users global group as a member to the Application Group domain local group. In Active Directory, add as members the users who need access to this application to "Application Users" On the server give ...


1

The psexec answer from grub seems like a good choice for a quick&dirty solution. You can probably push it to desktops as a batch script. You could also consider wrapping the command into a simple CGI webapp. Basically a page with a single form & a few buttons which accepts parameters (if needed) an launches your exe. People love webapps :-).


1

Are you talking abozt a windows server and widnows workstations? Maybe you can use psexec from sysinternals: http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx you can exetue a command on the remote server psexec -u domain\user -p pass \\server command



Only top voted, non community-wiki answers of a minimum length are eligible