Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

PowerShell Send email if windows service is not running

Автор: Swapnil Infotech

Загружено: 2022-11-19

Просмотров: 4505

Описание:

In This Video we are going to see how to send email if service is not running. Here we are only checking if service is in stopped state and sending email to respective ID. If you want to start the service, you can put the command in the If statement. Please use the script and let me know if you have any query.

======================= Script Here ======================
$ServiceName = 'AdobeARMservice'
$arrService = Get-Service -Name $ServiceName

if ($arrService.Status -ne 'Running')
{
Send-MailMessage -From '[email protected]' -To 'Swapnil [email protected]' -Subject 'AdobeARMservice : Service Not running' -SmtpServer 'mum-srv01.sitech.com'
(Get-Date).toString("yyyy/MM/dd HH:mm:ss") | Out-File -FilePath C:\Scripts\TestLog.txt –Append
Get-Service -Name $ServiceName | Out-File -FilePath C:\Scripts\TestLog.txt –Append
}
else
{
(Get-Date).toString("yyyy/MM/dd HH:mm:ss") | Out-File -FilePath C:\Scripts\TestLog.txt –Append
Get-Service -Name $ServiceName | Out-File -FilePath C:\Scripts\TestLog.txt –Append
}
======================================
Get Local Group Members from Remote computers
   • Get Local Group Members From Remote computers  

PowerShell Script To Change Service Account or Update Password
   • Powershell Script To Change Service Accoun...  

