Send-MailMessage gives a strange error message
hi
os: windows 2008r2, hyper-v edition
i have powershell scripts running long time on several hyper-v servers. on 1 of servers when send-mailmessage executed:
unable cast object of type 'system.configuration.internal.configurationmanagerinternal' type 'system.configuration.internal.iconfigsystem'.
@ line:1 char:17
+ send-mailmessage <<<<
+ categoryinfo : notspecified: (:) [], invalidcastexception
+ fullyqualifiederrorid : system.invalidcastexception
if open af powershell prompt , type:
ps c:\> send-mailmessage
i exact same.
does know solution that can solve issue?
best regards, brian
sounds issue .net framework, powershell, or os itself. start updating .net framework(maybe kb 2862067-&- kb 2833946) , see if fixes it. or see last programs/updates installed , remove them see if fixes it.
d
Windows Server > Windows PowerShell
Comments
Post a Comment