Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

CurrentVersion\Run vs Scheduled Task

$
0
0

In the VBScript flavor of my deployment tool I used HKLM\Software\Microsoft\Windows\CurrentVersion\Run to trigger a script to handle the user initiation parts of Autodesk deployments. But in my searches for similar ideas in PowerShell I see a lot of references to scheduled tasks for this scenario. My use case is a persistent script that runs at logon for the life of the machine, not a one time or even temporary scenario. And the script needs access to the network and such. But other than that, it is pretty basic, has no user interaction, and completes quickly.
Are there any pros & cons to be aware of, or situations that make Scheduled Tasks consistently the better answer? 

Thanks!
Gordon


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>