Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Any Way To Remotely Reset NT 4 Workstation's Over A Network?


We have a PC bank here and we need a new way to reset them remotely from another machine. Is this possible in VB?




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
How To Automatically Run The Application On Another Workstation In Network When Workstation Down?
Dear All,
I intend to create an VB6 application that able to automatically start application on another workstation in LAN network when current workstation was failure or shutdown.
Kindly advise how to do it!
Thanks for your advise and help.

Ping Each Workstation On A Network
Hi there,

Is it possible to loop through works tations on a network to see if they are turned on?

Would you have to ping them and check the response?

Is there a list of all workstations that can be accessed with VB?

Any ideas?

Rohan

NT User Name && Workstation Network Identity
How do I pick up the NT User Name & Workstation Network Identity, using VB.

Please help or I'll be unemployed if I don't get it!

Monitoring A Network Printer From A Workstation
I am looking to write a utility that opens a network shared printer (like one of those big white boxes that sits in the backoffice where everyone prints their junk), grab details of jobs and then writes them in a local file. This utility will run on a workstation with a non-admin user logged on to it.

I can't see why it can't be done because I can view the jobs anytime I open the printer from the control panel.

Please give me a start.

Thanks.

How Do I Run App Remotely On Network Server?
Want to initiate execution of VB application on server to run on server from another desktop. Keep finding various security problems. WMI does not seem to work for me. Ideas?

Thanks

Rebooting A Network Computer Remotely
I'm trying to reboot a computer remotely via a network. I need the computer to reboot when the script runs from a different computer. Does anyone know how to do this? If you don't know how to do it remotely, do you at least know how to shut down a computer locally(from the same computer)?

How To Remotely Set The Computer Systems Time In A Network From A Server
I need to write a program to run in a server, and this program can automatically synchronized the time for all the computers in the network. But currently what i get is this program need to execute in all the computers in the network, and this program will get the time from the server and update the local time for the computer. May I know what the command i need to use so that i can remotely set the computer system time in a network from a server? Below is my current source code. Looking for the help. Thanks.



--------------------------------------------------------------------------------------------------------------------------------------------------
Option Explicit

Const SERVER_NAME = "SERVER_NAME"

'API Structures
Private Type systemtime
    wYear As Integer
    wMOnth As Integer
    wDayOfWeek As Integer
    wDay As Integer
    wHour As Integer
    wMinute As Integer
    wSecond As Integer
    wMilliseconds As Integer
End Type



Private Type TIME_OF_DAY_INFO
    tod_Elapsed As Long
    tod_msecs As Long
    tod_hours As Long
    tod_mins As Long
    tod_secs As Long
    tod_hunds As Long
    tod_timezone As Long
    tod_tinterval As Long
    tod_day As Long
    tod_month As Long
    tod_year As Long
    tod_weekday As Long
End Type


'NetAPI Calls
Private Declare Function NetRemoteTOD Lib "netapi32.dll" (yServer As Any, pBuffer As Long) As Long
Private Declare Function NetApiBufferFree Lib "netapi32.dll" (ByVal pBuffer As Long) As Long


'Kernel API Calls

Private Declare Sub CopyMem Lib "kernel32.dll" Alias "RtlMoveMemory" (pTo As Any, uFrom As Any, ByVal lSize As Long)
Private Declare Sub GetLocalTime Lib "kernel32" (lpSystem As systemtime)
Private Declare Function SetLocaltime Lib "kernel32" Alias "SetLocalTime" (lpSystem As systemtime) As Long

