porkchopexpress
IS-IT--Management
I'm not sure if this is a VB question or a Windows question but i'm thinking someone will be able to help.
I have a logon script that maps drives and printers at logon which works very well the only issue is that every time someone logs on a object access failure audit is logged which is a pain. I've narrowed it down to which line causes it but i'm unsure what to change to stop the even logging.
This is the line
and the event
Has anyone seen this before when using VB logon scripts?
Thanks.
I have a logon script that maps drives and printers at logon which works very well the only issue is that every time someone logs on a object access failure audit is logged which is a pain. I've narrowed it down to which line causes it but i'm unsure what to change to stop the even logging.
This is the line
Code:
DomainString = objDomain.Get("dnsHostName")
and the event
Code:
Object Open:
Object Server: SC Manager
Object Type: SC_MANAGER OBJECT
Object Name: ServicesActive
Handle ID: -
Operation ID: {0,478729559}
Process ID: 680
Image File Name: C:\WINDOWS\system32\services.exe
Primary User Name: SERVER$
Primary Domain: DOMAIN
Primary Logon ID: (0x0,0x3E7)
Client User Name: USERNAME
Client Domain: DOMAIN
Client Logon ID: (0x0,0x1C88D505)
Accesses: READ_CONTROL
Connect to service controller
Enumerate services
Query service database lock state
Privileges: -
Restricted Sid Count: 0
Access Mask: 0x20015
Has anyone seen this before when using VB logon scripts?
Thanks.