Tsuji/mrmovie,
So I started over and referred back to a MS Scripting Guy article talking to this but I swear this wasn't working yesterday...
Link to the article:
http://blogs.technet.com/heyscriptingguy/archive/2005/09/23/how-can-i-add-a-domain-group-to-the-local-administrators-group.aspx...
Tsuji,
Yes, it is a member of the domain.
MrMovie,
Sorry, I'm new at the VBScript arena, how can I write something in to log this?
Back to the strDomain question, what are you looking for here, the actual Domain name?
Tsuji,
I tried your recommended changes and it runs fine when logged on with a local admin account but at startup it returns an error:
"An invalid directory pathname was passed"
referring to the statement line:
"objGroup.Add(sgroup_adspath)"
Thoughts?
I have a script I got from a scripting guy and he swears this works for him, but I continue to get an error when the startup script runs on the workstations saying the error is on "Line 16, Char 1". I can run this interactively when logged on with Admin permissions without error. So right now...
DM4EVER - I'm dissecting a customers Novell Login so it can be converted for the Windows environment. Some of these groups in Novell overlap and need to map the same drive letter to different "UNC" paths.
I should probably step back and look at this from a different angle. Most likely some...
Question:
I'm mapping network drives based off of their Group Membership in Active Directory. I have that working fine, but I now need to add a statement that if they are a member of group "XYZ" then DELETE Mapped Drive P:\ and map the following drives.
Any help would be appreciated.
Thanks!
That part I'm aware of, so my apologies for not stating that. I would like this script to run with elevated privs without having to have the user/pass written in the script.
Thanks for pointing out my mistake.
Okay, I have a VBScript which is just modifying a registry key. I want this to run at logon throug an Active Directory Logon Script. Users are not local admins on the workstation so I need to figure out how to have this VBS run as a local admin. Can anyone help me with this please?
Thanks!
I'm running this script to kick this .exe of for a silent uninstall. I need it do a check first to see if the .exe exists and if not then QUIT, but if it does then call out the .exe in the path below.
Set wshShell = WScript.CreateObject ("WSCript.shell")
wshshell.run...
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.