Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: script get cpu use & ram every x hours, write to file

$
0
0

You do either have to dot source or make the script into a module. One or the other. If you want to just run it as a script, remove the function keyword, function name, and opening and closing curly bracket. It’ll run the same as a script.


Viewing all articles
Browse latest Browse all 13067

Trending Articles