Search found 25 matches

by ajgtx
Thu Nov 20, 2008 6:07 am
Forum: VBScript
Topic: AD Query - Multiple Domains/specific OUs
Replies: 3
Views: 3465

AD Query - Multiple Domains/specific OUs

My code does work with this as the query string: ;(&(objectCategory=computer)(objectClass=*)(CN=*));distinguishedName,pwdLastSet,name;subtree">< L D A P://my.domain.com>;(&(objectCategory=computer)(objectClass=*)(CN=*));distinguishedName,pwdLastSet,name;subtree >But I need to specify the OU in which...
by ajgtx
Fri Nov 14, 2008 6:52 am
Forum: VBScript
Topic: AD Query - Multiple Domains/specific OUs
Replies: 3
Views: 3465

AD Query - Multiple Domains/specific OUs

Wow, I think this did it: TargetDN="<LDAP://" & strServer & "/CN=Computers,DC=mycompany,DC=local>" That is exactly the kind of syntax that I was looking for. my smaller version of the script is working, now I just need to consolidate the numerous scripts that I have for each domain into one. Thank y...
by ajgtx
Fri Nov 14, 2008 5:12 am
Forum: VBScript
Topic: AD Query - Multiple Domains/specific OUs
Replies: 3
Views: 3465

AD Query - Multiple Domains/specific OUs

I have a script that will query a specific set of OU's and return a number of computer object properties to a output text file. The only issue is, I am dealing with multiple domains, so a "runas /user:<domain><username> "cscript.exe x:scriptsscript.vbs" is required. I have a script now that will que...
by ajgtx
Wed Jul 02, 2008 4:19 am
Forum: VBScript
Topic: Computer Disabled when?
Replies: 1
Views: 754

Computer Disabled when?

Still having problems tracking down the code for determining when a computer object was disabled. Anyone? I'm looking for a Master Jedi VBscripter here... :)
by ajgtx
Mon Jun 30, 2008 6:15 am
Forum: VBScript
Topic: Computer Obj Creation Date ...
Replies: 1
Views: 807

Computer Obj Creation Date ...

Greetings!
Script #1:
I'm looking for a script that checks to see how many days old a computer object is.

Script #2:
I'm also looking for one that checks to see how long it has been disabled for.

Thanks!
by ajgtx
Thu Jun 26, 2008 4:46 am
Forum: VBScript
Topic: Get User that is running the script
Replies: 2
Views: 973

Get User that is running the script

Hmm, that didn't work. That should work in vbs as-is?
by ajgtx
Thu Jun 26, 2008 1:06 am
Forum: VBScript
Topic: Get User that is running the script
Replies: 2
Views: 973

Get User that is running the script

Is there an easy way to get the username of who is actually running the script?

I'd like to output this, and other information, to a log file.

Thanks!
by ajgtx
Tue May 27, 2008 4:42 am
Forum: VBScript
Topic: Query AD for Disabled Computers
Replies: 0
Views: 3030

Query AD for Disabled Computers

I need to query AD, given a DN, for disabled computers. I am currently querying for other information such as the computer name and the groups that it is a member of. Here is some of the code that I am working with: Do Until inputFile.AtEndOfStreamTargetDN = inputFile.ReadLine 'each line from the in...
by ajgtx
Thu May 08, 2008 11:19 pm
Forum: VBScript
Topic: VBscript to check/uncheck...
Replies: 4
Views: 1891

VBscript to check/uncheck...

From reading about the freeware version of the app, it doesn't appear that there are any GPO edit commands that come with that version of the software. How difficult/feasible would it be to create my own scripts/commands using PowerShell to edit Group Policies?
by ajgtx
Thu May 08, 2008 5:29 am
Forum: VBScript
Topic: VBscript to check/uncheck...
Replies: 4
Views: 1891

VBscript to check/uncheck...

Doesn't have to be VBscript, just anything to get the job done. Preferrably not with a 3rd party app though, if it can be avoided.