I've got a script I'm working on but I've run into an error. I'm trying to\nmonitor a process on remote servers (its the same process for all three), and\nif the process ever ends I'd like this script to run a command line email\nprogram called Postie. Notifying me the process has stopped.\n\nUnfortunately I've got to embed the credentials within the script. I'm\ncurrently logged on as myself under XP (trying to develop the script), not\nthe user embedded within the script. Once I get the script working I'll\ntransfer it to a WIN2K3 server and, using Windows Task Scheduler, have it run\nintermittently throughout the day. The credentials that are embedded ARE\nlocal admins on the respective servers.\n\nHere's the code that's been developed so far:\n\n====================\n\n' Create Objects\nSet objFSO = CreateObject("Scripting.FileSystemObject")\nSet objShell = CreateObject("Wscript.Shell")\n\n' Create Variables\narrComputer = array("Computer1","Computer2","Computer3")\nstrProcess = "Process.exe"\nstrUser = "domain\username"\nstrPassword = "respective_password"\nstrResults = ""\nstrResultsFile = "C:\Windows\output.txt"\n\n' Process Each Computer\nFor Each Computer in arrComputer\nSet objSWbemLocator = CreateObject("WbemScripting.SWbemLocator")\nSet objWMIService = objSWbemLocator.ConnectServer(strComputer, _\n"root\CIMV2", strUser, strPassword, "MS_409", "NTLMDomain:" +\nstrDomain)\nSet colProcesses = objWMIService.ExecQuery _\n("Select * from Win32_Process Where Name = '" & strprocess & "'")\n\n' Only Log if Process Not Running\nIf colProcesses.Count = 0 Then\nstrResults = strResults & Computer & "," & strProcess & "," & " Not\nRunning" & vbCrLf\nEnd If\nNext\n\n'Write Process Results to File\nSet logFile = objFSO.CreateTextFile(strResultsFile, True)\nlogFile.WriteLine strResults\nlogFile.Close\n\n'Email Results (Modify this line as needed, if you can send a text body\n' as a parameter, then you won't need to create the results\nfile)\nobjShell.Run "postie -host:mailserver.com -from:fred@here -to:joe@there\n-s:ProcessResults -nomsg -a:" & strResultsFile\n\n====================\n\nHowever, when I try to run it I get the following error message:\n\nScript: c:\documents and settings\user\desktop\scripts\XXXXXX.vbs\n\nLine: 16\nChar: 5\nError: User credentials cannot be used for local connections\nCode: 80041064\nSource: SWbemLocator\n\nI'm not entirely sure why I'm getting this error, so any help would be\ngreatly appreciated.\nthx.