Task Manager startup with Windows 8

2,665

you must use the task scheduler approach to start the task scheduler. This is required, because the new Taskmgr requires admin rights to start (because of ETW which is used for network and IO data). Create the schtasks.exe shortcut and place this shortcut into the known startup locations.

Share:
2,665

Related videos on Youtube

Kyle B
Author by

Kyle B

Updated on September 18, 2022

Comments

  • Kyle B
    Kyle B almost 2 years

    How can I modify this snippet code for PowerShell version 2.0 on Windows 7?

    $path = "myfolder/file.txt"
    $body = "file=$(Get-Content $path | Out-String)"
    Invoke-WebRequest -Uri "http//mywebsite" -Method POST -Body $body`
    

    I tried this but cannot run on PowerShell version 2.0. Any suggestions?

    • Vinod kumar G
      Vinod kumar G over 5 years
      Check for the PS version in windows 7 and run the powershell ISE in adminstrator mode. Meanwhile what error you are getting , need more info on problem statement
    • Kyle B
      Kyle B over 5 years
      powershell version is 2.0 and regarding the error: the term"Invoke.Webrequest' is not recognized as the name of cmdlet,function,script file ecc
    • Ansgar Wiechers
      Ansgar Wiechers over 5 years
      Please edit your question and copy/paste the full error message. Do not paraphrase. Do not type from memory.
    • Kyle B
      Kyle B over 5 years
      i got this error: Invoke-WebRequest : The term 'Invoke-WebRequest' 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:18 + Invoke-WebRequest <<<< -uri "example.com" -method POST -body $body + CategoryInfo : ObjectNotFound: (Invoke-WebRequest:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
  • mvp
    mvp almost 11 years
    @RichardEv: how do you know that it did not? Note that Task Manager in this recipe is started minimized. You are not likely to see that it is running if you start in Win8 Start screen. If you launch Desktop, you should see small TaskManager green/yellow icon running in tray bar, next to clock.
  • Richard Ev
    Richard Ev almost 11 years
    I know because I tried both options, as you describe.
  • Kyle B
    Kyle B over 5 years
    ok this works for the method "GET" and for the method "POST"?
  • Vinod kumar G
    Vinod kumar G over 5 years
    Yes, please change the $WebRequest.Method ="POST" and pass required header too in order to work, Please accept the answer if it solve the problem.
  • Kyle B
    Kyle B over 5 years
    already changed and is working now!thank you for your help Vinod!