
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-12-2008 08:23 PM
If anyone is interested in this tool, let me know and I'll clean up the code (some of it is hard-coded) and upload it. It requires the latest .Net framework and psexec.exe
Edit : lastest version attached below.
- Labels:
-
Custom Actions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-04-2009 12:31 AM
1) It marks which ones completed successfully (strikeout) and which ones didn't (bold)
2) These will be persistent if you check the box on the options page
3) They can be reset by pressing the 'Clear Lists' button
4) A timer has been added. The interval (in hours) can be set through the options page. It will only cycle through the computers you have checked.
5) No more batch file. While this may seem good at first, I had to resort to copying the lsclient.exe to the Windows folder of the remote machine.
6) Be sure that the LSClient Path in Options points to a network share accessable by all computers. (should be in the form of '\\server\share')
There are still some places where error-checking/validation does not exist, but as long as you don't do anything weird with the config, everything should be fine.
Please report any bugs you encounter.
NOTE : Another buggy attachment. Please see below for real file.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-03-2009 10:39 PM
I'm working on eliminating the batch file altogether, but am running into an "Access Denied" error when the invoke is called. WMI testing programs tell me everything should be fine. Here is the code :
Private Sub ExecuteFile(ByVal comp As ListViewItem)
Dim wmi As ManagementClass
Dim wmi_in, wmi_out As ManagementBaseObject
Dim retValue As Integer
Try
wmi = New ManagementClass("\\" & comp.Text & "\root\cimv2:Win32_Process")
' get the parameters to the Create method
wmi_in = wmi.GetMethodParameters("Create")
' fill in the command line plus any command-line arguments
' NOTE: the command can NOT be on a network resource!
wmi_in("CommandLine") = """" & My.Settings.ClientPath & "\lsclient.exe"" " & My.Settings.LSServer
' do it!
wmi_out = wmi.InvokeMethod("Create", wmi_in, Nothin)
' get the return code. This not the return code of the
' application... it's a return code for the WMI method
retValue = Convert.ToInt32(wmi_out("returnValue"))
Select Case retValue
Case 0
' success!
CompFinishedList.Add(comp)
Case 2
Throw New ApplicationException("Access denied")
Case 3
Throw New ApplicationException("Insufficient privilege")
Case 8
Throw New ApplicationException("Unknown failure")
Case 9
Throw New ApplicationException("Path not found")
Case 21
Throw New ApplicationException("Invalid parameter")
Case Else
Throw New ApplicationException("Unknown return code " & retValue)
End Select
Catch ex As ApplicationException
If Not CompErrorList.Contains(comp) Then
CompErrorList.Add(comp)
End If
MsgBox(ex.Message)
End Try
End Sub
I've also been running into this error when executing the batch file lately, but it isn't WMI that returns the error, just the following line in the .bat :
\\Path\To\Client\lsclient.exe server
Running the command from a prompt works fine, even as a regular user, but from the batch it fails every time. Except, of course, on my machine, as well as a test server I have sitting next to me.
Anyone have any ideas?
EDIT : The WMI error code is 2147217407. Searching Google for info now.
EDIT : Nevermind. Resolved.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-27-2009 09:54 PM
I'm also going to look into creating that timer I mentioned in the previous post. I'll make it optional, probably a button you can turn on and off.
If you have any requested features, please feel free to list them here. I'll post the next version as soon as it's ready.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-14-2009 04:11 PM
2) The program already has error checking for this. I'll go back and review it to make sure it's working properly. If you can send me any details of the error you're receiving, it'd be helpful.
3) This was designed to run lsclient only once, for testing your clients and troubleshooting connection errors. I suppose I could implement some sort of timer, which would emulate active scanning. I'll look into this.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-13-2009 11:53 PM
Once the file is copy I thought about running a batch file to run it on startup. How did you run yours once it was deployed to all computer? Please let me know.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-21-2008 08:35 PM
I put in the fully qualified domain name (domain.local) and the full name for the LS server (LSserver.Domain.local) and it worked.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-21-2008 08:31 PM
System.Runtime.InteropServices.COMException(Ox8007203A): The Server is not operational.
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_AdsObject()
at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne)
at System.DirectoryServices.DirectorySearcher.FindAll()
at LSClient_Deploy.Form1.GetComputerNames(String DomainString) in C:\Documents and Settings\alexanderdav\My Documents\Visual Studio 2008\Projects\LSClient Deploy\LSClient Deploy\Form1.vb:line 58
In the config dialog I have
DomainName
LSServerName
c:\LSclient
I copied lsclient.exe into c:\LSclient on the machine from which I am running the deployment tool.
Thanks.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2008 10:52 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2008 10:43 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2008 10:38 PM
EDIT : New version on the next page
