Search found 182 matches

by rasimmer
Wed Feb 11, 2009 6:51 am
Forum: VBScript
Topic: Script help
Replies: 10
Views: 3580

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's all I have avail ...
by rasimmer
Wed Feb 11, 2009 6:03 am
Forum: VBScript
Topic: Script help
Replies: 10
Views: 3580

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)" _
by rasimmer
Tue Feb 10, 2009 7:04 am
Forum: VBScript
Topic: question about user accounts in ADUC
Replies: 3
Views: 1239

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...
by rasimmer
Tue Feb 10, 2009 3:30 am
Forum: Other Scripting Languages
Topic: combo listbox array
Replies: 2
Views: 4218

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 objFSO 'Error would occ...
by rasimmer
Fri Feb 06, 2009 12:01 am
Forum: VBScript
Topic: Bulk User Add
Replies: 6
Views: 2114

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 to rename a existing user acc...
by rasimmer
Tue Feb 03, 2009 5:04 am
Forum: VBScript
Topic: Who can figure this one out?
Replies: 5
Views: 2109

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))
by rasimmer
Tue Feb 03, 2009 12:23 am
Forum: VBScript
Topic: Is system 64 bit?
Replies: 2
Views: 1076

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 Win32_OperatingSystem" Set c...
by rasimmer
Tue Feb 03, 2009 12:23 am
Forum: VBScript
Topic: Is system 64 bit?
Replies: 2
Views: 1076

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 Win32_OperatingSystem" Set c...
by rasimmer
Sun Feb 01, 2009 11:17 pm
Forum: Other Scripting Languages
Topic: Auto-scrolling HTA output
Replies: 5
Views: 8831

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...