TMG 2010 SP1 and Exchange 2010 SP1: TMG Managed Control service hangs (event id 31306 and 31309)

  • Run the Remove-EdgeSubscription Cmdlet in an administrative Exchange Powershell console
  • Manually remove any receive connectors in the Exchange Management Console
  • Removing all configuration settings in the E-mail policy group
  • Restarting the TMG Managed Control Service
  • Reconfiguring the E-mail policy

DPM 2010: agent install fail, event id 10016, agent operation failed ID 370

Error description:
The machine-default permission settings do not grant Remote Activation permission for the COM Server application with CLSID
{_CLSID_} to the user _machine_name SID (S-1-5-21-_SID_). This security permission can be modified using the Component Services administrative tool.

Quick solution:
To complete the protection agent configuration for the appropriate DPM server and firewall settings, from the command prompt, type c:\Program Files\Microsoft Data Protection Manager\DPM\bin\SetDpmServer.exe – dpmServerName _servername_.

Getting Dell Service Tag (Serial Number) using WMI

For Each strComputer In wscript.Arguments
 Set objWMIService = GetObject(“winmgmts:” _ & “{impersonationLevel=impersonate}!\\” & strComputer & “\root\cimv2″)
 Set colSMBIOS = objWMIService.ExecQuery _ (“Select * from Win32_SystemEnclosure”)
 For Each objSMBIOS in colSMBIOS
  Wscript.Echo strComputer & “: ” & objSMBIOS.SerialNumber
 Next
Next

Execute process remotely with WMI (VBScript)

How can I start a process and then wait until that process quits before terminating the script?

It offers the capability to execute process with the limitation of not allowing any user interaction – the process will run in the background without showing any interface on user’s session, which is a perfect feature for running non-interactive processes.

WMI, below is the code snippet in VBScript:

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2:Win32_Process")
intReturn = objWMIService.Create("command", Null, Null, intProcessID)

Reference: http://www.microsoft.com/technet/scriptcenter/resources/qanda/dec06/hey1208.mspx