J
John
Hello,
We want each workstation to run it's anti-virus scan during the
shutdown of the computer. We use AVG anti-virus. I have setup the GPO to run
a script called AVGLogoff.vbs. However when it runs we get the error access
denied. I believe it is because the script's path isn't relative to the
local workstation. Below is the script, any help would be greatly
appreciated.
John
~AVGLogogg.vbs~
Const ABOVE_NORMAL = 32768
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set objStartup = objWMIService.Get("Win32_ProcessStartup")
Set objConfig = objStartup.SpawnInstance_
objConfig.PriorityClass = ABOVE_NORMAL
Set objProcess = GetObject("winmgmts:root\cimv2:Win32_Process")
objProcess.Create "c:\progra~1\grisoft\avg6\avgscan.exe /comp c:\*.*
/clean", Null, objConfig, intProcessID
We want each workstation to run it's anti-virus scan during the
shutdown of the computer. We use AVG anti-virus. I have setup the GPO to run
a script called AVGLogoff.vbs. However when it runs we get the error access
denied. I believe it is because the script's path isn't relative to the
local workstation. Below is the script, any help would be greatly
appreciated.
John
~AVGLogogg.vbs~
Const ABOVE_NORMAL = 32768
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set objStartup = objWMIService.Get("Win32_ProcessStartup")
Set objConfig = objStartup.SpawnInstance_
objConfig.PriorityClass = ABOVE_NORMAL
Set objProcess = GetObject("winmgmts:root\cimv2:Win32_Process")
objProcess.Create "c:\progra~1\grisoft\avg6\avgscan.exe /comp c:\*.*
/clean", Null, objConfig, intProcessID