Windows 7
--
Questions
--
Followers
Top Experts
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:\\.\ro ot\cimv2")
Set objWMIFile = objWMIService.Get("Win32_L ogicalFile SecuritySe tting='" & Subfolder & "'")
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:\\.\ro
Set objWMIFile = objWMIService.Get("Win32_L
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
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
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....
Regards,
Rob.
Regards,
Rob.
Had administrator run script on network to elliminate the permissions problem. Worked great, thanks!






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
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.