Um - how come a "B"?
Main Topics
Browse All TopicsThis script remotely retrieves the status of the "Patch Link" service from Windows XP workstations. When it works the workstation's Ip address and service status is written to a file. Here is a success result.
192.168.10.20 - Patch Link Installed AND is Running
When it fails it is failing because it does not have permissions to access the workstation. Here is the error.
C:\Scripts\Ck4PatchLink.vb
Here is line 24 from the code.
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=imper
"\root\cimv2")
Here are the things I have done.
1. Verified the script is logging on to the remote workstation using the administrator account.
2. Verified administrator passwords.
3. Verified WMI security by => Right-Click 'My Computer' >> Manage >> Expand 'Services and Applications' >> Right-click 'WMI Control' >> Properties >> 'Security' tab >> Expand 'Root' >> Select CIMV2 and click security and verify that the account you are using has the appropriate perms and also check you have appropriate perms on the WMI location as well (normally "C:\WINDOWS\System32\WBEM"
4. Verified there are no firewalls between the two computers.
5. Confirmed that the script runs locally on the remote workstation.
6. There are no DCOM errors on the remote or local workstations.
7. Check DCOM on both workstations by start > run > dcomcnfg > expand component services > computers > right click on "my computer" > "default properties" tab > make sure enable distributed com on this computer is selected > default authentication level is "connect" and default impersonation level is "identity" > reboot if necessary
8. Workstations have been rebooted.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: sirbountyPosted on 2008-09-29 at 14:40:44ID: 22601004
First of all - you don't need to reference the fso twice, I've condensed that, and it appeared the error was coming from the WMI query, not the line you referenced.
Try this version and let me know...
Select allOpen in new window