Page History
...
For example, if you plan to run a Visual Basic script locally on the computer that hosts the SQL Server, your script may include the following code:
' Get the SQLcompliance Agent and registry objects Set objComplianceAgent = GetObject("winmgmts:{impersonationLevel=impersonate}
Wiki Markup |
---|
!\\" _ & strComputer & "\root\cimv2:Win32_Service='SQLcomplianceAgent'") Set objReg = GetObject("winmgmts:\{impersonationLevel=impersonate\}! |
...