Results 1 to 10 of 10

Thread: How do you connect to a remote PC?

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2009
    Location
    ALABAMA
    Posts
    13

    How do you connect to a remote PC?

    Hey guys,
    How do you connect to a remote PC in MS ACCESS? I am trying to write a program where I can input a computers name that is on the network in a form, and have it pull that computer up. Not remote desktop, but just connect to it. Once connected I wanted to pull data from it via WMI.
    But, I can not find the code to search for a computer name and connect.
    Example, if you go to cmd prompt and type in: shutdown -i, you get a popup box that lets you type in the computer name and then come simple commands that can shutdown, restart the remote PC. But, like I said. I was just looking for the part of code that can connect to the PC.

    Any Ideas?

  2. #2
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,206

    Re: How do you connect to a remote PC?

    Well it really depends on what you mean by connect. And if you are trying to do this in Access then you are really in the wrong area of the forum as this section is for Visual Basic 6 and earlier. There is a different section for Office development. While Access does use VBA it is different and far more limited than VB.

  3. #3
    Frenzied Member
    Join Date
    Dec 2008
    Location
    Melbourne Australia
    Posts
    1,487

    Re: How do you connect to a remote PC?

    What DataMiser said (is 100% of what I nearly said)

  4. #4
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: How do you connect to a remote PC?

    I don't think "searching for a computer" and then twiddling it via WMI is a fit topic here either. Too much potential for abuse.

    People should harden their systems against WMI attacks anyway:

    To enable or disable WMI traffic using firewall UI

    In the Control Panel, click Security and then click Windows Firewall.
    Click Change Settings and then click the Exceptions tab.
    In the Exceptions window, select the check box for Windows Management Instrumentation (WMI) to enable WMI traffic through the firewall. To disable WMI traffic, clear the check box.

  5. #5
    Frenzied Member
    Join Date
    Dec 2008
    Location
    Melbourne Australia
    Posts
    1,487

    Re: How do you connect to a remote PC?

    I have XP Pro SP3
    I cannot see WMI in my list of Exceptions ?

  6. #6
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: How do you connect to a remote PC?

    Ahh, Great Auntie XP. Wasn't she a quaint old duck of an OS?


    The problem here is that prior to Vista the Windows Firewall was a lot simpler. In XP the firewall has no way to handle granular firewall rules.

    This leaves you with a choice: disable networking (file and printer sharing) which will shut down all of DCOM and RPC, or else leave yourself vulnerable to Remote WMI exploits (Remote WMI uses DCOM).


    Connecting to WMI Remotely Starting with Windows Vista

    Starting with Windows Vista, WMI settings for Windows Firewall settings enable/disable only WMI connections, rather than other DCOM applications as well.

  7. #7
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,206

    Re: How do you connect to a remote PC?

    There is another choice of course.... use a 3rd party firewall

  8. #8
    PowerPoster ThEiMp's Avatar
    Join Date
    Dec 2007
    Location
    Take The PCI Bus Across To The CPU!!
    Posts
    3,948

    Re: How do you connect to a remote PC?

    To Upload/Download to the Remote PC, try the: INET Control.
    For chatting, etc to the Remote PC, try the: Winsock Control.
    I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...

    |Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Love Shack | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University | Ambra Cheese |

    Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...

  9. #9
    PowerPoster
    Join Date
    Jul 2006
    Location
    Maldon, Essex. UK
    Posts
    6,334

    Re: How do you connect to a remote PC?

    Notwithstanding Dilettante's comments regarding WMI and the potential security implications, it should be remembered that WMI was designed to be used by System Administrators to assist in the Management of computers. As such, it already has the capability to interrogate and alter things on remote machines (if the System Administartor has enabled WMI remote access on those machines.)
    Whether it's 'clunky', 'resource greedy' and the 'best' tool to use, is a different matter (personally, having played around with it, I wouldn't touch it again with a barge pole)

  10. #10
    PowerPoster ThEiMp's Avatar
    Join Date
    Dec 2007
    Location
    Take The PCI Bus Across To The CPU!!
    Posts
    3,948

    Re: How do you connect to a remote PC?

    Same here, cause I was once a System Adminstrator and then given rights to all of the Local Area Network, then just saying that Remote Desktop, etc are very bad ways of doing things, indeed they are. Believe you me that I cannot touch anything like that again, far too much responsiblity to handle and far too much data at stake...
    I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...

    |Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Love Shack | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University | Ambra Cheese |

    Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...

Posting Permissions

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



Click Here to Expand Forum to Full Width