Results 1 to 2 of 2

Thread: Trying to retreive UserDomain variable from a remote machine

  1. #1
    Senior Member
    Join Date
    Aug 2005
    Location
    West Mids
    Posts
    415
    Thanks
    0
    Thanked
    0 times in 0 posts

    Trying to retreive UserDomain variable from a remote machine

    A little stuck on something that should be quite simple.

    I'm trying to retrieve the USERDOMAIN variable settings from a remote machine using a batch file. I can retrieve it locally by just typing the following:

    echo %USERDOMAIN%

    I know it can be done in VB but the rest of the script I have is using batch scripting and works except this bit.....

    Anyone ????
    'All days should be weekends...i'd never complain then'

  2. #2
    Administrator Moby-Dick's Avatar
    Join Date
    Jul 2003
    Location
    There's no place like ::1 (IPv6 version)
    Posts
    10,662
    Thanks
    53
    Thanked
    383 times in 313 posts
    use psexec to run the command on the remote machine.
    my Virtualisation Blog http://jfvi.co.uk Virtualisation Podcast http://vsoup.net

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Machine Crashing.
    By just_laze in forum Help! Quick Relief From Tech Headaches
    Replies: 3
    Last Post: 12-12-2005, 07:04 PM
  2. Remote Desktop Connection
    By PeteSmith in forum Software
    Replies: 7
    Last Post: 12-08-2005, 07:21 PM
  3. Replies: 6
    Last Post: 04-02-2005, 02:47 PM
  4. Remote Desktop help with IP address
    By Proplus in forum Networking and Broadband
    Replies: 3
    Last Post: 28-03-2004, 05:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •