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 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...
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.
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.
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
@@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.
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
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.
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
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.
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|!
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?
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.
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 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.
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 :)
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! :)
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?
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.
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
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.
@@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.
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?
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.
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
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!
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.
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.
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.
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.
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
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
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?
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
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.
Love this and congrats on the new job. PowerShell is a lot of fun also, so hopefully you are having fun.
@@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...
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.
Awesome, glad that it helped you! 🤩
Thanks Shane, perfect working example ‘beginners intro’ to Windows Task Scheduler!
Glad it was helpful!
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.
Thanks for sharing 😎
Loves your channel, it's a real help in entering the Powershell world.
I was struggling with bat files to run a simple p.shell script on task scheduler. Thanks a lot for this helpful video.
Glad it was helpful!
Good to see the way of sorting everything easily...
😀
'That's right, dedication here, we are making this video on a saturday', take your like good sir.
I am here for you guys 😎
You da man! This video was awesome. New sub B^)
Awesome, thank you!
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.
Hopefully, it nailed it for you. :) Great idea for a topic. Keep them coming. Thank you! Shane
Yes it did nail it for me. Thanks again
Hey. I just made a video on how to create the scheduled task with PowerShell to finish the circle. :) ruclips.net/video/izlIJTmUW0o/видео.html
Thanks mate, that's realy cool
Awesome :)
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!
You're the best Shane! Thanks for all your amazing videos :)
Glad to help. 😀
Thank you for the Video
You're welcome
Thanks Shane!
Glad it was helpful. 🙂
Loved the content and your personality, made it fun. Hope dinner was good! :-)
It was, thanks. Which K are you a fan of? Wildcats? Jayhawks?
Shane Young University of Kentucky Wildcats!
Awesome. I grew up a UK basketball fan. My family bleeds blue.
It works. Thanks a lot!!!
Glad to help. 😀
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
Sorry haven’t done that one
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
thanks Shane... this is exactly what I needed.... thanks for making it simple
Glad it helped!
@@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.
great video!
love it
Thanks 🙏
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
Not sure. Sorry
Thanks a lot man help me out loads
Glad to help. 😀
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
Thank you. I promise at least one more PowerShell script this week. :) Creating AD users from a CSV.
This was the answer I was looking for. Thank you :)
Glad to help. 😀
shane.... u r a coolman!!
Thank you :)
nice and simple staff...thanks Shane, you are the best....
Glad to help. 😀
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.
Sorry, been too long since I played with this give you a solid answer.
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
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.
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|!
I don't, sorry 😐
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.
I am not sure 🤔
nice and simple...just managed to automate a task that saves me 10-15 minutes daily
PERFECT!
Thanks man!, this video really help me!
Glad to hear it!
Hi pls do the video to run schedular jobs automatically using powershell script.
Sorry never done it.
Thank you!
Glad to help. 😀
Hi Sir,
How can I use power shell to write down PC Lock time and PC unlock time in any of the text applications?
I don’t know. Sorry
It's okay sir
I am currently working on Auto-mailer reports, Your a #Live #Saver . Keep it up Shane.
Glad to help. 😀
Many thanks, it helped me. :)
Great! 👍
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
Sorry haven’t done that.
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?
Solve a BIG issue with automation... as I was using a cmd file to launch the ps files and it stopped working. Thank you.
Glad to help. 😀
is that the gobblegum machine from black ops 3 in the background?
No but that would be cool.
Does this also work if powershell HAVE to be opened as an administrator?
I don't think it has to be. Just depends on what you need access to.
Well I just discovered your channel here. Interesting.
Guides to us super and Tqx.
How about a PowerShell script to create a schedule task, that runs a PowerShell script? That's the real goal. ;)
I will have to look at it but I think that is pretty doable.
Oh yeah it is. Just thought its funny :)
LOL. Yeah, my literal hat was on. I see what you did there. Though I do think this is a solid video idea also.
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?
shane.young at boldzebras.com I can't wait to see it. Thanks
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
I haven’t done that before. Sorry
try to implement that also , it will be good
Thank you Bro!
Happy to help
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.
I don’t sorry
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
I don't know... sorry
Thank you for the video! You are a genius!
Glad you liked it!
Hi save option is greyed out for me - any idea why? Thanks
So what if you PowerShell is looking for input. Select A for all?
I think so but not exactly sure where you are seeing that.
@@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.
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?
Not sure. Sorry
Thanks lot Shane.it saved my time.
Glad to help. 😀
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 :)
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.
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! :)
Use the Out-File cmdlet and don't select Append
I subscribed simply because you're a very good tutor.
Thank you for the kudos.
hi Shane,
i dont want my script to run on Saturday and Sunday , what could i do possibly.
The tool has a lot of scheduling flexibility. I am sure you can make a schedule to do this.
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?
I don’t sorry. I haven’t touched Exchange on Prem in a long time
@@ShanesCows Thank you for your reply.
You were a big help! Thanks!
Cool
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.
Any thoughts on how to run powershell script as a service?
I haven’t done that. Sorry
And does it matter whether the client is turned on or not?
Client has to be on.
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
Sorry Rick I haven’t done anything like that.
my windows say 'value does not fall within the expected range'
Not sure why. Sorry
Great video Shane!But how can we run the powershell script every 15 or 10 minutes automatically?
Change the schedule.
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.
Never mind ,Got it...I saved .txt as .ps1 and opened it in ISE
awesome
Hi Shane,
Do you have something to run a task scheduler job from task scheduler job?
Never tried. Sorry.
@@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.
Hi, if i have 11 ps1 file how can i run it everyday, how to write it?
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?
Sorry, not something I have done before.
Nice video. Just wanted to know how to take the current config back up
Hi Shane,
Can you please make a video on - How to start multiple bat files sequentially from PowerShell script
I haven don’t that before. Sorry
Thanks!!
Thanks
You are welcome 🤗
yo good deal. thanks a alot. how about power shell windows update scheduled via task scheduler not gp
That would be cool
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
Never done it. Sorry
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.
I don’t know. Sorry
What if I need to run a script as an administrator? What arguments do I need to pass?
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
Can we change name of folder or file by using PS code
Yes. There is a rename.
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!
Sorry. I have not messed with that before. 😑
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.
Yikes. I haven't done that one. Sorry.
@@ShanesCows no problem. I'll keep digging. Thanks for the quick reply!
How to run a PS script daily as a service account, please?
And it should not have any human intervention.
how to schedule by month ?
Not sure, I haven't done that.
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?
Not that I have done but maybe. I guess you could have if Logic to have it skips sections?
how can i set it for every 5 mins ??
Hey Shane
Please could you do a video that creates a task scheduler with a bash script
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.
I am not sure. Sorry. I use Microsoft Flow for things like that these days.
how can i schedule my Powershell script in my base machine to run on Azure portal.
Hi Darshan - I don't exactly understand your question? Can you give me more details? Thanks
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.
How about a powershell script that could be used to send emails when a specific event triggers in system?
Should be possible. There is a cmdlet for sending email.
Maybe better to get to the point quicker. You were half-way through before you got to the subject of automating the script.
Sorry you didn’t like it. 😔
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.
Tq bro
Easy and nice. How can we automate email report.
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
I would just say this is a different option.😀
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
Yikes. Not sure on that one.
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?
How do we add the hostname on the text file using the Powershell
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
Start at 4:55 lol
😎
Really!!! 2min intro??
Sorry you didn’t like it.