Link to home
Create AccountLog in
Windows 7

Windows 7

--

Questions

--

Followers

Top Experts

Avatar of vbNewbie2009
vbNewbie2009

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 & "'")

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


ASKER CERTIFIED SOLUTION
Avatar of Darren CollinsDarren Collins🇬🇧

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of vbNewbie2009vbNewbie2009

ASKER

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?

Avatar of RobSampsonRobSampson🇦🇺

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....

Regards,

Rob.

Had administrator run script on network to elliminate the permissions problem.  Worked great, thanks!

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.

Windows 7

Windows 7

--

Questions

--

Followers

Top Experts

Windows 7 is an operating system from Microsoft. Features include multi-touch support, a redesigned Windows Shell with a new taskbar, referred to as the Superbar, a home networking system called HomeGroup, and performance improvements.