Public Function GetRemoteTime(ServerName As String) As Date
    
    Dim lpBuffer As Long
    Dim t_struct As TIME_OF_DAY_INFO
    Dim ret As Long
    Dim bServer() As Byte

    If Trim(ServerName) = "" Then
        'Local machine
        ret = NetRemoteTOD(vbNullString, lpBuffer)
    Else
        'Check the syntax of the ServerName string
        If InStr(ServerName, "\") = 1 Then
            bServer = ServerName & vbNullChar
        Else
            bServer = "\" & ServerName & vbNullChar
        End If
        ret = NetRemoteTOD(bServer(0), lpBuffer)
    End If
    CopyMem t_struct, ByVal lpBuffer, Len(t_struct)
    If lpBuffer Then
        Call NetApiBufferFree(lpBuffer)
    End If
    GetRemoteTime = TimeSerial(t_struct.tod_hours, t_struct.tod_mins - t_struct.tod_timezone, t_struct.tod_secs)
    
End Function

Sub processTime()
     Dim sysLocalTime As systemtime
     
     Dim arrTime
     Dim sTime
     Dim sAmPm
     
     Dim intHour As Integer
     Dim intMinute As Integer
     Dim intSecond As Integer
       
   
    sTime = Trim(GetRemoteTime("\" & SERVER_NAME))
    
    sAmPm = Right(sTime, 2)
    sTime = Left(sTime, Len(sTime) - 2)
 
    arrTime = Split(Trim(sTime), ":")
 
    intHour = CInt(arrTime(0))
    intMinute = CInt(arrTime(1))
    intSecond = CInt(arrTime(2))
    
    
    
    GetLocalTime sysLocalTime
    
    sysLocalTime.wHour = intHour
    sysLocalTime.wMinute = intMinute
    sysLocalTime.wSecond = intSecond
    
    SetLocaltime sysLocalTime



End Sub


Private Sub Form_Load()
    
    Call processTime
    
    End
    
End Sub

Reset A Network Card
First, I want to thank anyone who actually reads this:

Here is my trouble: I am a n00b. Until very recently I hadn't written anything since VB5 in like '98, and as I recall - I wasn't very good to start with. So, I decided to turn here, and ask some *real* prgrammers, as opposed to a former network engineer (myself) who is painfully trying to write some code.

I am currently trying (struggling) with writing an App that will troubleshoot remote user's network connections. It will do all kinds of cool things once I'm done, it has even has the MS agent incorporated and functioning to hold the enduser's attention span while it works. I have come to, it seems a roadblock.

I'm trying to figure out (in VB6) how to reset a network interteface card, and it proving to be signifiant'y more difficult that originally expected. I have searched google, yahoo, and MSDN.

Please - does anyone have any advise, or a direction I should start in?

any help is greatly appreciatedm thank you,

Aaron

MDAC 2.7 And NT Workstation 4.0?
Anybody know if MDAC 2.7 is compatable with NT Workstation 4.0?

It completely destroys a Win98 OS.

Locking A Workstation
I am the sole user of my computer. How can I set Win XP Home to always go to the Log in Dialog, as opposed to the fancy exe that most Home owners see? Failing that, how can I lock the workstation, and yes, I've tried the LockWorkStation API, it sends me to the fancy blue Home logon screen.

Workstation Locked?
Hello,

i´m writing a small programm to check the worktime, but now i ve got a problem, how can i check if a workstation is locked? is there an api?
Thx 4 your help

Locking The Workstation
Is there a VB command I can use which will lock the workstation, similar to the use of Ctrl-Alt-Del?

Lock Workstation
Hello,

I am writing a small app for an Internet Cafe, My app will run on workstations and check a server database once a minute to see if they still have time left, when out of time I want to display a warning message then lock the workstation.

Does anyone know samlpe code to lock workstation from VB?

I would run as service.

Thanks Heaps

Rhys

Locking Workstation
what api function can be used to lock a workstation?

Server Or Workstation
I have a VB program that can either run off of a server or off of an individual workstation.

The behaviour should be slightly different.

How do I write the code to distinguish if it is running off of a server or off of an individual workstation?

thanks,

Can You Identify A Workstation?
Hi,
A lot of the stuff I write works over networks. I want to know if it is possible to recover the 'identity' of an individual workstation through VB - to identify which user did what - without the users having to do anything themselves.
Thanks

Lock Workstation
Is it possible with VB6 to lock the workstation with the Windows standard lock window ?

Also, is it possible to change the password before locking it ?

Lock The Workstation
Hi all,

Is there any way to lock the workstation through code?

Thanks for your help!!!!!!

Is There A User On That Workstation?
Well thats what I want to find out! I have written a program to detect which user is logged on at any computer, however it either displays the current user or if no one is logged on the previous user. Is there any way I can find out if there is an active session on the workstation? Any help would be greatful.

Check My Workstation??
I got a difficult question (I think) for all you people, my workstation is in a corporation domain, how can I check from VB6 who is trying to view my workstation shared folders or my workstation at all from an other workstation in the same domain in real time??

Unlocking NT Workstation
I am writing an app that must issue a sendkeys. It will do this at all times of the day. Unfortunately, sendkeys does not work when the screen is locked. The user is still logged in, but the screen is locked. Is there an API call or other routine that can be made to unlock the workstation and lock it back when I'm done???????

PLZ!!!!

Thanks in advance!

Ping A Workstation
I have some Vb code to map to a workstation. I am passing the command through Shell.

I am wanting to add some error trapping incase the users' workstation is switched off. To do this i thought about pinging the workstation.

Has anybody any idea about how to ping a workstation through Vb and use the response ?

Workstation Locked
Dear all,


Here Iam writing a program Can u please help me in this regards

1.The program has to run in System Tray and who will never end that one

2.Identify the Keyboard Keys (especially Ctrl+Alt+Del)

3.Automaticaly detect which program is opened and its Status

Totally Whenever I press Ctrl+Alt+Del to lock the Workstation ,then the program has to open and run even desktop shows Workstaion Locked Dialogue Box


Please help me for this One

MTS On WINNT Workstation
Is it supposed to work? Cuz I cant seem to do it.

(it's from the NT Option Pack)

Lock Workstation
Does anybody know a way to lock a workstation in Winnt ??

Get UserName From NT Workstation?
I have a form in my project that the User will fill out and I would like to fill in as many fields as possible for them before they start. Is it possible to get the User Name of the User that is logged into an NT workstation? If so how do I do that?

Thanks for any help.

How To Lock Workstation
I was wondering what would be the best way to send a <CTRL> <ALT> <DELETE> to the System to lock the workstation. I am making a simple program that runs in the System Tray so that I can just click on it and it will lock my system for me. I tried using sendkeys, but I can NEVER get that to work properly. Is there a way? I am currently using a Novell Client if that matters.

Unlocking NT Workstation
Can anyone out there help me?

I've been tasked with writing an application that runs on an NT workstation, but some of the things to be done must be done using the sendkeys option. I need to unlock the workstation first to be able to do this. Any Ideas??

TIA

Ell

Locking Workstation (NT)
Does anyone know (or have) any code which will able me to add the functionality of NT locking terminals? This would be useful as I could give the user a timeout option in the app to lock the machine.

Thanks

Find OS And Workstation
I'm building a small program for a friend, on request (I use VB6). One of the things he wants present is what OS the user is using, and what their Computer Name is.

I searched Google to see if I could find out how to do this, but came up with nothing =/

So, if someone here could show me how to find those two things, that'd be great. They just need to be shown in a Label, so it shouldn't be too difficult doing that.

Workstation Locked ----
I need to detect if a NT/W2K/XP workstation is locked or not.

Part of the security work software I am creating needs to log all window captions, logon and logoff times and if a workstation is locked or not.

I am using VB6 with SP5

VB developers do believe in open source, other peoples
http://www.walkerbrotherssa.com/

Edited by - WBro on 6/27/2004 4:28:54 AM

Vb6.0 - How To Update VB App To All Workstation
Hi there,
Server Database: MS SQL
Report Database: MS ACCESS
Report Viewer: Crystal 9.0


I have a Report Viewer Program w/c i always install(Create Package) to each workstation every time i made modification. Is there a way (vb code) to install only this program once (to server computer), then when they run it in the workstation, the program will update/copy (dll,ocx,database,report file ect,) to the workstation computer. So that i will not install to each workstation (20 workstation) in the network...

Please help!!!!

Thanks....

LOCKING WORKSTATION
CAN ANYONE PROVIDE SAMPLE CODE ON HOW TO LOCK MY WORKSTAION SO ONLY MY MAIN APPLICATION FORM IS ALWAYS ON TOP , WHERE NO ONE CAN SEE/ACCESS ANYTHING ON THE WORKSTATION UNTIL YOU AUTHENTICATE YOURSELF ON MY APPLCATION.
SHOULD RUN ON WIN9X /WIN NT 3.1 OR LATER .
THAMX IN ADVANCE .
GEORGE.

Lock Workstation
I would like to lock my Win Nt worstation after 10 sec. I know the timer code but the problem is sendkey does not work... it there another way I couls do this like Sendmessage. If there is pls show me the code

Thanks in advance

Permitions On NT Workstation
I have an dcom application and the servers located
on a NT workstation machine.How my machine (client) can has access on the NT machine by its computer name?
How it should config the NT machine (server)?
Thanks

Workstation Messaging
I am currently working on a project for a hospital. Our current setup is 5 workstation and one server. Our server is using MS-SQL 7.0 while our front-end application is VB6. We want to implement a messaging system in which, for example workstation 1 can send a message to workstation 2 (a form will pop-up) notifying/dusplaying tge message.

Is there a way to do this in VB code ? Ur suggestions is highly approciated.
thanks.

Nt Locked Workstation HELP HELP
I would like to capture when the user locks the workstation and start a timer, when the time runs out i want to close the computer or log out the user.
Is this possible ?

How To Fax Remotely Through VB
Can anyone tell how to fax a file by using VB application remotely. I've installed WinFax on both fax host computer and fax client computer. My VB application will be run on the fax client computer. Both the computers have window 2000.

My code is here:
Dim FS As New FAXCOMLib.FaxServer
Dim FD As New FAXCOMLib.FaxDoc
Dim lngcount As Long

FS.Connect (txtClientMachine.text) ' My Computer's name
NomeFile = "c: est.txt"
Set FD = FS.CreateDocument(NomeFile)
FD.FileName = NomeFile
FD.FaxNumber = txtfaxno.Text ' Phony number
FD.DisplayName = txtfaxno.Text
FD.DiscountSend = 0
FD.SendCoverpage = 0

FD.Send
FS.Disconnect
Set FD = Nothing
Set FS = Nothing
MsgBox "Fax send successfully"

When I run the code, the msgbox appears, that means fax send successfully. But when I check the winfax pro message manager, nothing was sent. Then I found the file was send to "Fax" instead of "WinFax".

Can anyone tell me what's wrong with my settings?

Thanks in advance

Using DLL's Remotely
Can anyone point me in the right direction to have a client app use a dll on another machine?

thanks

Run API's Remotely
Hi there,

Is there any way I can run API's on a remote computer? The idea was to make a simple remote management application. I get the idea from other posts that I could probably do that with sockets but can I avoid the client program?

The user running this application would have full administrator permissions on the computers on the network.

Thanks for any help!

Changing The Domain Name Of A Workstation.
Hi to all! I don't know where to post this properly so anyone could see. we have this task of changing the domain name of each and every workstation. and by that, I mean if I change the domain name, it has to join to that domain name we specify. But the task of going to each and every workstation is an ardous task. So I was wondering if anyone knows a script on how to accomplish this. The workstations are all part of a domain. We have to go to each and every workstation and right click My Computer-> Properties->Network Identification tab->click on Properties button->type the domain name->enter the admin username and password to join it into the domain we specified->reboot. So as I said, is there any way this can be done the easy way like using a script? Please help...

Getting Workstation Logon Status
Hi All,

I am creating a program that will be deployed via MS SMS 2003 that will need to do a couple of different tasks depending on whether or not a user is logged in.

I have done a reasonable amount of research on this and cant seem to find a concrete way of determing the current logon status.

The methods I have tried are:

1) Pulling logged on user value from WinLogon key - Returns the last logged on user if no-one is logged on
2) GetUsername API call - Again seems to return the last logged on user.
3) A WMI call - same problem as above
4) The current method I am using is to use an API call "LsaEnumerateLogonSessions", I list through all the logon sessions and look for session type interactive. - this seems to be better, but still occasionally it seems like windows holds logged of users as an interactive session thus nullifying the point of the call.

