Questions tagged [task-scheduler]

319 questions
1
vote
0 answers

Do I need to have identical user account on different domains to run a net use command via batch script?

I have a Task Scheduler task that runs a batch file which copies a file from server1 to server2 on a different domain. Note:The scheduled task is running on Domain_A using user accounts created to run auto processes. Task Scheduler Task: Run under…
1
vote
1 answer

Task under SYSTEM won't run Win Srv 2k8R2

My company has a software that updates our installers on clients' servers. During the setup, a environment variable is created along with a task with the following lines: Variable: setx ccloud "C:\Capela\CCloud" /M Obs.: the path used is the…
1
vote
1 answer

Windows task scheduler - can't get PS script to get-eventlog from servers over network, only local server

In a 2008 R2 server, I have a Windows task that executes a PowerShell script that uses Get-EventLog to get Windows event logs from the local server and also from servers over the network. When running the script manually from the PowerShell command…
1
vote
1 answer

How to run a Windows Task that executes a PowerShell script as the Windows Local Service account

On a 2008 R2 server, I have a Windows task that executes a PowerShell script. It works fine when set in Task Scheduler to execute as an Admin account, but I'd like to set it to execute as the Windows Local Service account instead as I'd read that…
1
vote
1 answer

Trigger task after DataCollection with perfmon

In performance Monitor, I'm looking for a way to compress my data collection (*.blg file) when the collection has reached the stop condition. Looking at the "Data Collector Sets" properties there this task tab which seems to perfectly fit my needs,…
1
vote
2 answers

Task Scheduler -- how to expand /export the "Show Active tasks" window -- Windows server Enterprise Edition 2007:

For the Task Scheduler -- how to expand the "Show Active tasks" window -- This is for Windows server Enterprise Edition (release date: 2007). Is there a way to export the data to a .csv file or something similar?
JosephDoggie
  • 229
  • 2
  • 4
  • 14
1
vote
0 answers

How to create a scheduled task to run on system startup(without user logging in) in Windows server 2016 azure vm

I have a windows server 2016 server in Azure which is mainly used for running a few scripts. I want to create a schedule where a script should run at the system startup(around 3-5 mins delay is also fine, not more) I had tried task scheduler with…
1
vote
1 answer

Task Scheduler Arguments

Are there any parameters defined for Task Scheduler arguments? Specifically, I'd like to send in the current location of the task. For example: If I've got a task under Task Scheduler Library > My Application > Folder Name, I'd like to send Folder…
zimdanen
  • 121
  • 1
  • 7
1
vote
1 answer

PowerShell script running from scheduled task: action failed to start, directory name invalid

I have a Windows Server 2012 R2 server running a scheduled task with three actions, each running PowerShell scripts: Each of these actions "starts in" the relevant (and correct) directory: Originally, the third action - ApplyABPs - was set up in…
1
vote
2 answers

PowerShell New-ScheduledTaskTrigger requires user input?

I'm trying to add a Powershell script to task scheduler to run on a regular basis. Import-Module ScheduledTasks $scriptFilePath = "C:\hello-there.ps1" $action = New-ScheduledTaskAction -Execute "PowerShell.exe" -Argument "-File $scriptFilePath…
chester89
  • 111
  • 6
1
vote
1 answer

Windows Task Scheduler: Why is the minimum frequency once per minute?

The Windows Task Scheduler will not allow you to run a task more frequently than once per minute. To get around this we can set up multiple triggers to run the task every minute but with staggered start times. While this works, it does feel like a…
AGB
  • 113
  • 1
  • 5
1
vote
1 answer

Where do initial task/kernel/cpu scheduler values after cold boot come from in Linux?

This question is related to a former one, which contains the full background of my problem. The summary of that background is that I have two almost identical VMs and one of those is scaling very badly under some CPU intensive workloads with I think…
1
vote
3 answers

Issues deploying a Scheduled Task through GPO

I am having trouble deploying a Task to all the workstations in my environment. I am trying to setup a simple task that reboots at a specific time; In my research on trying to accomplish this, I have created a basic task using NT AUTHORITY\SYSTEM…
1
vote
1 answer

What permissions are needed for Register-ScheduledTask?

I have a PowerShell script that runs under its own user account for security purposes. It needs to be able to schedule tasks as part of its operation, and uses the ScheduledTasks module to do so. After seeing this question on SO, I granted the…
1
vote
1 answer

What happens to Task Scheduler if User has no permission?

I've a little question: Lets say I have a Windows 2012 Server where I created a Scheduled Task with my Useraccount. I selected the option "Run this task even if user is not logged in" - so I don't have to be logged in the server that the task…