GetPrivateQueuesByMachine - Get A List Of Queues From A Remote Machine

Dec 4, 2009

I'm using the 2.0 framework to get a list of queues from a remote machine. Sometimes the machine has a firewall and then the user has to wait 80 seconds or so before an exception is thrown stating that the machine is unavailable. Questions: Is there any way that I can set/change the timeout for GetPrivateQueues ByMachine? Is there any other method I can call before running GetPrivateQueuesByMachine to see whether the machine is responding? One that has configurable timeout, Any other solution?

View 1 Replies


ADVERTISEMENT

Use FtpWebRequest On A Remote Machine?

Jun 20, 2011

I would like to use FtpWebRequest on a remote machine but I am getting remote server returned an error: (504) Gateway Timeout How can I fix this?

Here is my sample code:

Dim localFile As String = Nothing
Const remoteFile As String = "INBOX/"
Const host As String = "ftp://111.11.11.111/"

[code].....

View 2 Replies

Connect To The Webservice In Remote Machine?

Apr 7, 2009

I want to know how to connect to the webservice in remote machine

View 5 Replies

Read Eventlog On A Remote Machine

Oct 14, 2002

I am having trouble reading the event log on another machine. From what I can gather the .geteventlogs("server01") method should return the logs from the computer named "server01" but it doesn't work for me. It returns the results from the local machine instead.

[Code]...

View 5 Replies

VS 2005 Connect To .mdb On Remote Machine

May 27, 2010

with vb.net OLEDB (not DSN- ODBC) + access03 + winxp please specify the connection string to connect to a .mdb file on a remote machine with OS winxp .i am confused what is the data source to be used in my connection string

View 4 Replies

VS 2010 - Execute App On Remote Machine Using WMI

Jan 1, 2011

I am trying to execute exe file on remote machine using wmi. Its basically work on 50%, but problem is interactive process it execute the app but i can't see any window or form but I can see app is running in the task manager. Does not need to be vwi, might different method, but I dont want to use psexec tool.

My function:
Public Function StartEXEonRemote(ByVal machine As String, ByVal file As String) As String
Dim wmi As ManagementClass
Dim wmi_in, wmi_out As ManagementBaseObject
Dim retValue As Integer
[Code] .....

View 4 Replies

VS 2010 Execute App On Remote Machine?

Dec 21, 2010

im trying to execute exe file on remote machine using wmi. Its basically work on 50%, but problem is interactive process it execute the app but i can't see any window or form but i can see app is running in the task manager. I spend 3 days on this with no luck.Does not need to be vwi, might different method, but i dont want to use psexec tool.My function:

Public Function StartEXEonRemote(ByVal machine As String, ByVal file As String) As String
Dim wmi As ManagementClass
Dim wmi_in, wmi_out As ManagementBaseObject

[code].....

View 1 Replies

Check Listening Ports On Remote Machine?

May 20, 2012

Check listening ports on remote machine

View 1 Replies

Determine All The Users Logged In To A Remote Machine?

May 4, 2010

We're trying to write code to obtained all the logged on users to a remote machine.

We have the following, which only seems to identify users if they are logged in locally. However, if they're logged in through some other means (such as remote desktop), it doesn't seem to pick those users up.

How can we obtain all the users logged into a machine while excluding those users who only have a process running but aren't logged in (eg, a service is installed by them and might be currently running under their name)?

Dim WMIObject As String = "winmgmts://" & strComputerName.Text & "/root/cimv2"
Dim oComputerQuery As Object
'Contains a sorted list of every user logged into the system

[Code].....

View 1 Replies

Find Out Who Is Running The Process On The Remote Machine

Feb 26, 2012

I am trying to get a list of processes running on remote machine and the username running them. So far I've got:

Dim ps As System.Diagnostics.Process
For Each ps In System.Diagnostics.Process.GetProcesses("myserver")
ListBox1.Items.Add(ps.ProcessName)
Next

