Tag Archives: Powershell

Send-MailMessage : Unable to connect to remote server Line

Send-MailMessage -to “[email protected]” -from “[email protected]” -Subject “Subject Info” -Body “Content” -SmtpServer “Server Name” Was not able to send mail from a Windows 2008 server and the error message displayed is… Read more »

Powershell Script to start/stop/disable service on multiple remote server

Powershell script to control windows service on multiple remote servers. Get-content “Filename” | foreach {set-Service -ComputerName $_ -Name “Service Name” -StartupType Disabled -Status Stopped} Note: Replace Filename with filename location… Read more »