PowerShell How To Change Remote Computer (Workgroup) Local Account Password
   • Powershell How To Change Remote Computer (...  

Delete Virtual Machine Snapshots Older Than Specific Days
   • Delete Multiple Virtual Machine Snapshots ...  

How To Create File Selection Dialog Box in PowerShell
   • How To Create File Selection Dialog Box in...  

Add User/Group To The Local Administrators/RDP Group On Multiple Computers
   • Add User/Group To The Local Administrators...  

Get Windows Updates list from Remote Computer
   • Get Windows Updates list from Remote Computer  

PowerShell Remotely Uninstall Software from Multiple Computers
   • PowerShell Remotely Uninstall Software fro...  

PowerShell Search Specific KB Status on Remote Computers
   • PowerShell Search Installed Windows Update...  

PowerShell Script to Connect Multiple Server's Remote Session
   • PowerShell Script to Connect Multiple Serv...  

PowerCLI Script to power ON dedicated VMs listed in a text file
   • PowerCLI Script to power ON dedicated VMs ...  

PowerCLI Script to power Off dedicated VMs listed in a text file
   • PowerCLI Script to power Off dedicated VMs...  

Delete Snapshot's from Multiple Virtual Machines
   • Delete Snapshot's from Multiple Virtual Ma...  

Create Snapshot on Multiple Virtual Machine
   • Create Snapshot on Multiple Virtual Machine  

How can I check if a port is open remotely
   • Identify if Windows TCP Ports are open on ...  

Installing software remotely on Multiple "Workgroup" Computers
   • Installing software remotely on Multiple "...  

PowerShell Installing software remotely on Multiple Computers
   • PowerShell Installing software remotely on...  

Unable to move OU in Active Directory (Access is denied)
   • Unable to move OU in Active Directory (Acc...  

PowerShell Installing software remotely on Multiple Computers
   • PowerShell Installing software remotely on...  

Get Multiple Services Status Remotely | Remotely Start or Stop Services
   • Get Multiple Services Status Remotely | Re...  

Get Date and Time from Multiple Remote Computers
   • Get Date and Time from Multiple Remote Com...  

PowerCLI - How to get HA restarted VM's List
   • PowerCLI - How to get HA restarted VM's List  

Get-Childitem - Search file on Local and Remote Computers
   • Get-Childitem - Search file on Local and R...  

Remotely Create Update Delete Registry Key on Multiple Computers
   • Remotely Create Update Delete Registry Key...  

Get service status from remote server's using PowerShell
   • Get service status from remote server's us...  

PowerShell Send email if windows service is not running

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

array(10) { [0]=> object(stdClass)#6292 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "oWRy_OlyXGg" ["related_video_title"]=> string(45) "Get Local Group Members From Remote computers" ["posted_time"]=> string(21) "2 года назад" ["channelName"]=> string(16) "Swapnil Infotech" } [1]=> object(stdClass)#6265 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "KLzMZT-jZIc" ["related_video_title"]=> string(77) "Развязка в войне / Принято срочное решение" ["posted_time"]=> string(21) "4 часа назад" ["channelName"]=> string(10) "NEXTA Live" } [2]=> object(stdClass)#6290 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "sAPGT1foHU4" ["related_video_title"]=> string(68) "IETF interim: Secure Asset Transfer Protocol (SATP) 2025-06-17 14:00" ["posted_time"]=> string(19) "1 час назад" ["channelName"]=> string(38) "IETF - Internet Engineering Task Force" } [3]=> object(stdClass)#6297 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "4ujdMX-K4As" ["related_video_title"]=> string(103) "Italy Cafe | Morning Coffee Shop Ambience & Positive Bossa Nova Jazz for Study, Relaxation and Work" ["posted_time"]=> string(0) "" ["channelName"]=> string(10) "Cat Coffee" } [4]=> object(stdClass)#6276 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "X6nU5QCF8XI" ["related_video_title"]=> string(75) "PowerShell Tutorials : Making a GUI Part 1 - Introduction & Hello World" ["posted_time"]=> string(21) "3 года назад" ["channelName"]=> string(16) "JackedProgrammer" } [5]=> object(stdClass)#6294 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "033SnwyJa88" ["related_video_title"]=> string(15) "Custom Metadata" ["posted_time"]=> string(21) "8 дней назад" ["channelName"]=> string(9) "Garf Tech" } [6]=> object(stdClass)#6289 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "JAspdJ-fdN8" ["related_video_title"]=> string(50) "How to Setup Database Mail in SQL server || Ms SQL" ["posted_time"]=> string(21) "4 года назад" ["channelName"]=> string(18) "Right to Learn @BK" } [7]=> object(stdClass)#6299 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "-ilfW8stDwg" ["related_video_title"]=> string(98) "How to Easily Send Windows EC2 Instance Logs to CloudWatch Log Groups in AWS | EC2 Log Streaming" ["posted_time"]=> string(21) "2 года назад" ["channelName"]=> string(16) "Cloud Quick Labs" } [8]=> object(stdClass)#6275 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "nec3aZM8aUY" ["related_video_title"]=> string(83) "Deep House Mix 2024 | Deep House, Vocal House, Nu Disco, Chillout Mix by Diamond #3" ["posted_time"]=> string(19) "1 год назад" ["channelName"]=> string(7) "Diamond" } [9]=> object(stdClass)#6293 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "3FGnHyjSaM8" ["related_video_title"]=> string(132) "Самая Красивая Музыка В Мире 🌿 Послушайте Эту Музыку И Вам Станет Легче" ["posted_time"]=> string(27) "7 месяцев назад" ["channelName"]=> string(12) "Peace Melody" } }
Get Local Group Members From Remote computers

Get Local Group Members From Remote computers

Развязка в войне / Принято срочное решение

Развязка в войне / Принято срочное решение

IETF interim: Secure Asset Transfer Protocol (SATP) 2025-06-17 14:00

IETF interim: Secure Asset Transfer Protocol (SATP) 2025-06-17 14:00

Italy Cafe | Morning Coffee Shop Ambience & Positive Bossa Nova Jazz for Study, Relaxation and Work

Italy Cafe | Morning Coffee Shop Ambience & Positive Bossa Nova Jazz for Study, Relaxation and Work

PowerShell Tutorials : Making a GUI Part 1 - Introduction & Hello World

PowerShell Tutorials : Making a GUI Part 1 - Introduction & Hello World

Custom Metadata

Custom Metadata

How to Setup Database Mail in SQL server || Ms SQL

How to Setup Database Mail in SQL server || Ms SQL

How to Easily Send Windows EC2 Instance Logs to CloudWatch Log Groups in AWS  |  EC2 Log Streaming

How to Easily Send Windows EC2 Instance Logs to CloudWatch Log Groups in AWS | EC2 Log Streaming

Deep House Mix 2024 | Deep House, Vocal House, Nu Disco, Chillout Mix by Diamond #3

Deep House Mix 2024 | Deep House, Vocal House, Nu Disco, Chillout Mix by Diamond #3

Самая Красивая Музыка В Мире 🌿 Послушайте Эту Музыку И Вам Станет Легче

Самая Красивая Музыка В Мире 🌿 Послушайте Эту Музыку И Вам Станет Легче

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]