View 1 Replies

Get Remote Machine's Current Time In UTC Format?

Apr 23, 2012

Is there any direct method in dot net to obtain remote machine's current time. (Not using WMI).If a post answers your question

View 4 Replies

Remote Server Machine Does Not Exist Or Is Unavailable

Jan 26, 2010

When am trying read Windows 2008 serivices Remotely from 2003 server by using following VB Script :

'Objective: TO check the SQLServicesHeartbeat of all SQL Server services and send email
'if any state of service is not running
'on error resume next
Set iFSO = CreateObject("Scripting.FilesyStemObject")
Set oFSO = CreateObject("Scripting.FilesyStemObject")
[Code] .....

I am able to get read all windows 2003 servies, but not able to read Windows 2008 SQL Services Remotely, error throwing in the above line : Set objWMIService = GetObject("winmgmts:\" & strComputer & "ootcimv2").

View 1 Replies

Want To Kill A Process Running On Remote Machine

Mar 30, 2011

i want to list the processes running on other machines on LAN and then to kill one/many process(es).

View 6 Replies

WMI Connection To A Remote Machine Using Specified Administrator Credentials

Apr 3, 2010

I'm having an issue here with making a WMI connection to a remote machine using specified administrator credentials.I have the WMI code inside a function, I pass it the computer's name and it returns the WMI information that I am requesting as a string (or in this particular case, an integer) from the remote machine. I'm positive it works, and returns the information I need using specified admin username/password. NOW, the issue I am having is related to (it seems) calling this function from a backgroundworker. [code] "Value does not fall within the expected range." I literally have no clue why this would throw that exception, yet when I call this function from lets say just a random button on my form, it works beautifully. The key here is that I need my WMI requests/processing to run in the background.

View 18 Replies

.net - View Status Of Service Running On Remote Machine?

Apr 5, 2010

The conditions are I don't have administrator privilege I want to see the status of a service in remote machine (server)I use the following code (vb.net with framework 2.0) to see the status

Dim sqlSvc As ServiceController
Svc = New ServiceController(My.Settings.serviceName, My.Settings.machineName)
If sqlSvc.Status.ToString.Equals("Running") Then
displayStatus("success", sqlSvc.Status.ToString)
Else
displayStatus("error", sqlSvc.Status.ToString)
End If

When running the code, InvalidOperationException is raised and found out that I need admin right in the server.Can I lookup the status of the service without having admin right in remote machine ?

View 2 Replies

Send An Image To Remote Machine And Load It Into Picuture Box?

Sep 26, 2009

I know how to program an application to load the desktop image into the picturebox on a timer. Thats really easy.

But how would I load an image from another IP Address, i.e. another remote machine, into the picturebox on this application.[cod]e...

View 2 Replies

Simulate The Double Click Event On The Remote Machine?

Apr 29, 2010

I m writing a code for Telnet application. I want to simulate the double click event on the remote machine. I think mouse_event api will be used but i m unable to implement it..

View 1 Replies

VS 2008 Create A Shared Folder On A Remote Machine?

Sep 30, 2010

Is it possible to create a folder on a remote machine that has no previously shared folders? I can do this...

vb
Dim fname As String = "\10.1.x.yDocumentsMyFolderName"
IO.Directory.CreateDirectory(fname)

[code].....

View 3 Replies

[2008] Close Open Files On Remote Machine?

Apr 27, 2008

Dont know how easy this would be, but basically I'm just wondering if there is any way in VB.net you can close open files on a remote PC.In my scenario the vb.net app would be running with domain admin permissions in most cases so would have access to things like the remote Computer Management console, which of course has the Open Files section in it which lets you close any open files on the remote machine its connected to.So I fugured there must be some way to do it in vb.net... I just dont know if its going to be more hassle than its worth and I dont really know where to start looking (ive used googled but not had much joy).

View 6 Replies

Execute A Program On A Remote Machine - Psexec Doesn't Work

Jan 29, 2009

I'm trying to execute a program on a remote machine using this code

Dim objProcess As New System.Diagnostics.Process
objProcess.StartInfo.FileName = "cmd.exe"
objProcess.StartInfo.Arguments = " /c PSExec /accepteula \NTAPPMTMIGL01 -u $AdminUsrLocal -p tjdsi44 c:winntMicrosoft.NETFrameworkv2.0.50727gacutil.exe"

[code]....

If I use it, it works since I'm an admin but if someone else use it, I got "The system cannot find the file specified."Is there any other program I can use that can impersonate, I've already tried xcmd.exe but it doesm't work either.

View 2 Replies

Make An Application That Can Control The Processes And The Services In A Remote Machine?

Feb 17, 2012

I am a new member here and a new user of VB.Net.So, I would like to know how to make an application that can control the processes and the services in a remote machine.

View 4 Replies

Remote Data Objects 2.0 Installation At Client Machine For Application?

Jun 28, 2010

I Converted my project(Its contain the rdo2.0's) from vb6.0 to Vb.net 2005. Its working fine in development machine( in Development have the Vb6.0 and Vb.net 2005). But its not work in Client machine. Its asking the rdo2.0 introp's. How to install the rdo2.0 's to client machine with out installing vb6.0. If i installed vb6.0 at client machine its work fine. How to install rdo2.0's in client machine without vb6.0.

View 2 Replies

How To Use Queues In .net

Aug 1, 2009

how to use queues in vb.net. i want to make it like when ever i add new string into the queues, it will compare the value inside the queues first b4 add into the queues and if compare half way through, there is same value. the value will not add into the queues.

View 13 Replies

Process - "Couldn't Connect To Remote Machine." Error In .net

Sep 8, 2011

I want to get the process in a remote system using vb.net for that i have use getProcess() method. when i am trying to execute the code it is showing an error like "Couldn't connect to remote machine" .i know there should have certain privilege to use this.but i don't know how to set the privileges and what all are it.

View 1 Replies

[VS 2005] Service Control Manager Privileges - Communicate With A Windows Service On A Remote Machine On The Network

Jul 23, 2009

I am trying to communicate with a Windows service on a remote machine on the network but i keep getting an exception saying the following: "System.InvalidOperationException: Cannot open Service Control Manager on computer 'machine001'. This operation might require other priviledges. ---> System.ComponentModel.Win32Exception: Access is denied.

[Code]...

View 4 Replies

Copy File To A File Share On Remote Machine

Aug 14, 2009

I am developing an Application in VB.Net 2.0. I have a module which would copy files from the Local Machine to a shared folder on remote machine. This shared folder on the remote machine is an authenticated folder. So, after searching on the Internet I found the following piece of code.[code]Another point to note is that when I connect to the File Share using Windows Explorer and then try to execute the application, it works properly.I am not sure why I am getting the error when I do not connect to the Shared Folder using Windows Explorer.Do I have to set some property so that the Credentials passed in the authentication are used.I also checked some posts that suggested setting up Mapped Drive to the Shared Folder on the Local machine and then to copy the file using IO.File.Copy function. However, I cannot use this as this Remote Folder should be only accessed through the application and not in any other case by the User. The users will not even have the credentials to this remote Server as it will be configured by the admin.So, Is there any way in which I can set this up and transfer the files from local machine to a remote shared folder?

View 3 Replies

Get The List Of All Sql Servers On Machine

Apr 12, 2012

how can i get the list of all sql servers on my machine i am trying this code i have vs 2010 and sqlexpress 2008 r2 i put breakpoints seems everything working fine but its not getting any server i don't know whats wrong with it here is the code on button click this suppose to work to get all servers and list them in the combobox cmbServer [Code]

View 5 Replies

'Producer Consumer' Design Pattern Using Queues?

Jul 23, 2009

I'm trying to replicate a design pattern used in a graphical programming language called LabVIEW. One thread produces commands, and another thread, or series of threads, consumes the commands.This is very similar to using Queues in VB...but there doesn't seem to be an easy way to start the consumer thread when new items are added to the queue.

Here is what I would like to accomplish, please let me know if there is a straightforward way to accomplish this with out of box .Net functionality.1) Start the Consumer Thread...it sits idle, waiting for some new commands to appear in its Queue.2) Producer places a few commands into the Queue. Example: "Home X Axis", "Home Y Axis", "Initialize Pump", "Display Ready Message"3) Consumer thread 'wakes up' at seeing the new commands, then performs the 4 tasks specified in 2.4) Consumer thread goes 'idle' again, and simply waits for new commands to appear in the Queue.

