Русские видео

Сейчас в тренде

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




Если кнопки скачивания не загрузились НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу страницы.
Спасибо за использование сервиса savevideohd.ru



PowerShell Send email if windows service is not running

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...  

Comments