Has anyone come across any better ways of concretely determining the logon status?

I know in MS SMS there is an option to run an advertisement only when the machine is logged on or off, so there must be some way of definately saying that someone is logged on or not.

Thanks for any help in advance..

Unlocking An XP Workstation Through Code
Hey there. I recently got one of those little USB hard drives, and I've heard of them being used as "keys" to unlock computers and doors and such. I'm thinking that, through Windows XP's autorun feature, it wouldn't be too hard to make it unlock my computer when it's inserted.

Has anyone ever seen a program that can unlock your machine for you, if you give it your password ahead of time? I don't think it would be too difficult to do. Since I doubt the APIs are documented, it would be possible to just locate the window and send some keys to it (or so I think). I don't have much experience in this kind of coding.

If anyone has any ideas, I'd be very appreciative of them.

Without Running Setup On Each Workstation
Is there a way to compile a program that I can simply place on a server and map a shortcut to it for each user? I tried it, but now it can't find the connection to the Oracle 7 DB. Any suggestions? They are appreciated!

Error Running In Workstation
My application run fine in my local computer. I've shared the folder where my application reside. Then I mapped that folder at the different computer in the workgroup. When I try to run the application, it prompt error .

Error message: "Run time error '429' ActiveX component can't create object"

Any idea to solve this problem, higly appreciated.

