title: Powershell 4 Get-ScheduledTask and Windows
body: <p>I thought no matter what OS you had, if you had Powershell installed, you would have access to the same default cmdlets.</p>
  
  <p>So I want to use <a href="http://technet.microsoft.com/en-us/library/jj649808.aspx" rel="nofollow noreferrer">Get-ScheduledTask</a> on my Windows 7 machine.  I have Powershell 4 installed.  However, when I run it, I get the error:</p>
  
  <pre><code>Get-ScheduledTask : The term 'Get-ScheduledTask' is not recognized as the name 
  of a cmdlet, function, script file, or operable program. Check the spelling of 
  the name, or if a path was included, verify that the path is correct and try again.
  At line:1 char:1
  + Get-ScheduledTask
  + ~~~~~~~~~~~~~~~~~
      + CategoryInfo          : ObjectNotFound: (Get-ScheduledTask:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
  </code></pre>
  
  <p>If I run on my Windows 8.1 with Powershell 4 already pre-installed along with the OS, it works.  </p>
  
  <p>Can I get the cmdlets on my Windows 7 machine?  There is nothing on the Microsoft Get-ScheduledTask page about Windows 7 so I am guessing not.</p>
  
  <p>If not then would it be a case of using the command line:</p>
  
  <p><a href="https://stackoverflow.com/questions/19641619/windows-7-scheduled-task-command-line">scheduled task command line</a></p>
  
  <p>No doubt someone will point me at <a href="https://stackoverflow.com/questions/22151631/powershellpack-taskscheduler-module-run-task-with-no-logged-user">this question</a> but that was for Powershell 2.  I am on Powershell 4.</p>
  
  <p>Now I am a big fan of not reinventing the wheel, but this <a href="http://www.powershellmagazine.com/2011/11/22/managing-scheduled-tasks-in-your-environment-part-ii/" rel="nofollow noreferrer">guys scripts</a> look a good alternative.</p>