Process can continue on and on forever. The main problem I see with Queues is that there is no 'Wait for Something to Appear in Queue then Retrieve it" functionality. I don't want to use a perpetual loop to keep checking ever n milliseconds.

View 1 Replies

.net - Using Multicast Queues In System.Messaging And MSMQ 3.0?

Dec 21, 2011

I am trying to use MessageQueues to notify users of an application of data changes using the Multicast feature, but can't get it to work : the workstation that sends the message does receive it, but none of the other running workstations seem to catch the sent message.Sending messages is done as follows :

Dim sendQueue As New Messaging.MessageQueue("FormatName:MULTICAST=234.1.1.1:8001")
Dim message As New Messaging.Message("message body...")
sendQueue.Send(message)

And receiving them :

Dim receiveQueue As New Messaging.MessageQueue(".private$myQ")
receiveQueue.MulticastAddress = "234.1.1.1:8001"
receiveQueue.BeginReceive()

[code]....

So I'm obviously missing something, and I can't seem to find any good ressources on multicasting with MSMQ 3.0 in .NET.Also, what is not clear is wether I should use a local queue per workstation, or one single remote queue on a server to multicast messages ? And does using the receive method on multicast messages purge them from the queue ?On a side note, all workstations are on the same subnet, and all have MSMQ 3.0 installed.