Thank You...

How To Launch An Exe On A Workstation Connected To The LAN
Hello, my school is equipped with a computer laboratory (30 workstations) that is used to evaluate our students by means of interactive quizzes.

The problem is, our students have to manually launch the quiz executable double-clicking on an icon we have placed on their desktop.

I would like to know if it is possible for me to launch the executable on each machine directly from my workstation acting as a server.

I can already send messages to each machine using the following code:


Code:
Shell("net send " & lstRemoteAddress.Text & " " & txtMyMessage.Text, vbHide)

but I don't have the foggiest idea about how to activate a quiz directly from my server workstation.

Any help will be appreciated.

Detect Locked Workstation (NT)
Hello,

I've got a program watches production of employee's the only problem is that when they go to lunch and their workstation locks
it seems to take forever to unlock the workstation because the program is running.

Is there anyway to detect if the workstation is locked and if it is would I be able to run a timer to disable my other timer when the workstation locks and renable after the workstation is unlocked?

How To Find Out If The Workstation Is Locked?
Does anyone know of an API that I can use to execute another piece of code when the workstation in Win2K/XP is locked and unlocked?

ie. when a user presses winkey+L and locks the system it runs an event onLock() and when they enter the passwd it runs onUnLock()

The program will be hidden most of the time this feature is used.

How To Launch An Exe On A Workstation Connected To The LAN
Hello, my school is equipped with a computer laboratory (30 workstations) that is used to evaluate our students by means of interactive quizzes.

The problem is, our students have to manually launch the quiz executable double-clicking on an icon we have placed on their desktop.

I would like to know if it is possible for me to launch the executable on each machine directly from my workstation acting as a server.

I can already send messages to each machine using the following code:


Code:
Shell("net send " & lstRemoteAddress.Text & " " & txtMyMessage.Text, vbHide)



but I don't have the foggiest idea about how to activate a quiz directly from my server workstation.

In other words, I put different executables (each one representing a quiz) in a shared folder.

On the desktop of each workstation of the LAN, I created a link to one of those executables.

I would just like to be able to launch an executable on each workstation from my workstation (which is positioned like a teacher's desk) so that the student will not have to double-click on the icon (link). If I were able to do so, I would not put any icon on the student's desktop at all.

Any help will be appreciated.

Copyright © 2005-08 www.BigResource.com, All rights reserved