Automate your PowerShell scripts with Windows Task Scheduler

  Рет қаралды 133,811

Shane Young

Shane Young

Күн бұрын

Пікірлер: 213
@gunnyrohn882
@gunnyrohn882 Ай бұрын
Thank you, Sir. Finally someone that showed us what we want. So many videos on this subject that are actually no help at all. It was the task scheduler part that wasn't working for me. It's all in the syntax.
@ShanesCows
@ShanesCows Ай бұрын
Awesome, glad that it helped you! 🤩
@MichaelDeBlasis1369
@MichaelDeBlasis1369 2 ай бұрын
Thanks to you I just used GPO to push out a powershell script that disables and unbinds ipv6! Hope all is well! My new job is going great!!! it's a bit more networking than I thought it would be, but we are still planning to use power apps to save on app costs. like for inventory mgmt, and change mgmt forms.
@ShanesCows
@ShanesCows 2 ай бұрын
Love this and congrats on the new job. PowerShell is a lot of fun also, so hopefully you are having fun.
@MichaelDeBlasis1369
@MichaelDeBlasis1369 2 ай бұрын
@@ShanesCows Now I'm flipping it and using powershell to export system GPResult reports in html. which gave me an idea to maybe document our gpo sturcture using power apps. Have you ever done anything like that? Any ideas you might have would be welcome. I don't know how you feel about Microsoft's way of pouring through which gpo does what. But I hate it. So I might just document all their enabled settings as well as what OUs and groups they apply to with a DB. But I'm just struggleing with where to start. I think displaying these html docs in and html editor is an option. or I could use automate to pase them and pull them into dataverse. So many options...
@scottwood1143
@scottwood1143 3 жыл бұрын
Thanks Shane, perfect working example ‘beginners intro’ to Windows Task Scheduler!
@ShanesCows
@ShanesCows 3 жыл бұрын
Glad it was helpful!
@mehmetgullu4514
@mehmetgullu4514 4 жыл бұрын
I was struggling with bat files to run a simple p.shell script on task scheduler. Thanks a lot for this helpful video.
@ShanesCows
@ShanesCows 4 жыл бұрын
Glad it was helpful!
@TheYanivR
@TheYanivR 6 жыл бұрын
Loves your channel, it's a real help in entering the Powershell world.
@nolitimere724
@nolitimere724 4 жыл бұрын
Yet, again Shane. Thanks for your vids. Its thru your vids where I was able to learn powershell for work. Ah, to add though, In the Actions part: I'd suggest to add: ' -command "Set-ExecutionPolicy -ExecutionPolicy Bypass -Force" ' in the arguments part since there are times the script wont be able to run because execution policies restrictions.
@ShanesCows
@ShanesCows 4 жыл бұрын
Thanks for sharing 😎
@shokeensachin7088
@shokeensachin7088 6 жыл бұрын
Good to see the way of sorting everything easily...
@ShanesCows
@ShanesCows 6 жыл бұрын
😀
@hectord.7107
@hectord.7107 4 жыл бұрын
'That's right, dedication here, we are making this video on a saturday', take your like good sir.
@ShanesCows
@ShanesCows 4 жыл бұрын
I am here for you guys 😎
@perilgg9059
@perilgg9059 2 жыл бұрын
every 10 mins d b scheduler pops up and it ruins my gaming, i try deleting it and stopping it and everything on task scheduler and no matter what i do it comes back, i dont know what to do
@akshitdhariwal6257
@akshitdhariwal6257 4 жыл бұрын
Hi Shane for me everything working task is being creating but whenever it run it didn't show the file updated as if not run
@ShanesCows
@ShanesCows 4 жыл бұрын
Not sure. Sorry
@WishToGrow20224
@WishToGrow20224 4 жыл бұрын
I want to put an alert email when a particular task success/fails and last run time of that task scheduled by task scheduler . Help me please
@ShanesCows
@ShanesCows 4 жыл бұрын
I haven’t done that before. Sorry
@StupidLostSoul-pu5xy
@StupidLostSoul-pu5xy 4 жыл бұрын
try to implement that also , it will be good
@fayyazali2217
@fayyazali2217 5 жыл бұрын
Hi.. Please help in how to write script in powershell which can trigger birthday / anniversary email from outlook on daily basis when the event occurs
@ShanesCows
@ShanesCows 5 жыл бұрын
Sorry haven’t done that.
@fayyazali2217
@fayyazali2217 5 жыл бұрын
I now have script which can trigger email however unable to trigger from windows task scheduler. is there any way if I can trigger any task without login?
@onlysub307
@onlysub307 3 жыл бұрын
What if I want to run the script with Admin rights? any way to pass that cmdlet into Task Scheduler rather than inserting it into the script itself.
@ShanesCows
@ShanesCows 3 жыл бұрын
I am not sure 🤔
@kennyjide2933
@kennyjide2933 6 жыл бұрын
Hi Shane, you've done the great job again. This is the mystery Kenny. The video is very helpful as usual. Many thanks and keep up the great work.
@ShanesCows
@ShanesCows 6 жыл бұрын
Hopefully, it nailed it for you. :) Great idea for a topic. Keep them coming. Thank you! Shane
@kennyjide2933
@kennyjide2933 6 жыл бұрын
Yes it did nail it for me. Thanks again
@ShanesCows
@ShanesCows 6 жыл бұрын
Hey. I just made a video on how to create the scheduled task with PowerShell to finish the circle. :) kzbin.info/www/bejne/n6vPen2KorqKZtE
@wahajkhan77841
@wahajkhan77841 3 жыл бұрын
Shane can you make a video on how to ping multiple machines and get the services of the machines like windows uptime and windows update in powershell
@ShanesCows
@ShanesCows 3 жыл бұрын
Sorry haven’t done that one
@Credomatic01
@Credomatic01 Жыл бұрын
What if the location from the ps1 scrip is in another server, should I use as argument \\servername\folder\.ps1 or how should I put there? Thank you in advance.
@ShanesCows
@ShanesCows Жыл бұрын
Sorry, been too long since I played with this give you a solid answer.
@pankajshinde6205
@pankajshinde6205 3 жыл бұрын
Hi Sir, How can I use power shell to write down PC Lock time and PC unlock time in any of the text applications?
@ShanesCows
@ShanesCows 3 жыл бұрын
I don’t know. Sorry
@pankajshinde6205
@pankajshinde6205 3 жыл бұрын
It's okay sir
@Lucad2278
@Lucad2278 2 жыл бұрын
Hi save option is greyed out for me - any idea why? Thanks
@DPSHIZZ
@DPSHIZZ 3 жыл бұрын
hi Shane i have been trying to copy folders in the same way but it is not working for me so i have just copied exactly what you have done and it is not completing the script both your script and mine both work if i just run them in powershell would you have any suggestions as i am new to powershell and task scheduler and can't help but think i am missing something simple sorry and thanks in advance if you can
@ShanesCows
@ShanesCows 3 жыл бұрын
Hey Dave. I wish I had an answer. I haven't worked on PowerShell like this in so long. Maybe check out www.powershell.org I think they have a community that can help.
@dowhatIdo
@dowhatIdo 4 жыл бұрын
Heyy do you know how to run shutdown program at certain time Let just say for 8 hours. So evertime somwone turn on the PC it will turn off automatically.
@ShanesCows
@ShanesCows 4 жыл бұрын
I don’t sorry
@donnielewis186
@donnielewis186 3 жыл бұрын
So what if you PowerShell is looking for input. Select A for all?
@ShanesCows
@ShanesCows 3 жыл бұрын
I think so but not exactly sure where you are seeing that.
@donnielewis186
@donnielewis186 3 жыл бұрын
@@ShanesCows Thanks. What I'm asking is I have a powershell that will kick off disconnected users. It ask me what server and what group of users I want to kick off... I cant figure out how to input those values so that i can run in nightly to disconnect the usrs that "forgot" to log off. I had found that someone said to add the argument -command “& ‘c:\PSFiles\LogOffSession.ps1’ ‘ServerName’ ‘Disc'”... Not working though.
@yeuharng4845
@yeuharng4845 Жыл бұрын
Hi, if i have 11 ps1 file how can i run it everyday, how to write it?
@mohammedtoufeeqahamed9825
@mohammedtoufeeqahamed9825 4 жыл бұрын
Shane, Can we get email notification from Powershell if newer version of Adobe Flash player(Activex and NPAPI), Google Chrome, Mozilla Firefox ESR and Adobe acrobat reader release
@ShanesCows
@ShanesCows 4 жыл бұрын
I don't know... sorry
@Battleripper
@Battleripper 4 жыл бұрын
Does this also work if powershell HAVE to be opened as an administrator?
@ShanesCows
@ShanesCows 4 жыл бұрын
I don't think it has to be. Just depends on what you need access to.
@asnyc01
@asnyc01 5 жыл бұрын
So if I'm running exchange 2010 SP3 I can run the script in power shell not the exchange management shell? I'm trying to get an export of a user's calendar and contacts with a time stamp in the file name. Can you assist or do you have a video that covers that already?
@ShanesCows
@ShanesCows 5 жыл бұрын
I don’t sorry. I haven’t touched Exchange on Prem in a long time
@asnyc01
@asnyc01 5 жыл бұрын
@@ShanesCows Thank you for your reply.
@mera479
@mera479 2 жыл бұрын
Love your tutorials and I'm new at this! Can you share how to do a full and incremental backup using PowerShell for simple folder backup? Thank you!
@lyspooner5093
@lyspooner5093 4 жыл бұрын
When I do this it says, running, but never finishes. Heard somewhere that you need to do something with the Set-ExecutionPolicy cmdlet. Any ideas?
@ShanesCows
@ShanesCows 4 жыл бұрын
Not sure. Sorry
@philliploftis9583
@philliploftis9583 5 жыл бұрын
Solve a BIG issue with automation... as I was using a cmd file to launch the ps files and it stopped working. Thank you.
@ShanesCows
@ShanesCows 5 жыл бұрын
Glad to help. 😀
@TheHerbsterooney
@TheHerbsterooney 3 жыл бұрын
Thanks Shane for this lovely and simple to understand intro to executing PS script from windows task scheduler. I am completely new to PS scripting so please bear with me. From this video, I noticed that when setting up the "Action" tab, you did not use the syntax "-File" before the path to where your PS1 script (Add arguments (Optional)) is located. Though i have seen other forum and videos specified the use of this. Are you able to explain when you might need to use this please? Also, I am looking for an intro to subject incorporating the task scheduler whereby new files are monitored via PS scripts and send notification via emails on scheduled timetable. Would you have such video in your gallery please? Many thanks|!
@ShanesCows
@ShanesCows 3 жыл бұрын
I don't, sorry 😐
@powermykola
@powermykola 3 жыл бұрын
Hi, I have a task for PowerApps when the application starts, I need to get information about the computer from which the application is launched. Is it possible to use Power Shell (script) + Power Automate + Power Apps ... if it is technically possible, tell me where to look or maybe there is an opportunity and you will share the script like this :)
@ShanesCows
@ShanesCows 3 жыл бұрын
I haven't done this before. And sadly I don't even have a good guess of where to tell you to look to start. Sorry.
@yannick1470
@yannick1470 Жыл бұрын
And does it matter whether the client is turned on or not?
@ShanesCows
@ShanesCows Жыл бұрын
Client has to be on.
@venkateshguruvugari8957
@venkateshguruvugari8957 4 жыл бұрын
Hi pls do the video to run schedular jobs automatically using powershell script.
@ShanesCows
@ShanesCows 4 жыл бұрын
Sorry never done it.
@sandhireddyvenubabu6213
@sandhireddyvenubabu6213 5 жыл бұрын
hi Shane, i dont want my script to run on Saturday and Sunday , what could i do possibly.
@ShanesCows
@ShanesCows 5 жыл бұрын
The tool has a lot of scheduling flexibility. I am sure you can make a schedule to do this.
@snorewak
@snorewak 5 жыл бұрын
is that the gobblegum machine from black ops 3 in the background?
@ShanesCows
@ShanesCows 5 жыл бұрын
No but that would be cool.
@IronMan-jj2fd
@IronMan-jj2fd 4 жыл бұрын
I have a set of weather report sounds (from JARVIS), so i want to hear the current weather report when i turn ON my computer from my custom sounds. So can u help me out?
@ShanesCows
@ShanesCows 4 жыл бұрын
Sorry, not something I have done before.
@RUIZ0411
@RUIZ0411 5 жыл бұрын
I Need some help. At work i am requiered to audit 300 machines so i go to eEvent Viewer/windows logs/security then i save the security file. Can you help me to automate this. v.r. Rick
@ShanesCows
@ShanesCows 5 жыл бұрын
Sorry Rick I haven’t done anything like that.
@vivekpathak5757
@vivekpathak5757 5 жыл бұрын
Hi Shane, Do you have something to run a task scheduler job from task scheduler job?
@ShanesCows
@ShanesCows 5 жыл бұрын
Never tried. Sorry.
@vivekpathak5757
@vivekpathak5757 5 жыл бұрын
@@ShanesCows I just don't want to stop a task scheduler job , I also tried triggers in the task, yes that is working but saw pathetic history of task scheduler task like warning and failed error. Do you have something for.
@ismailariff1450
@ismailariff1450 4 жыл бұрын
how to schedule by month ?
@ShanesCows
@ShanesCows 4 жыл бұрын
Not sure, I haven't done that.
@beebop187
@beebop187 2 жыл бұрын
is there a way to tell it to start a certain line on the script after logon so you don't rerun what's already completed?
@ShanesCows
@ShanesCows 2 жыл бұрын
Not that I have done but maybe. I guess you could have if Logic to have it skips sections?
@ramchandran8132
@ramchandran8132 3 жыл бұрын
Thanks Shane !
@ShanesCows
@ShanesCows 3 жыл бұрын
Happy to help Ram
@venommedias4580
@venommedias4580 Жыл бұрын
how can i set it for every 5 mins ??
@FRAN-vd9rl
@FRAN-vd9rl 3 жыл бұрын
5:52 i'm currently using vbscripts and all i have to do is press the "browse" button and browse to the location of my vbscript file. this seems more complicated, however i heard vbscripts can be a security issue
@ShanesCows
@ShanesCows 3 жыл бұрын
I would just say this is a different option.😀
@PokemonBlueVersion
@PokemonBlueVersion Жыл бұрын
You da man! This video was awesome. New sub B^)
@ShanesCows
@ShanesCows Жыл бұрын
Awesome, thank you!
@cazmaj
@cazmaj 4 жыл бұрын
You're the best Shane! Thanks for all your amazing videos :)
@ShanesCows
@ShanesCows 4 жыл бұрын
Glad to help. 😀
@JayPatel101
@JayPatel101 4 жыл бұрын
Any thoughts on how to run powershell script as a service?
@ShanesCows
@ShanesCows 4 жыл бұрын
I haven’t done that. Sorry
@haris_yt69
@haris_yt69 4 жыл бұрын
Greetings Sir, Off the topic question, but still out of curiosity. Is there any way to export driver using power shell on Windows 7 system? I tried the dism /Online /Export-Driver /Destination:C:\Drivers command but it doesn't work (Error: 87). Regards.
@ShanesCows
@ShanesCows 4 жыл бұрын
I don’t know. Sorry
@sreepriyanks
@sreepriyanks 4 жыл бұрын
shane.... u r a coolman!!
@ShanesCows
@ShanesCows 4 жыл бұрын
Thank you :)
@rahima.r1835
@rahima.r1835 5 жыл бұрын
Can we change name of folder or file by using PS code
@ShanesCows
@ShanesCows 5 жыл бұрын
Yes. There is a rename.
@icecool742
@icecool742 5 жыл бұрын
yo good deal. thanks a alot. how about power shell windows update scheduled via task scheduler not gp
@ShanesCows
@ShanesCows 5 жыл бұрын
That would be cool
@vikasrajbhar6598
@vikasrajbhar6598 Жыл бұрын
Thank you for the Video
@ShanesCows
@ShanesCows Жыл бұрын
You're welcome
@xeonzero1
@xeonzero1 4 жыл бұрын
Any chance you could possibly demonstrate using powershell to run a sql select statement then send those results via ftp on a csv file? Is that possible to do? Been playing with the syntax but I'm not able to figure it out.
@ShanesCows
@ShanesCows 4 жыл бұрын
Yikes. I haven't done that one. Sorry.
@xeonzero1
@xeonzero1 4 жыл бұрын
@@ShanesCows no problem. I'll keep digging. Thanks for the quick reply!
@techs82
@techs82 5 жыл бұрын
Thanks a lot man help me out loads
@ShanesCows
@ShanesCows 5 жыл бұрын
Glad to help. 😀
@glenr5461
@glenr5461 3 жыл бұрын
Thanks mate, that's realy cool
@ShanesCows
@ShanesCows 3 жыл бұрын
Awesome :)
@Non-Artificial-Intelligence
@Non-Artificial-Intelligence 6 жыл бұрын
I have a question: I created a Task Scheduler that runs a batch file. The batch file kills a process and then uses a "start " command to launch the same application (.EXE). The batch file runs flawlessly if I manually double-click it to make it run. However, when Task Manager runs the batch file, it kills the process but does not start the application.Also, the task is listed as "Running" for about a minute before it comes "Ready" again. Have you seen this before? I am running WIN7. Thanks in advance!
@ShanesCows
@ShanesCows 6 жыл бұрын
Sorry. I have not messed with that before. 😑
@vasileiosnl
@vasileiosnl 6 жыл бұрын
What if I need to run a script as an administrator? What arguments do I need to pass?
@ShanesCows
@ShanesCows 6 жыл бұрын
I am pretty sure you can tell the timer job to run as admin? This post has a lot of ideas but I haven’t tried any. Sorry. superuser.com/questions/108207/how-to-run-a-powershell-script-as-administrator
@kodkid
@kodkid 5 жыл бұрын
Loved the content and your personality, made it fun. Hope dinner was good! :-)
@ShanesCows
@ShanesCows 5 жыл бұрын
It was, thanks. Which K are you a fan of? Wildcats? Jayhawks?
@kodkid
@kodkid 5 жыл бұрын
Shane Young University of Kentucky Wildcats!
@ShanesCows
@ShanesCows 5 жыл бұрын
Awesome. I grew up a UK basketball fan. My family bleeds blue.
@marting.4050
@marting.4050 4 жыл бұрын
It works. Thanks a lot!!!
@ShanesCows
@ShanesCows 4 жыл бұрын
Glad to help. 😀
@augus255
@augus255 4 жыл бұрын
my windows say 'value does not fall within the expected range'
@ShanesCows
@ShanesCows 4 жыл бұрын
Not sure why. Sorry
@funhurtsmylungs1056
@funhurtsmylungs1056 6 жыл бұрын
How about a PowerShell script to create a schedule task, that runs a PowerShell script? That's the real goal. ;)
@ShanesCows
@ShanesCows 6 жыл бұрын
I will have to look at it but I think that is pretty doable.
@funhurtsmylungs1056
@funhurtsmylungs1056 6 жыл бұрын
Oh yeah it is. Just thought its funny :)
@ShanesCows
@ShanesCows 6 жыл бұрын
LOL. Yeah, my literal hat was on. I see what you did there. Though I do think this is a solid video idea also.
@funhurtsmylungs1056
@funhurtsmylungs1056 6 жыл бұрын
Shane Young I’ve got a script that I think your viewers might be interested in. What’s the best way to contact you about it?
@ShanesCows
@ShanesCows 6 жыл бұрын
shane.young at boldzebras.com I can't wait to see it. Thanks
@swisslibya
@swisslibya 6 жыл бұрын
With all respect, you are the best.. Please upload more video about PowerShell scripts. Start from A to Z... I like how you demonstrate .. Heeeeeeeeer is our intro :) ... Thank you
@ShanesCows
@ShanesCows 6 жыл бұрын
Thank you. I promise at least one more PowerShell script this week. :) Creating AD users from a CSV.
@darshanhc7424
@darshanhc7424 6 жыл бұрын
how can i schedule my Powershell script in my base machine to run on Azure portal.
@ShanesCows
@ShanesCows 6 жыл бұрын
Hi Darshan - I don't exactly understand your question? Can you give me more details? Thanks
@darshanhc7424
@darshanhc7424 6 жыл бұрын
HI Shane, I want to run some Powershell script which uploads some file to azure ADLS and get some more information from Azure portal. But i want the script to run from my base machine powershell prompt. everytime i Dont want to login to azure portal via powershell and execute the script. (I can create profile in powershell and through that i can run my main script. But other than powershell profile concept how can i do this.) instead if i schedule the script how do i do that.? and one more question...., In azure portal for VM monitoring i can create metric alerts. but how to create metric alert to monitor RAM usage and disk usages like C, D, and E drives. i can select metric for %CPU usage, but for RAM and disk usage what parameters should i select. Please help me on this. Will be waiting for your response. Thank you.
@valeriem6475
@valeriem6475 4 жыл бұрын
thanks Shane... this is exactly what I needed.... thanks for making it simple
@ShanesCows
@ShanesCows 4 жыл бұрын
Glad it helped!
@valeriem6475
@valeriem6475 4 жыл бұрын
@@ShanesCows Hi Shane.. I'll keep you in my back pocket... as I am a DBA that is trying to pretend I know how to use PS lol... don't let out my secret.
@MickSkitz
@MickSkitz 3 жыл бұрын
Hi Shane, not sure if you check old comments but here goes. I've got a parameterised PS script with a username and password that I want automated but I don't want to have my password in plain text within my script for security reasons. Any tips about this? Thanks, great video.
@ManishKumar-yj5yl
@ManishKumar-yj5yl 5 жыл бұрын
Lovely video Shane, can you help me with script to ping multiple ip address and send the output to outlook 365 and schedule it run every day 6am. Pls
@ShanesCows
@ShanesCows 5 жыл бұрын
Never done it. Sorry
@shivas3381
@shivas3381 4 жыл бұрын
Stumbled upon your videos recently.Liked it and am following very much.I have a doubt though. I am unable to save my scripts. My "Save as" is greyed out.can you please help?.thanks in advance Shane.
@shivas3381
@shivas3381 4 жыл бұрын
Never mind ,Got it...I saved .txt as .ps1 and opened it in ISE
@ShanesCows
@ShanesCows 4 жыл бұрын
awesome
@sharathchandra6166
@sharathchandra6166 4 жыл бұрын
great video! love it
@ShanesCows
@ShanesCows 4 жыл бұрын
Thanks 🙏
@andres100r
@andres100r 3 жыл бұрын
Thank you!
@ShanesCows
@ShanesCows 3 жыл бұрын
Glad to help. 😀
@deadelrosario3008
@deadelrosario3008 3 жыл бұрын
Hello Shane! Awesome videos - I'm learning a lot from you! :) Would like to ask how can I get multiple output files so everytime the task runs my powershell script via task manager, it won't overwrite the existing one? I am trying to get the list of logged in users in the RDS server per hour. So I need a new output file everytime the task runs. Is that possible? Thank you so much! :)
@ShanesCows
@ShanesCows 3 жыл бұрын
Use the Out-File cmdlet and don't select Append
@Raghavendra8231
@Raghavendra8231 5 жыл бұрын
Hi Shane, Can you please make a video on - How to start multiple bat files sequentially from PowerShell script
@ShanesCows
@ShanesCows 5 жыл бұрын
I haven don’t that before. Sorry
@mrmuranga
@mrmuranga 6 жыл бұрын
nice and simple...just managed to automate a task that saves me 10-15 minutes daily
@ShanesCows
@ShanesCows 6 жыл бұрын
PERFECT!
@jatinderanand8576
@jatinderanand8576 6 жыл бұрын
How about a powershell script that could be used to send emails when a specific event triggers in system?
@ShanesCows
@ShanesCows 6 жыл бұрын
Should be possible. There is a cmdlet for sending email.
@nimstudios7574
@nimstudios7574 2 жыл бұрын
How to run a PS script daily as a service account, please? And it should not have any human intervention.
@AdrianMcDaid
@AdrianMcDaid 3 жыл бұрын
This was the answer I was looking for. Thank you :)
@ShanesCows
@ShanesCows 3 жыл бұрын
Glad to help. 😀
@shivendrakumaryadav5811
@shivendrakumaryadav5811 5 жыл бұрын
Many thanks, it helped me. :)
@ShanesCows
@ShanesCows 5 жыл бұрын
Great! 👍
@DPaquette
@DPaquette 5 жыл бұрын
Well I just discovered your channel here. Interesting.
@madhuryareddy3994
@madhuryareddy3994 4 жыл бұрын
Great video Shane!But how can we run the powershell script every 15 or 10 minutes automatically?
@ShanesCows
@ShanesCows 4 жыл бұрын
Change the schedule.
@bennettjoseph6508
@bennettjoseph6508 5 жыл бұрын
How about a script to prompt user for varible like ##$Store =read-host -prompt "Store Location?"## ping multiple hosts ## ping "$Store"rtf -t. Ping "$Store"sw -t## outputting results to two frames then turning frame red upon a failed ping, wait for user input to stop pings, and then loop itself
@ShanesCows
@ShanesCows 5 жыл бұрын
Yikes. Not sure on that one.
@KelvinWKiger
@KelvinWKiger 4 жыл бұрын
Thank you Bro!
@ShanesCows
@ShanesCows 4 жыл бұрын
Happy to help
@souravsamanta5931
@souravsamanta5931 5 жыл бұрын
nice and simple staff...thanks Shane, you are the best....
@ShanesCows
@ShanesCows 5 жыл бұрын
Glad to help. 😀
@osamaasif9601
@osamaasif9601 5 жыл бұрын
I am currently working on Auto-mailer reports, Your a #Live #Saver . Keep it up Shane.
@ShanesCows
@ShanesCows 5 жыл бұрын
Glad to help. 😀
@dadimibhaskar9578
@dadimibhaskar9578 3 жыл бұрын
Guides to us super and Tqx.
@durgarasane-kolapkar1842
@durgarasane-kolapkar1842 4 жыл бұрын
Hi Shane, Thanks for this video. I want to check daily if a file exists and then send automated mail if file is not created in a folder on a particular day. How can I do this using powershell and task scheduler? Can we send automated email (no manual intervention) using powershell? Please guide.
@ShanesCows
@ShanesCows 4 жыл бұрын
I am not sure. Sorry. I use Microsoft Flow for things like that these days.
@apolomachine
@apolomachine 3 жыл бұрын
Thanks man!, this video really help me!
@ShanesCows
@ShanesCows 3 жыл бұрын
Glad to hear it!
@maheshmuliya4512
@maheshmuliya4512 3 жыл бұрын
Thanks
@ShanesCows
@ShanesCows 3 жыл бұрын
You are welcome 🤗
@joevanynguyen9691
@joevanynguyen9691 5 жыл бұрын
I subscribed simply because you're a very good tutor.
@ShanesCows
@ShanesCows 5 жыл бұрын
Thank you for the kudos.
@multitaskprueba1
@multitaskprueba1 2 жыл бұрын
Thank you for the video! You are a genius!
@ShanesCows
@ShanesCows 2 жыл бұрын
Glad you liked it!
@jamiebaker1437
@jamiebaker1437 5 жыл бұрын
You were a big help! Thanks!
@ShanesCows
@ShanesCows 5 жыл бұрын
Cool
@kirankkc99
@kirankkc99 3 жыл бұрын
Thanks lot Shane.it saved my time.
@ShanesCows
@ShanesCows 3 жыл бұрын
Glad to help. 😀
@vlogsbaleneors9249
@vlogsbaleneors9249 2 жыл бұрын
How do we add the hostname on the text file using the Powershell
@themariofv
@themariofv 2 жыл бұрын
Thanks!!
@dennisvandinter3700
@dennisvandinter3700 Жыл бұрын
So I have this strange problem with running a Powershell script with a scheduled task. The task will trigger on a 1074 event ID (event ID for shutdown or reboot). If I shutdown the task will run and execute the script. If I reboot the task will run, but after reboot the comment says the task was started but was interrupted by the user. It gives error code 2147943515. Someone any ideas?
@alphaomega5017
@alphaomega5017 2 жыл бұрын
Nice video. Just wanted to know how to take the current config back up
@polsloganguntakala7439
@polsloganguntakala7439 3 жыл бұрын
Hi shane! This video is really useful.I want to set a task scheduler using powershell script. It has to trigger weekly once. It has to give prompt to users reboot the device. Could you please help me with this how to write a script for this.
@tonyuketui
@tonyuketui 3 жыл бұрын
Hey Shane Please could you do a video that creates a task scheduler with a bash script
@venkateshVenky-et6jg
@venkateshVenky-et6jg 2 жыл бұрын
Tq bro
@manjunathamanju8390
@manjunathamanju8390 2 жыл бұрын
Easy and nice. How can we automate email report.
@nedstudt
@nedstudt 5 жыл бұрын
Maybe better to get to the point quicker. You were half-way through before you got to the subject of automating the script.
@ShanesCows
@ShanesCows 5 жыл бұрын
Sorry you didn’t like it. 😔
@danielkrajnik3817
@danielkrajnik3817 3 жыл бұрын
Start at 4:55 lol
@ShanesCows
@ShanesCows 3 жыл бұрын
😎
@ravipremani6201
@ravipremani6201 3 жыл бұрын
So here is my requirement First please help me with the script to launch Visual Studio Test from powershell using windows scheduler Second, I want to intentionally stop that test case close the desktop app on which I am performing automation and invoke it again This should happen in every half an hour So it should keep doing this process like an infinite loop
@hassaanahmad3772
@hassaanahmad3772 5 жыл бұрын
Really!!! 2min intro??
@ShanesCows
@ShanesCows 5 жыл бұрын
Sorry you didn’t like it.
PowerShell create a scheduled task
5:50
Shane Young
Рет қаралды 48 М.
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 16 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 14 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 32 МЛН
CAN Bus Explained - A Simple Intro [v2.0 | 2021] 🌟
14:44
CSS Electronics
Рет қаралды 242 М.
Use Power Automate Desktop and Task Scheduler Together
5:42
Anders Jensen
Рет қаралды 32 М.
How to Run PowerShell Scripts on a Schedule!
9:05
PowerShellNerd
Рет қаралды 6 М.
How Do Linux Kernel Drivers Work? - Learning Resource
17:02
LiveOverflow
Рет қаралды 562 М.
Work with Date & Time with PowerShell
16:45
Shane Young
Рет қаралды 59 М.
PowerShell String Manipulation
16:54
Shane Young
Рет қаралды 84 М.
Copy, Move, Delete files with PowerShell
17:01
Shane Young
Рет қаралды 174 М.
Manipulating Objects in Microsoft PowerShell - Video 2
23:29
Shane Young
Рет қаралды 420 М.
Windows Updates through PowerShell
5:25
Chris Titus Tech
Рет қаралды 93 М.