How to install ScheduledTasks module in Windows 7

Is it possible to install this module that comes with PS v3.0 ++ on an OS other than Windows 8 and Windows Server 2012?

I know all the alternatives to PS, but none of them are as complete as the mentioned module (PowerShell Pack TaskScheduler, ScheduledJobs, schtasks, etc.)

He ignores the logic that such an important module cannot be installed on older systems.

+3
powershell
source share
2 answers

You were unlucky. See explanation here . I will put the part for completeness:

The long answer is that you cannot, because, for the most part, these modules are based on the CIM (WMI) classes that were introduced in Windows 8 or 8.1. Many of the system management features that you see in modern Windows are based on CIM classes, which then use the CDXML approach to create PowerShell modules. Installing new CIM classes on Windows 7 is not possible - therefore, you cannot get the modules on which they are based.

+6
source share

check this guys simple batch file, it works on windows 7 without powershell and saves everything as xml and imports back as xml

If you export and import only on a Windows 7 PC, replace the line that has

del tasks\#Microsoft*.xml 

from

 rem del tasks\#Microsoft*.xml 

Scheduled tasks export all

Here is the code if the link goes down

  rem @echo off cls setlocal EnableDelayedExpansion set runasUsername=domain\administrator set runasPassword=password if %1. == export. call :export if %1. == import. call :import exit /b 0 :export md tasks 2>nul schtasks /query /fo csv | findstr /V /c:"TaskName" > tnlist.txt for /F "delims=," %%T in (tnlist.txt) do ( set tn=%%T set fn=!tn:\=#! echo !tn! schtasks /query /xml /TN !tn! > tasks\!fn!.xml ) rem Windows 2008 tasks which should not be imported. del tasks\#Microsoft*.xml exit /b 0 :import for %%f in (tasks\*.xml) do ( call :importfile "%%f" ) exit /b 0 :importfile set filename=%1 rem replace out the # symbol and .xml to derived the task name set taskname=%filename:#=% set taskname=%taskname:tasks\=% set taskname=%taskname:.xml=% schtasks /create /ru %runasUsername% /rp %runasPassword% /tn %taskname% /xml %filename% echo. echo. 
0
source share

All Articles