- 1 year ago
Get-ScheduledTask command does not work in Windows Server 2008 R2
The Get-ScheduledTask
cmdlet is not available in Windows Server 2008 R2 because it is introduced in Windows Server 2012 and later versions. In Windows Server 2008 R2, you can use the schtasks
command-line tool to manage scheduled tasks.
To get a list of scheduled tasks using schtasks
, you can run the following command in the Command Prompt:
bashschtasks /query /fo LIST
This will display a list of all scheduled tasks on the system along with their details.
If you prefer using PowerShell, you can use the Get-ScheduledTask
cmdlet on a Windows Server 2012 or newer system. However, keep in mind that PowerShell cmdlets might not be available in older Windows versions.
For managing scheduled tasks on Windows Server 2008 R2, you'll need to use the schtasks
command-line tool or use the Task Scheduler GUI available in the Administrative Tools.