Posts

sending email to multiple users using power shell.

hi experts, not able send mail below code.  $body = convertto-html -head $head -body "$reportoutput" string[]]$recipient =(" mail_id_1@email.com","mail_id_2@email.com ") $smtpserver = "smtp server name" $msg = new-object net.mail.mailmessage $smtp = new-object net.mail.smtpclient($smtpserver) $msg.from = " from@email.com " $msg.to.add($recipient) $msg.subject = "email message" $msg.isbodyhtml = 1 $msg.body = $body $smtp.send($msg) please find below error  exception calling "add" "1" argument(s): "the specified string not in form required e-mail address." @ z:\personal\powershell\script\remote.ps1:20 char:12 + $msg.to.add <<<< ($recipient)     + categoryinfo          : notspecified: (:) [], methodinvocationexception     + fullyqualifiederrorid : dotnetmet...

Active DIrectory Migration FAQ quetsion from user

dear team, please faq user on active directory migration.  regards, hebbar hi  start on these; https://technet.microsoft.com/en-us/library/cc974332%28v=ws.10%29.aspx?f=255&mspperror=-2147217396 https://technet.microsoft.com/en-us/library/cc974368(v=ws.10).aspx http://blog.fpweb.net/active-directory-migrating-user-accounts-passwords/#.wc9ptyvoliu this posting provided no warranties or guarantees,and confers no rights. best regards burak uğur Windows Server  >  Directory Services

Getting the output of a batchfile to Powershell

greetings. have list of batchfiles triggers powershell script, throw error message when different errors encountered in execution.  in end of batchfile, have included: if %errorlevel% neq 0 (echo error in previous command & exit /b %errorlevel%) and works fine in itself.  however due requirements need use new separate batchfile triggers powershell, in turn lauch batchfiles mentioned earlier.  in new powershel, have included:  $process = start-process $batchfile.fullname -argumentlist $argumentlist -passthru -wait and able $process.exitcode. output or error message raised first batchfile instead.  any advice? hi bdrc, if want to capture output of batch file, please try run batch file like: d:\test.bat argu1 argu2 and cmdlet start-process will start a process with the batch file. for more detailed information, please refer article: how execute .bat file within powershell job if there else regarding...

error Blue Screen en windows server 2008 enterprise sp1

firma con problemas:   nombre del evento de problema:    bluescreen   versión del sistema operativo:    6.0.6001.2.1.0.274.10   id. de configuración regional:    3082 información adicional del problema:   bccode:    1a   bcp1:    0000000000004000   bcp2:    fffffa800703aa30   bcp3:    0000000000000004   bcp4:    00000000005ea09d   os version:    6_0_6001   service pack:    1_0   product:    274_2 archivos que ayudan describir el problema:   c:\windows\minidump\mini121812-03.dmp   c:\users\xxxx\appdata\local\temp\wer-159199-0.sysdata.xml   c:\users\xxxx\appdata\local\temp\wera5df.tmp.version.txt lea nuestra declaración de privacidad:   http://go.microsoft.com/fwlink/?linkid=50163&clcid=0x0c0a la causa de ...

DEP Stopped our Spooler Subsystem App on our Windows 2003 Standard Edition Server

how can spooler subsystem restarted. tried reset dep settings in control panel not take, print spooler start stops after few minutes. can have dep not stop program? thanks. hi, how confirm dep stopping spooler subsystem app? there related event logs in event viewer issue? , generally, spooler subsystem error may caused following common reasons: spooler files corruption spooler registry entries corruption printer driver incompatibility please check following article regarding fix spooler subsystem error , have try see if helps: http://www.besttechtips.org/how-to-fix-spooler-subsystem-app-error/ please note: since web site not hosted microsoft, link may change without notice. microsoft not guarantee accuracy of information. best regards, wendy please remember mark replies answers if help. if have feedback technet subscriber support, contact tnmff@microsoft.com .  Windows Server ...

FYI: Testing Active Directory Replication Latency/Convergence Through PowerShell (Update 2)

see: (2014-02-01) testing active directory replication latency/convergence through powershell (update 2) jorge de almeida pinto [mvp-ds] | principal consultant | blog: http://jorgequestforknowledge.wordpress.com/ might link has been been broken.here link http://jorgequestforknowledge.wordpress.com/2014/02/01/testing-active-directory-replication-latencyconvergence-through-powershell-update-2/ nice jorge. sharing. regards~biswajit disclaimer: posting provided & no warranties or guarantees , confers no rights. mcp 2003,mcsa 2003, mcsa:m 2003, ccna, mcts, enterprise admin my blog domain controllers inventory-quest powershell generate report bulk servers-lastbootuptime,serialnumber,installdate generate report installed hotfix bulk servers Windows Server  >  ...

DFS Replication backlogs, replication keeps restarting from scratch

Image
hi, we have 2 win 2008 r2 file servers using dfs replication between them. @ different sites have 1g fiber between them , on same subnet dedicated replication network.  these have been , running number of years , stable , trouble free. time time we've noticed files getting out of sync , run replication test report , find 1 of replication groups might have backlog, clear. we seem have had increasing problems recently, took time set sensors monitor replication backlogs try , bottom of problems. i'm seeing around midnight on days replication queues rapidly increase in size bit or lot. these backlogs take many hours clear. better explained graph below. each line 1 queue, in or out replication group. i've checked event viewer , dfsr not generating significant events around time. can't see scheduled jobs on either server @ time. chkdsk has come clean on both servers. it's difficult sure we've had monitoring few days, gut feeling relatively new problem. f...