Announcement

Collapse
No announcement yet.

script for remote computer

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • script for remote computer

    Hi

    Anybody know how can we connect to a remote computer using script. In specific, computers are in a separate VLAN. Script working with out any problem in the same vlan, but not connecting to another VLAN. I'm searching for perfect solution for this, but till now didn't find any good articles or forum post on this topic.

    Getting the same error irrespective of any script. The screenshot is an error I got while running a script for checking Service Pack installed on all remote servers.

    Thank You so much
    Attached Files
    Mohan Mathew[VU3MMU]
    MCITP [AD]

  • #2
    Re: script for remote computer

    Do you get the same error code 800A01CE on the other scripts?
    Obviously there is nothing wrong with the syntax since it runs fine in the local Lan.
    My guess would be a permissions issue or a firewall between the Vlans.
    Caesar's cipher - 3

    ZKHQ BRX HYHQWXDOOB GHFLSKHU WKLV BRX ZLOO UHDOLVH LW ZDV D ZDVWH RI WLPH!

    SFX JNRS FC U6 MNGR

    Comment


    • #3
      Re: script for remote computer

      Originally posted by L4ndy View Post
      Do you get the same error code 800A01CE on the other scripts?


      My guess would be a permissions issue or a firewall between the Vlans.
      Yeah, the same error. How the WMI scripts working over networks, through any specific ports?
      Mohan Mathew[VU3MMU]
      MCITP [AD]

      Comment


      • #4
        Re: script for remote computer

        Originally posted by mohanmathew View Post
        Yeah, the same error. How the WMI scripts working over networks, through any specific ports?
        WMI uses DCOM. By default, DCOM uses a random port between 1024 and 65535. Ultimately, the ports used depends on the requested connection type. If you want to open it to all possibilities for what WMI might use you'd have to expose the entire port range. Since that's probably not something you want to do, you can change the default port range to something more manageable. Read this KB if you're running the script on a pre-Vista/2008 machine...
        http://msdn.microsoft.com/en-us/library/ms809327.aspx

        Vista/2008 now allow you to control the port used at runtime. If you're using Vista or 2008 read this...
        http://msdn.microsoft.com/en-us/libr...47(VS.85).aspx
        Last edited by ahinson; 23rd January 2009, 04:34.
        Andrew

        ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **

        Comment


        • #5
          Re: script for remote computer

          Originally posted by ahinson View Post
          WMI uses DCOM. By default, DCOM uses a random port between 1024 and 65535.


          which means I have to tweak the hardware firewall, some what an impossible task!! Is there any chance to specify DCOM obects to communicate through a single port?! ... please forgive me if I'm saying something crazy!
          Mohan Mathew[VU3MMU]
          MCITP [AD]

          Comment


          • #6
            Re: script for remote computer

            Originally posted by ahinson View Post
            WMI uses DCOM. By default, DCOM uses a random port between 1024 and 65535. Ultimately, the ports used depends on the requested connection type. If you want to open it to all possibilities for what WMI might use you'd have to expose the entire port range. Since that's probably not something you want to do, you can change the default port range to something more manageable. Read this KB if you're running the script on a pre-Vista/2008 machine...
            http://msdn.microsoft.com/en-us/library/ms809327.aspx

            Vista/2008 now allow you to control the port used at runtime. If you're using Vista or 2008 read this...
            http://msdn.microsoft.com/en-us/library/bb219447(VS.85).aspx
            Thank for the insight. Both link were very useful. I'm sharing my findings which might helpful to others on better understanding about this.

            http://support.microsoft.com/?kbid=154596
            http://msdn.microsoft.com/en-us/library/aa389286.aspx
            http://forums.adventnet.com/viewtopic.php?p=37725 -- this thread is some what similar.
            http://support.microsoft.com/kb/832017/

            Still I'm waiting for a solution!
            Last edited by mohanmathew; 23rd January 2009, 08:24.
            Mohan Mathew[VU3MMU]
            MCITP [AD]

            Comment


            • #7
              Re: script for remote computer

              Originally posted by mohanmathew View Post


              which means I have to tweak the hardware firewall, some what an impossible task!! Is there any chance to specify DCOM obects to communicate through a single port?! ... please forgive me if I'm saying something crazy!
              The Microsoft Firewall Client handles applications which use a random port; for instance FTP negotiates over port 21 and then carries out data transfers over a random port. The Firewall Client ensures that packets within the file transfers are "associated" with the correct network conversation and therefore permitted to transit the (ISA) firewall.


              Tom
              For my own and your protection, I do not provide support by private message under any circumstances. All such messages will be deleted and ignored.

              Anything you say will be misquoted and used against you

              Comment


              • #8
                Re: script for remote computer

                To start with:
                Make sure DCOM is enabled on the clients.
                And, Allow tcp traffic on port 135, and not only for it own subnet.

                \Rems

                This posting is provided "AS IS" with no warranties, and confers no rights.

                __________________

                ** Remember to give credit where credit's due **
                and leave Reputation Points for meaningful posts

                Comment

                Working...
                X