In this video you will learn how to save your PowerShell cmdlets as a PS1 file and then run that PS1 file as a scheduled task. Pretty cool stuff. Short and to the point keeping you moving forward on your PowerShell skills journey.
Here is the code from the script if you need it:
Get-Date | Out-File E:\Demo\log4video.txt -Append
Get-PSDrive -PSProvider FileSystem | Out-File E:\Demo\log4video.txt -Append
Video on creating useful CSV files
[ Ссылка ]
Video on using Get-Date
[ Ссылка ]
BONUS: This video shows you how to create the task with PowerShell
[ Ссылка ]
If you need more PowerShell help you can always contact me via [ Ссылка ]
Ещё видео!