Tag: windows admin blog

Send-MailMessage : Unable to connect to remote server Line

Send-MailMessage -to “reciever@domin.com” -from “sender@domain.com” -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 as listed below:

Send-MailMessage : Unable to connect to the remote server
At line:1 char:17
+ Send-MailMessage <<<< -to someone@somedomain.com -from “DhimantR@someDomain.com” -subject ” Troubleshooting” -Body “Some Text or file attachement” -sntpserver “smtpserver”
+ CategoryInfo : InvalidOperation: (System.Net.Mail.SmtpClient:SmtpClient) [Send-MailMessage], SmtpException
+ FullyQualifiedErrorId : SmtpException,Microsoft.PowerShell.Commands.Send MailMessage

Found that the the block was in McAfee, when Powershell was excluded from McAfee. Send mail was success.

Steps to exclude Powershell in McAfee is listed below:

  1. Right click on McAfee icon.
  2. Click on Virus Scan Console.
  3. Double click on Access Protection on VirusScan Console.
  4. On Access Protection tab.
  5. Go to Anti-Virus Standard Protection.
  6. On right hand side, double click on Prevent mass mailing worms from sending mail.
  7. On process to exclude tab, add PowerShell.exe at the end.
  8. Click OK.
  9. Click apply on Access Protection.
  10. Click OK.

Thanks,
WintelAdmin

Filed under: Windows(2003/2008/2012)Tagged with: , , , , , , , , , , , ,

“Remote” tab missing from My Computer properties.

Recently, one of our server was completed with inplace upgrade from Windows 2000 to 2003. After the upgrade, when you right-click My Computer icon in the Desktop and choose Properties, the Remote tab was missing. Because of this I was unable to configure remote desktop settings and this was fixed by registering the DLL file using the below command.

regsvr32 %systemroot%\system32\remotepg.dll

If you receive an error stating that the module could not be found, or stating no registration helper is registered for this file type (which indicates a corrupt DLL), extracting a new copy from the installation CD should help.

To extract the DLL from Windows the installation CD, type this in Command Prompt

EXPAND X:\I386\REMOTEPG.DL_ -R C:\WINDOWS\SYSTEM32

Note: considering X is you CD ROM and C as your Windows drive.

Thanks,
Winteladmin

Filed under: Windows(2003/2008/2012)Tagged with: , , , , , , , , , , ,

How to disable Tunnel/ISATAP Adapter?

There was an issue that whenever I ping a windows server, I was getting the response I was getting the response with IPV6 address. When checked on the source and destination, IPV6 was disabled. On detailed analysis found that the IPV6 was actually active on Tunnel adapter of the destination server.

Issue was fixed after disabling IPV6 from the Tunnel adapter on destination server by using the below command:

netsh int ipv6 isatap set state disabled
netsh int ipv6 6to4 set state disabled

You can also disable Teredo/isatap(Tunnel) adapter using the below command:

netsh interface teredo set state disable
netsh interface isatap state disable

Thanks,
Winteladmin

Filed under: Network (LAN/WAN), Windows(2003/2008/2012)Tagged with: , , , , , , , , , ,