PowerShell create a scheduled task

preview_player
Показать описание
This video is a quick look at creating a Scheduled Task with PowerShell. Last time I showed it via the GUI and got pushback so here is how to do it without a gui.

Video for creating the PS1 for a scheduled task:

Code from video:

$trigger = New-ScheduledTaskTrigger -Daily -At 10am

Register-ScheduledTask -Action $action -Trigger $trigger -TaskName "VideoPS Demo" -Description "Shane was here"
Рекомендации по теме
Комментарии
Автор

Thanks Shane, I like both short and long videos. It really depends on what I need. I love knowing "how it works" though.

crawdaddydoo
Автор

Shane Young that was awesome! I am a new powershell user, doing my best to teach myself. Thank you for this video, I been looking for a way to create task schedulers with powershell. I have a few backup scripts and it has been a pain to manually setup schedules for each one. Thank you very much. :-)

wrandalljr
Автор

I think both the long and short ones are helpful. I’ve watched a ton of your longer ones on full concepts but this was a good one off

charlievanhorn
Автор

Combination of different length video formats is just fine

DM-pypj
Автор

Great tutorial! Short and to the point. Thanks!

helltowngaming
Автор

Brilliant video. This is going to save me hours of work as I have to set up a server restart scheduled task on 70 Windows servers. Thanks.

S
Автор

Thank you so much for the video, simple and straight forward!

jacynthemartel
Автор

Hi Shane, Please create a video on Monthly triggers for Clustered-ScheduleTask

pradeep_kumar_
Автор

Thanks Shane! I have been watching your videos repetitively all week!! they are the best tutorials on Youtube hands down. I am coming from zero program language experience and started with powershell with intention to go Core. From a Vagabond entrepreneur standpoint what should I focus on learning that would separate me from the rest/experienced work field?

jett
Автор

Great video Shane. I’m new to PowerShell and have been having difficulty creating a scheduled task to trigger a bat file. I need the power shell to create the scheduled task and run the bat file silently but have not found any answers to this. I have over a thousand client computers to run this on so obviously the GUI is not an option. Neither is GPO.

duncanshaw
Автор

Great video! I already have an export of the scheduled task I want imported as an xml file. How do I import that xml file using Powershell? Thank you! 😮

craigsvideos
Автор

Need help transferring file from server to member server on scheduled task. I have the template but I keep getting 0X1 when the task completes. No file is transferred. What I read is it is either privilege or wrong path I am leaning towards wrong path. Any help is appreciated thanks.

RaymondJonesrejlive
Автор

Great video and great series. Helped me a lot! One question: is there any way to check if a task already exists before adding it to the scheduled tasks?

berlinerffm
Автор

I love your video's! They are very helpful in my learning process! I personally like the 20 or 30 minute more-in-depth videos but this was also very helpful! I would o=love some more videos about the basics! I eventually have to learn how to do a unattended installation of Server 2016 and auto PowerShell config of IIS! =)

ThirstyThursten
Автор

Great work!
Do some txt-file manipulations, like removing a minussign on a special position.

Myrslokstok
Автор

Hi Shane. Great video - I like the 5 minute format. I need my scheduled task to run with admin rights, I will google further. Cheers.

stevenprobynsma
Автор

How would you go about if you need to run a command (custom command) and schedule it using PowerShell scripting and the method you showed in your video

SajanKumar-mxjg
Автор

Excellent! Just what I wanted.
Thank you.

suryan
Автор

Hi Shane.This is great video. I am getting access Denied error when I run the script. Could you please let me know how can I overcome this.Thanks in Advance.

familythallam
Автор

Nice video Shane. You're just awesome! I am also new to PowerShell. Just wanted to know the right syntax of cmdlets for pushing installation of any software on multiple computers that are part of Windows Workgroup. I did try Invoke-Command on one remote computer but it failed. I would be grateful to you if you can throw some light on this issue.

bengaltiger