Search found 14228 matches

by jvierra
Mon Sep 15, 2008 7:10 am
Forum: Windows PowerShell
Topic: User ID Change Script
Replies: 1
Views: 1414

User ID Change Script

Best file CSV would be OldUser, NewUser "userid1","newuserid" This will allow for odd characters in the id if they exist. Assume input file like so: [c:myfile.csv] userid,newid "user01","newuser01" "user02,"newuser02" [end of file] import-csv users.csv |%{set-qaduser $_.userid -samaccountname $_.new...
by jvierra
Fri Sep 12, 2008 9:05 am
Forum: VBScript
Topic: Querying event log for LogFileName and TimeWritten
Replies: 3
Views: 4722

Querying event log for LogFileName and TimeWritten

I should have given you this solution first as it is the better solution. If you only want date then the string method is easiest. Here it is: Set dateTime = CreateObject("WbemScripting.SWbemDateTime") dateTime.SetVarDate Now - 1 WScript.Echo dateTime.Value TRhis will give you the exact 24 hour offs...
by jvierra
Fri Sep 12, 2008 7:15 am
Forum: VBScript
Topic: Take resource offline in a cluster
Replies: 8
Views: 7565

Take resource offline in a cluster

I think the error means that you have a firewall blocking th eadmin ports but it may also be that you do not have admin on the cluster from teh account you are using. Look at teh KB as it references many of these issues with SQS on a cluster. The SQS may not be installed completely correctly on teh ...
by jvierra
Fri Sep 12, 2008 5:04 am
Forum: VBScript
Topic: Take resource offline in a cluster
Replies: 8
Views: 7565

Take resource offline in a cluster

Here are soem things you need to take into account. http://support.microsoft.com/kb/254321 cluster.exe /cluster: resource "SQL Server Agent" /offlineFor a named instance (assuming that the instance name is SQL2):cluster.exe /cluster: resource "SQL Server Agent (SQL2)"/offline See - http://www.mydata...
by jvierra
Wed Sep 10, 2008 10:02 pm
Forum: Windows PowerShell
Topic: Installation Scripts
Replies: 1
Views: 1470

Installation Scripts

Just so you know - Group Policy has a sigle setting that will do exactly this.
by jvierra
Wed Sep 10, 2008 7:51 am
Forum: VBScript
Topic: Enumerate Nested Group Members
Replies: 7
Views: 5175

Enumerate Nested Group Members

Brett - save yourself a lot of headaches and code. Here is how to get teh group members when you already know the aDSPath or DN. Function enumGroup(ldapGroupPath)       Set Group = GetObject(ldapGroupPath)     WSript.Echo "Group:" & Replace(Group.Name, "CN=", "")     For Each Member In Group.Members...
by jvierra
Wed Sep 10, 2008 5:25 am
Forum: VBScript
Topic: vb script
Replies: 5
Views: 1431

vb script

Of course teh above code only satisfies the issue of walking through the spreadsheet in a controlled fashion. The functions only illustrate how you can separate out teh test information from teh control. Thi could be used to drive a reformatter or to load a dictionary with test parameters. WHat and ...
by jvierra
Wed Sep 10, 2008 4:10 am
Forum: VBScript
Topic: vb script
Replies: 5
Views: 1431

vb script

Here is a straight simple solution. It will not tolerate any changes to the speraadsheet format but should give an idea of how this kind of situation need to be approached. You can see that it is trivial once you separate the steps out into usable funcoins and account for the "gatchas" like blank li...
by jvierra
Wed Sep 10, 2008 2:40 am
Forum: Other Scripting Languages
Topic: to get a string from a notepad and use it in html
Replies: 4
Views: 4013

to get a string from a notepad and use it in html

Hah - ust thought of another unique way to understand this message: The original post is for "jscript" and "notepad". Perhaps the user wants to read from an open notepad instance and convert it into html using jscript. Of course the reference to Javascript adds more confusion along with the request ...
by jvierra
Tue Sep 09, 2008 8:14 am
Forum: VBScript
Topic: Adding Group membership of an userID to Excel
Replies: 2
Views: 2916

Adding Group membership of an userID to Excel

Here is the missing user getter safely function. I had to modify it for you case. The is no 'DisplayName" so you need to create it from the till. If yu are looking fo Exchange Display name you need to query a different object for that. It is part of the users mailbox and not teh users account. ' lda...