Despite what the Queue properties dialog says, permissions are NOT totally ignored on unauthenticated queues, at least when using multicasting. If you want your queue to receive multicast messages, it must give to 'ANONYMOUS_LOGON' the right to 'Send messages'. Otherwise, multicast messages are just discarded without any notice in event logs or whatsoever (unless I missed something).

On Win7 stations (XP stations seem to do fine, which is what pointed me to the actual problem), queues created through code do not have such permissions, and hence must be manually set after creating the queue :

Dim msgQ = Messaging.MessageQueue.Create(queueName)
msgQ.SetPermissions("ANONYMOUS LOGON",
Messaging.MessageQueueAccessRights.WriteMessage)

It would seem that internally, MSMQ uses that account to write multicast messages to unauthenticated queues.

View 1 Replies

List Of Directories On Local Machine?

Oct 14, 2011

IIS7 running on Windows Server 2008 R2. Development environment is VWDE 2010.

I'm setting up a simple "machine status" page to monitor a server. I want to display the Drives on the machine, including mapped network drives and show their free space, etc.

I'm using System.IO.DriveInfo.GetDrives() to return a collection of DriveInfo objects. I then itterate that collection to display the relevant information.

The issue I'm having is that only local drives appear. (A:, C: and D:) No mapped drives "Network Locations" appear in the collection.

I'm thinking it has to do with the user account that's executing the code (if that makes any sense). So if the code is executing under the user "ASPNET" (or whatever it is) the drives would have to be mapped under that user. As it happens, I have the server set up like a workstation and it logs in automatically under the user with the mapped drives.

What I've done:

- I have set the Web Site's Anonymous Authentication user to that same user

- I have set the Identity of the Application Pool to which my web site is assigned to be that same user.

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved