WMI Error Windows 7 OS

I am running on windows 7 and can run a script for reviewing ACEs of a given folder; however, another user running on windows 7 is unable to run this same script.  Is there a component that needs to be installed on the user's computer, or a change to the code that would allow it to work for them?  

The error message is:Line: 20
Char: 2
Error: Not Found
Code: 80041002
Soruce: SWbemServicesEx

Here's lines 19 and 20 from my script:
      Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
      Set objWMIFile = objWMIService.Get("Win32_LogicalFileSecuritySetting='" & Subfolder & "'")
Who is Participating?
Daz_1234Connect With a Mentor Commented:
I apologise if this sounds simplistic.  Is it safe to assume that both users have Full Control permissions to the folder being examined?

vbNewbie2009Author Commented:
That's quite alright, sometimes we get too deep in the weeds to see the simlpistic :-)  No, they do not both have the same permissions to this folder.  Would that be  a cause for this error message?
To see the security settings of the folder, you need appropriate permissions to do so.  Can the user manually examine the security information on that folder?  I would guess not....


vbNewbie2009Author Commented:
Had administrator run script on network to elliminate the permissions problem.  Worked great, thanks!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.