Search found 182 matches
- Wed Feb 11, 2009 5:51 am
- Forum: VBScript
- Topic: Script help
- Replies: 10
- Views: 5181
Script help
It seems like it's working for me. I just picked a group I was part of, took the ! operator out, and then If UCase(strCN) = "RSIMM" Then Msgbox "Found RSIMM" and I got a msgbox. Then I added the ! operator and didn't get one. I am also testing on a Win2k3 Native mode domain, that...
- Wed Feb 11, 2009 5:03 am
- Forum: VBScript
- Topic: Script help
- Replies: 10
- Views: 5181
Script help
I just saw that you were looking for computers, not users. In that case you would just change "(&(objectCategory=person)(objectClass=user)" _to "(&(objectCategory=Computer)" _
- Tue Feb 10, 2009 6:04 am
- Forum: VBScript
- Topic: question about user accounts in ADUC
- Replies: 3
- Views: 1835
question about user accounts in ADUC
Before you add it to any login scripts, you need to login and run it to see if it works. It looks like you also have to create the REG and PRF files and put them on a share that users have access to. I would ensure you test with the same priveledges as the user to ensure it will run. If you are usin...
- Tue Feb 10, 2009 5:19 am
- Forum: VBScript
- Topic: question about user accounts in ADUC
- Replies: 3
- Views: 1835
- Tue Feb 10, 2009 2:30 am
- Forum: Other Scripting Languages
- Topic: combo listbox array
- Replies: 2
- Views: 5176
combo listbox array
Name Redefined is when you attempt to declare a variable that is already declared: Const OverwriteExisting = True Const OverwriteExisting = True 'Error would occur for "Name redefined" or if you were to do: Dim objFSO Set objFSO = CreateObject("Scripting.FileSystemObject")Dim obj...
- Thu Feb 05, 2009 11:01 pm
- Forum: VBScript
- Topic: Bulk User Add
- Replies: 6
- Views: 3254
Bulk User Add
Usually the "server is unwilling to process your request" is because your passing the wrong format (i.e. your passing cn=Jeff Smith,dc=dom,dc=com and don't have the "LDAP://" in the string) or your trying to write to a "read-only" field, such as the NAME. If your trying...
- Tue Feb 03, 2009 4:04 am
- Forum: VBScript
- Topic: Who can figure this one out?
- Replies: 5
- Views: 2887
Who can figure this one out?
Maybe change this line to ensure that you are using local credentials?
Set objWMI = SWBemlocator.ConnectServer(computer_name,"rootCIMV2",computer_name&"" &strUser,arrPwd(intArray))
Set objWMI = SWBemlocator.ConnectServer(computer_name,"rootCIMV2",computer_name&"" &strUser,arrPwd(intArray))
- Mon Feb 02, 2009 11:23 pm
- Forum: VBScript
- Topic: Is system 64 bit?
- Replies: 2
- Views: 1546
Is system 64 bit?
The method below works, I just want to know if there is a better way to do it? MsgBox "System is 64 Bit: " & Find64Bit() Function Find64Bit() Dim objWMI, strWQL, colItems, objItem, strVersion Set objWMI = GetObject("WinMGMTS://./Root/CIMv2") strWQL = "Select Caption from...
- Mon Feb 02, 2009 11:23 pm
- Forum: VBScript
- Topic: Is system 64 bit?
- Replies: 2
- Views: 1546
Is system 64 bit?
The method below works, I just want to know if there is a better way to do it? MsgBox "System is 64 Bit: " & Find64Bit() Function Find64Bit() Dim objWMI, strWQL, colItems, objItem, strVersion Set objWMI = GetObject("WinMGMTS://./Root/CIMv2") strWQL = "Select Caption from...
- Sun Feb 01, 2009 10:17 pm
- Forum: Other Scripting Languages
- Topic: Auto-scrolling HTA output
- Replies: 5
- Views: 11264
Auto-scrolling HTA output
Thanks for the both the responses, but the first one is the one that looks like it's going to work for me as my data is being outputted to a <SPAN> and I need to scroll just the data in the span. The second post is basically what I was doing, but if I had the scriptHTA running in the background I ju...