PowerShell Send Email if Windows Service is in Stopped State

  Рет қаралды 4,011

Swapnil Infotech

Swapnil Infotech

Күн бұрын

Пікірлер: 17
@chandhrunarayananarayans1127
@chandhrunarayananarayans1127 6 ай бұрын
Thanks for your vedio it's very useful . We have one query you are using own mail server so password not required only entered mail server but other linke G-Suite mail id how to configure.
@polaanvesh8922
@polaanvesh8922 Жыл бұрын
All your sessions are good and useful but in this video font size is very small and not able to see the script exactly 😢. Do you have any website where we can see it
@SwapnilInfotech
@SwapnilInfotech Жыл бұрын
Sorry for the font size, I have provided a script in the video description so you can copy it from there. Please let me know if you have any other queries.
@ishika8282
@ishika8282 Жыл бұрын
Very informative sir. I have one question, please let me know how do i achieve it. I have a list of servers, which requires to be stopped and then restart, again. Generally we do this manually by logging into the websphere application, but in case i want to automate it by powershell , how do i do this. Please suggest
@SwapnilInfotech
@SwapnilInfotech Жыл бұрын
If I understood correctly then you want to power off the list of virtual machines at any given time and then again power it on after some time or at the first place you just want to reboot it directly? Please let me know your requirements so I can comment.
@ishika8282
@ishika8282 Жыл бұрын
@@SwapnilInfotech sir any insight?
@SwapnilInfotech
@SwapnilInfotech Жыл бұрын
Can you let me know which platform you are using for virtual machines and versions information
@MrBamafan2570
@MrBamafan2570 Жыл бұрын
If you had multiple services in the $ServiceName variable, how do you get it to send only the one service that's not running and not all the services?
@SwapnilInfotech
@SwapnilInfotech Жыл бұрын
If you add multiple services in services variable then you have to apply for each loop on that variable so during for each loop it will check services one by one and then you can mention if condition that if any service is in xyz condition then send email or do some action
@amol2060
@amol2060 Жыл бұрын
Thanks, but how to send an email through service account however we have SMTP server configured on 2 servers.
@swapnillohot528
@swapnillohot528 Жыл бұрын
You just have to create a scheduled task which can run at a particular time and if it finds the service is in a stopped state, it will send an email. You will get more information on the link below kzbin.info/www/bejne/rXylZqmbrbOpbKs
@amol2060
@amol2060 Жыл бұрын
Yes agree, but i need to send an email through service account not individual alias. I tried and entered mine SMTP server details but it won't work
@SwapnilInfotech
@SwapnilInfotech Жыл бұрын
The script used here in this video is based on an open relay SMTP server so it is not bound to any user account or service account . If you have an open relay SMTP server then you can send it mail from any account. You just have to schedule it in task manager
@amol2060
@amol2060 Жыл бұрын
Can you make a script for windows update for multiple computers
@SwapnilInfotech
@SwapnilInfotech Жыл бұрын
Sure I will check and let you know
@amol2060
@amol2060 Жыл бұрын
@@SwapnilInfotech Thanks and as always you rock, waiting for next video and still I didn't get your number.
@amol2060
@amol2060 Жыл бұрын
@@SwapnilInfotech Any update.
PowerShell Send email if windows service is not running
9:38
Swapnil Infotech
Рет қаралды 4 М.
PowerShell Find Restart Events on Multiple Remote Computers
9:48
Swapnil Infotech
Рет қаралды 812
Ouch.. 🤕⚽️
00:25
Celine Dept
Рет қаралды 18 МЛН
黑的奸计得逞 #古风
00:24
Black and white double fury
Рет қаралды 25 МЛН
Phishing emails - How to spot them.
31:23
Braver Technology
Рет қаралды 9 М.
Get service status from remote server's using PowerShell
5:08
Swapnil Infotech
Рет қаралды 4,8 М.
How is this Website so fast!?
13:39
Wes Bos
Рет қаралды 476 М.
Get Multiple Services Status Remotely | Remotely Start or Stop Services
4:38
Automate Sending Email Message using PowerShell
8:55
Pinoy Systems Administrator IT Services
Рет қаралды 3 М.
Ouch.. 🤕⚽️
00:25
Celine Dept
Рет қаралды 18 МЛН