Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

logged in Username of remote machine

doodleman99doodleman99 Posts: 1Member
Hi there,
I have a little problem!
I have an asset DB that i use to administrate users/machine on our domain.
as SysAdmin i sometimes need to force a reboot on machines which is all fine and dandy, but the other day, i accidentally forced the reboot of a machine which was being used by a user and she REALLY wasnt too impressed (lol).
to prevent this, i need a little msgbox yes/no to confirm the user of the machine before it actually reboots.
something like
"Are you sure you want to reboot " & MachineName & " while the user " & UserName & " is logged in??"

there is a nice little feature to get the username of your local machine:

UserNameWindows = Environ("USERNAME")
MsgBox (UserNameWindows)

But i need to be able to specify a remote machine Name/IP instead?!?!

Any ideas?!!

Charrrs,
JV
Sign In or Register to comment.