OK Here we go for those of you who are in suspense. I guess you need to declare the priviledges you need when you make your connection like below.
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate ,(LoadDriver)}!\\" & _ strComputer & "\root\cimv2")
OR...
Hmmmm interesting.
I didn't know that was there, but unfortunatly that wasn't it. Admins have full control in every namespace. Thanks though.
MCSE 2003: Security
MCDBA
Ok guys,
I've been away for a while but this one has me stumped.
This code works fine on a XP box but I get Access Denied on a 2k3 box. I'm an Admin on both, can anyone tell me why?
strComputer = "."
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer &...
Being in a corporate enviornment myself, I'd check with corporate. Of course unless you're the MAIN corporate admin. They get kinda funny when you start making unapproved changes that could impact the network.
BE SURE TO READ EVERYTHING, THIS WILL STOP THE GENERAL JOE, BUT WILL NOT STOP SOMEONE WHO KNOWS WHAT THEY ARE DOING!!!!!
Also you may find that you have to manually change the .vbs extension to .vbe.
Description...
lol
I just got what you were talking about. I have a habit of running my scripts for a command prompt and use a cscript engine. Sorry about that. I bet it produced a few pop-ups.
This will get you started. [sleeping2]
What can I say I got bored. Hopefully you don't need a binary or Multistring value.
Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
const REG_SZ = 1
const REG_EXPAND_SZ = 2
const REG_BINARY = 3
const REG_DWORD = 4
const REG_MULTI_SZ = 7...
Try this. I don't have that value so I can't make an exact test. I have written a recursive function also to check all the reg keys from a given Key depth, if you need it. I noticed a lot of sub keys in mine. And maybe this is what your looking for.
Const HKEY_LOCAL_MACHINE = &H80000002...
Are you blocking any ports? AD needs certain ports to communicate. including but not limited to LDAP and Kerberos.
http://www.microsoft.com/technet/prodtechnol/windows2000serv/technologies/activedirectory/deploy/confeat/adrepfir.mspx
If you are getting a trust error you may have to pull the...
Oh by the way. netdom is a useful tool to use to add workstations to the domain remotely. netdom /? will give you the options. This is a command line utility.
No, here's the deal basically. If the computer has to have a computer account to get a trust relationship. This is created when you join the computer to the domain.
This can be done in Control Panel->System Properties of the local box. You will find under the ComputerName tab at the bottom a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.