Check Multiple Services On Remote Machines?
Jun 20, 2011
Im trying to check multiple services on different remote servers. i need to check lets say, RPC, Themes and Print Spooler services.
how can i list the services i need to make sure they're running and if they're not to start them in VB.net without using WMI?[code]...
View 2 Replies
ADVERTISEMENT
Mar 4, 2012
able to give me a script that i will be able to grab a file version of an specific file from multiple remote machines. I have a list of machines in Txt file ... i want the script to read the list.. and generate a new file that have the Machine names with File version.
View 1 Replies
Jul 10, 2011
Im trying to check multiple services on different servers. The idea is that every time a client clicks on a checkbox for the specific server and press the "check service" button it will check the status on the service and if it's not running it will restart the service and so on for the rest of the servers.[code]
View 2 Replies
Dec 29, 2009
I have a need to activate remote desktop on machines out in the field and have created a VB button that takes a workstation name from a textbox and activates via a WMI call. problem is that it pops back with an "invalid parameter" error.
View 3 Replies
Sep 22, 2010
I think my title covers the high level, but for indepth; i need to be able to connect to a machine through and ip and set a enviroment variable, i have over 60 machines in different states all on one network that i need to do this for as well as someother things for the machine. currently this is being done through a PCEXEC command in a batch file they want more control on how this operates. I just really have no idea where to even start looking for the enviroment variable change(setting one on a machine that the app is running is simple we all know that. but on a external machine im lost) on a remote machine.
View 1 Replies
May 4, 2011
I'm trying to write a console application that can modify registry subkeys on remote pc's in the same network. I have it working in my own environment but when I install on the customer machines I'm getting unauthorized access when it hits the OpenRemoteBaseKey. The security settings in the application properties is set to full trust application so I'm not sure why it won't work.
I'm using Visual Studio 2010 and first I just installed it on the customer machine and when it wouldn't work I ran the source code in Visual Studio 2005 which is on the customer machine but got same results.I can run the app directly on the remote machine and it will change the registry subkeys as directed, I just can't do it remotely. RemoteRegistry service is started. Both machines are logged in as administrators.
Here is the source code:
Imports Microsoft.VisualBasic
Imports System
Imports System.IO
Imports System.Security.Permissions
[code]....
View 14 Replies
Nov 17, 2009
Is there an easy way to export remote event logs FROM an XP machine?
I know there is System.Diagnostics.Eventing.Reader.EventLogSession from Vista onwards but I can't seem to find something for XP systems.
View 7 Replies
Aug 11, 2011
i connect to a remote pc via terminal services, when i print with the Microsoft Office Word i get the print in my local printer fast, but when i try to print with my own application the print take 10 seconds.
I use to print the control PrintDocument.
View 5 Replies
Mar 11, 2010
I have a VB6 app using MS Access2003 database ODBC connection in Windows Server 2008my connection string is simple ODBC-- DSN=hotel -- using Microsoft Access Driver (.mdbusing admin user - i can run all forms on windows server 2003 successfullyusing other users - i get "permission denied error 70"I have 2 problems,1- cannot use software in terminalservices using remote desktop to server @Windows Server 2008i have 10 machines connected using Remote desktopfor a limited user, >> permission deniedif i cange the limited user to admin >> things work but ONLY FOR THAT USER!ALL OTHER USERS THEN HAVE PROBLEMS WITH THE SOFTWARE, some exit, some cannot fetch data, etc.
View 1 Replies
Mar 21, 2012
This code so far works like a charm, and I need a couple more things before I'm finished.
1. I know the UPN (userPrincipalName) is setup using user.Properties("userPrincipalName").Value = ComboBox2.Text and that works fine... however, we have an additional UPN name.. check out the picture below.
2. Any way to setup the Remote Desktop Services Profile up? Peticularly Remote Desktop Services home folder. Where Connet: would be selected, as well as Drive letter, and To: would be filled out as well. [code]
View 2 Replies
Jul 6, 2010
I want to use the c# write a programe to get the logon session information.I use the WTS_INFO_CLASS Enumeration refrenced to the msdn library,the url link is [URL]
Everything is ok except the WTSClientBuildNumber property. The WTSClientBuildNumber that I get is 5875288,but it should be 6001.I use the 6.0.6001 RDC for my test.Can anyone tell me the problem.
The following is my sample code
If WTSQuerySessionInformation2(ptrOpenedServer, active_session, WTS_INFO_CLASS.WTSClientBuildNumber, istr, returned) = True Then
ClientInfo.WTSClientBuildNumber = istr.ToString()
End If
View 1 Replies
Nov 26, 2010
I have one EXE on my server machine (Windows Server 2003) and now i want users on multiple computers (Windows XP) to create one shortcut on there repective machine and access this EXE.
View 1 Replies
Dec 26, 2010
creating remote desktop connection in vb.net using Microsoft Terminal Services(msrdp.ocs). The main objective is to remote monitor clients without interrupting them or knowing they are monitored.
View 5 Replies
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
Jun 22, 2010
I have created a Office management software in vb.net & access, but i m not able to run it multiple machines.
View 2 Replies
Sep 22, 2010
how to use directory services for listing the members of the local administrators group on a remote pc in the following format?
[Code]...
View 1 Replies
Apr 2, 2011
I have been working on a suite of VB 2008 Express applications on my laptop and thought I would do some work on them using my main desktop rig. I have the VB 2008 Express IDE on both machines, identical MySQL database, Apache Server, etc etc. Everything works fine except that the forms look a little different on my desktop.
Different meaning that the controls don't quite line up correctly as far as spacing, and I have two bitmap graphics on the forms (logos) that appear the same size, but the picture box is smaller, on my desktop than they do on my laptop, so they are cut off.
Additionally, when I add my text box controls and set their location, they are WAY off on my desktop but line up correctly on my laptop.
Both my laptop and my desktop use Windows XP Pro (laptop is the Media Edition however) and I use the same resolution screens (1680x1050).
So I was wondering if it might be a DPI Pixel Density difference, and how I might go about checking that and adjusting it.
Here are two images showing the subtle differences between machines. Of course, it would be ideal if I could get my forms to look identical across both machines.
View 1 Replies
Jun 10, 2010
Here is the final code that worked for me. This uses WNetAddConnection2 to establish a connection first, before using DirectoryEntry.
Imports System.Runtime.InteropServices
Imports System.Net
Imports System.DirectoryServices
Imports System.IO
[Code]...
So I moved the code to an ASP.Net web app, which is impersonating a service account through the Impersonate section of web.config. The account I am impersonating does not have admin rights on any of the workstations so I put in a username/password into the constructor for the computer entry like so:
Dim deComputer As New DirectoryEntry("WinNT://" + Computername + ",computer", username, password).The username is that of a domain account which has local admin rights on every workstation. If I look at the Username property of the resulting deComputer object I can see that the username matches what I entered.Also if I enter in an invalid password it throws an error, so it is authenticating in some fashion.
However if I now try and add or remove a user from a remote workstation I get a general access denied error. If I add the service account that ASP.Net is using as a local admin on that workstation it will add and remove no problem.So next I tried using the LogonAPI (advapi32.dll ->LogonUser call) to login as the user account that is a local admin on all workstations, impersonated the resulting WindowsIdentitiy and tried running just the original deComputer instantiation. When I do this every property, excepty Path, returns an OLE exception..
View 1 Replies
May 15, 2011
I need to check on several services to see if they're running on several servers. I would like the program to tell me if a specific service is or is not running and if it is to reply with a msg stating which service is running, same if it is not running.
this is what i have so far:
Private Sub CheckServiceButton_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckServiceButton.Click
' This will check if the service is running '
[Code]....
View 3 Replies
Dec 7, 2011
How to connect client machines with sql server machines ?Vb.Net as front end.
View 8 Replies
Jan 14, 2009
I am struggling here with introducing web services into a site I am currently working on. The background is as follows.
- I have a page switchboard.vb which will recieves incoming xml requests.
- I parse these xml requests extracting its values, then setting them equal to the relevant global variables in switchboard.vb.
- One of these variables will determine a 'requestType'. Based on this requestType I want the page to call particular web services that I will add.
- These web services will then validate the user calling has permissions to access and execute it.
- The switchboard.vb page will then generate an xml respose which will post to the client.
Here is a summary of the process
getXML()
parseXML()
determineRequestType()
executeRequest()
rebuildXML()
postXML()
The ways I can see to do this are:
1. Pass the variables into the required Function allowing it to pass back a pre formatted xml string.
Pro: Simple
Con: It is not really using the web service as it should be.
2. Pass the variables into the required Function as 'ByRef' values hense changing the original value on switchboard.vb
Pro: allows me to format the outgoing xml on switchboard.vb and gives me more functionality with more individual variables as opposed to one string being passed back.
Con: Is this taking advantage of a web service? When I tried this the web service form didnt give options to input test data. Possibly because I am using ByRef?
View 10 Replies
Jun 29, 2011
I have two ASMX web services consumed from javascript. The first service performs a long operation and updates a database table on its progress. The second service polls that same database table in order to report the progress to the end user via a progress bar.
My problem is that the long process seems to be blocking the polling service. When I log the activity of the javascript, it seems to be requesting the long service correctly, and then starts to request the polling service once a second asynchronously (note: the long process is asynch as well). Both request types either use setInterval or setTimeout which shouldn't halt the browser. Yet when I look at the activity of the javascript, none of the responses from the polling requests return until the long process completes. So it seems the long process is blocking the polling requests until it's done.
[Code]...
View 1 Replies
Jul 21, 2009
In vb.net (using vs2005), I'd like to see if www.domain.com/myfile.txt exists.
View 2 Replies
Apr 2, 2011
How do I check the connectivity to Remote Desktop through Visual Basic (if possible). I would like to run a program checking if servers is up running normally. In some cases servers will respond to ping, without being able to connect to RDP. It would be great to a program being able to detect loss of RDP-connectivity almost as soon as any problems appear.
View 1 Replies
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
May 20, 2012
Check listening ports on remote machine
View 1 Replies
Aug 15, 2011
using vb.net I need to access the regional settings on a remote server and check to see if they are en-gb
View 4 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
Nov 7, 2011
I have developed a system to update various programs. I put the programs updated into a particular folder of my site and Users can launch their update program to download and update their application.
The user interface has two progress bar, one for the single program in download and the second for the total download.
For calculating the total amount of bytes for the second progress bar I need to know the dimension in bytes of programs and files to be downloaded before start downloading. See the attached code.
For that I read, in remote mode, the size of all the files checked and I obtain the total amount of bytes.
All works fine with various type of files (.EXE - .DOC - .JPG - .TXT etc).
The problem arises with the Crystal Report file (.RPT).
The error 404 occurs but the file exists, the server WEB is active and the other files of the list are summed. If I compress the same file in .ZIP all works.[code]...
View 2 Replies