Make A .net Program Which Will Perform WMI Queries To Check For Remote Computer's Name And OS?
Jan 18, 2012
I am trying to make a vb.net program which will perform WMI queries to check for remote computer's name and OS. I manage to do the first query of name using the code below..
[Code]...
I am getting error "Local variable 'query' is already declared in the current block. (BC30288)".I understand that I am using same name for the object variable for performing subsequent query. Is there a way in which I can dispose the variable completely and reuse it again for querying the new required WMI detail? My search in the net couldn't give me any clue as of how to clear the variable and use it again. The issue is with two variables "query" and "searcher". Is it only possible that I should give unique names to each query object variable as I might add more queries later on?
View 2 Replies
ADVERTISEMENT
Dec 28, 2009
I am using this code to try to connect to a computer/server from my desk top. but keep getting errors The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
Dim options As ConnectionOptions
options =
New ConnectionOptions()
[Code]....
View 5 Replies
Jun 4, 2011
I looking for a solution for how to check if a connection to a remote computer exist or not using vb.net.
I 'm writing a program which will request data from a remote sql server. I need to check if the connection to the remote server exist, before open the connection or run the the sql command.
View 2 Replies
Dec 4, 2009
I need to check if the explorer.exe process is running on a remote computer to verify that there is a user logged on the computer. I Also want to get the Process Owner of the explorer.exe process to check which user is logged on. I have found some VBscript examples online, but i can't seem to get them to work. If anyone knows of a better way of checking if and what user is logged on to a computer, please give me a reply also. I have tried System.Diagnostics.Process.GetProcesses, but i can't seem to get the owner of the process, maybe WMI will do the trick ?
View 8 Replies
Dec 27, 2009
I'm trying to develop a windows application where i can get connected to remote server and look for process state going in remote server.We have many remote servers where automatic installation of software going on. We have an xml file(installstatus.xml) where it tells us at what stage the installation is (Example : Inprogress , Completed, Failed.)
So our aim is to develop a windows application where i can get connected to that servers and look for their installation status(may be we can use installstatus.xml to look for installation status). Every time i connect to a server, the server information should get stored in XML file(i want to create a xml file where all the servers list i connect to should get stored)
The UI at left side should will have list of servers i can connect to. When i get connected to server, at right side of UI, i want to display the status of installation (In progress, failed , completed).
View 1 Replies
Jan 4, 2011
Make a code to view the processes that are running to a remote computer and how to kill them by select one...
View 6 Replies
Dec 18, 2009
can i perform sql queries on xml files?
View 9 Replies
Jun 13, 2010
I'm a PHP coder normally, but I've been asked to make a small vb app. I've created my sql db (MSSQL) and have got all the data in it. However, I have no idea about how to connect or perform queries.
Here's my
Private Sub Form_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[CODE]..........
1) Am I connecting properly? I created a new database using the dataset option and it has no username or password.
2) I'm trying to list the results, which will be clickable to open a new form with the full details. How would I do that?
Eg: In PHP, I'd loop through the resources using fetch_assoc, and create a link with the id and it's name as the firstname and surname.
View 3 Replies
Oct 13, 2009
Firstly, I have the utmost respect for programmers & IT professionals. I'm a newby/wanna-be. I'm looking for help on developing a small program/script that helps me with the task I have detailed below. I am NOT submitting this as homework. This is work-related, but I'm NOT asking you to do my job. I'm taking this as an opportunity to learn more about programming by doing a task that I need done. I'm very interested in core concepts, steps, and your advice on how best to tackle this task (which tools, language, etc.)
[Code]...
View 3 Replies
Aug 24, 2010
I have a program that generates text tab-delimited files with a header row and sometimes a units row followed by data.
Example:
FirstName LastName Birthday
Michael Jordan 6/6/66
Alan Jackson 7/7/77
or
FirstName LastName Birthday
Name Name Date
Michael Jordan 6/6/66
Alan Jackson 7/7/77
I would like to be able to perform SQL queries on these files. How can I connect to a text tab delimited file to either pretend it is a database table or import it into SQL as a table, preferably through VB.NET? I could have 300,000 rows, and the fields are all numbers, not text... I have manually imported these files into SQL before using management studio, so I know it is possible but I would love to be able to do it programmatically.
Is there any way I can get the SQL code from this process because it does exactly what I need it to do but it is manual. There is an SSIS package that I saved, but I do not know what that is.
View 1 Replies
Dec 19, 2006
I need to copy a file from a local computer to a remote computer on the network, if i try to use File.Copy without logon i get the following error:"Logon failure: unknown user name or bad password."How do I provide user name and password for file copy?
View 2 Replies
Feb 9, 2011
I am attempting to have my program select a file, create DataTables and then perform some other functions. I want to be able to open another file and re-do the same steps.The problem I am having is that I add columns to my Datatables and when I try and to open another file while one is already open I get a message that a column of xyz is already added how do I properly "clear my datatable" or perhaps that isnt even the correct approach? Here is the code I have that Opens a File
HTML
Private Sub OpenToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenToolStripMenuItem.Click
[code]....
This was working at one time but after adding to my project I must have placed something in the wrong place inadvertantly or it has soemthing to do with adding columns,?
View 4 Replies
Apr 16, 2010
I tried to get os version of remote computer using ip address with WMI ,It shows "RPC server unavailable" error.If anybody have solution for getting remote system information without WMI in vbnet,
View 1 Replies
Aug 5, 2009
Lately, ive been using winsock quite a lot. I made a chat application, and now i want to make a remote desktop program. I dont want a half asses one, where u can press buttons that send info to the server, but i want to have a client server relationship where you see the screen, have control to the keyboard, and the mouse. Any tips on how i can go about this?
View 1 Replies
Apr 8, 2011
I'd like to make sure that a program could run on a specific computer and get information like pc's identity. This way it won't be possible to run on another computer.
View 7 Replies
Jul 4, 2011
i want to make a program that will lock the computer when the program will run and will ask for a password in order to unlock the computer again.
View 2 Replies
May 18, 2011
i want to make my program to where when you install it, it will automatically start up with your computer everytime, but will start up in the background to where you can't see it....is this possible?
View 3 Replies
Jan 29, 2009
I want to find the computer which are connected with my computer via lan connection using vb.net code. actually a have a mini project in network connection setting.
View 1 Replies
May 3, 2010
We have an VB.NET VS 2005 application that goes out and connects to remote computers on the network to gather information about the running services, processes, etc.
However, not all of the computers and servers are Windows boxes, and this is causing us some grief.
Is there a way in VB .NET to determine if a computer is running a Windows OS before trying to make a connection to it?
View 6 Replies
Mar 22, 2010
I need to give input to the VB code by outlook express ie the command to shut down the computer will be imported from OUTLOOK EXPRESS
View 2 Replies
Jun 28, 2010
I've a small home network and i want to make a program that's transforming files between two computer and make me chat with all computers.
View 1 Replies
Jul 31, 2009
I wan't to make a button in my program that opens it when the computer starts up but how would I do that? I am using Visual Basic 2008 Express Edition.
View 4 Replies
Jul 5, 2011
I'd like to make a program that allows me to see what the current volume of my computer is. It would be nice if I could also hire and lower the volume with my program.
View 3 Replies
Apr 8, 2012
I can't belive I can't figure this out but Im trying to make a macro type program. I just need to computer to press a key. Here is my outline:
Step 1: Open Crafting Menu
Key: T
Step 2: Select Farming
Position:
Step 3: Select Crop Field
Position: User Defined
Step 4: Use Optional Yes or No
If Yes Position:
Step 5: Make Number
Position:
[code]....
View 18 Replies
Mar 19, 2012
i have a task to create a TCP Server (a program that is listening on its network card interfaces for incoming data stream).I have search on the internet and i found that i can use two methods : Socket or TCPListener class.I have created an example for Socket class, but i wondering how could i test it? I need to check that if another computer in the network send some string data to the listener computer , then this message should be displayed.Here is the example from microsoft that i am using for TCP Server using Socket:
Public Shared Sub Main()
' Data buffer for incoming data.
Dim data = nothingc[code]....
But it does not work because of the PORT setting.If in the TCP Server i have "Dim localEndPoint As New IPEndPoint(ipAddress, 0)" the client crashes, but if i change the port from any (0) to 11000 for example,the client works fine.Do you know why?
Later edit2:Maybe i should have started with this question:Which method is recommended for my scope?asynchronous or synchronous method ?
View 2 Replies
Aug 5, 2010
I want to do a small application that made the broadcast of images from a PC. The idea is to make an application of remote management but without the management part, only with the viewing of images. Anyone know any code already done or any API that helps in the project?
View 8 Replies
Aug 29, 2010
I have a VB.Net application that I wrote and want to run it from a remote computer. It runs fine on both computers but not visible on the remote's screen. The program is in the task bar and can be run or closed remotely. Just can't see the GUI
View 11 Replies
Aug 11, 2009
2 remote computer by using vb.netcan u tell me some that relate with this ?
View 9 Replies
Nov 30, 2009
I am making a calculator application that's in beta and will check for updates every so often. What I'm asking is if its possible to make a program check for updates.
View 6 Replies
Jan 27, 2009
What is the best way to GAC dll on remote computer with Impersonation to an admin account?
View 1 Replies