Connecting from a remote computer / name resolution issues

My work has two SQL Server 2005 databases, one installed on a Windows XP machine (running some equipment) and one installed on a Windows 7 machine (backing up the files from the XP instance).  Both computers run only the default instance.  I had
replication set up and functioning (data being created on the XP maching was being replicated to the Win 7 machine) for the last three weeks in July.  I recently noticed that the replication is no longer working (the files were no longer being copied),
and when I tried to check the status I got an error about named pipes, or, if I disabled named pipes "tcp provider error 0 no such host is known".
At the time I found the replication problem, I could connect to both databases through SSMS on the Windows 7 machine.  On the XP machine, I could use SSMS to browse to the Win 7 instance but SSMS would not connect to the Win 7 instance by name (same
errors about no such host known); the connection does go through by IP address.  I can ping from the Win 7 machine to the XP machine both by IP address and by name.  I could ping from the XP machine to the Win 7 machine by IP address but NOT by name.
I tried running the workgroup wizard on the XP machine, thinking this might help with the name resolution problem.  In the wizard, I changed the workgroup name to a new name.  I changed the workgroup name on the Win 7 machine to match.
This change did not affect the ping status - I can still ping by both name and IP address from the Win 7 machine, and still only the IP address works from the XP machine.  However, now SSMS on the Win 7 machine no longer sees the XP machine!  Trying
to log in with either the machine name and the IP address, I now get a "timeout expired" message, and the SSMS login browser does not show the XP machine on the network.
Any pointers on where to look for the cause of this problem would be very welcome.

There was some problem (bug?) with the remote connections flag on the Win 7 server.  Someone had posted in the comments to a technet article that unchecking the remote connections box, restarting the server, then re-checking it helped them.  I
tried it, and that fixed the problem with the Win 7 machine being unable to see the XP machine.
Olaf's suggestion about the Hosts file fixed the problem with the XP machine having to use the IP address - now it can connect by name as well.
Now I just have left the problem of a broken subscription to my replication, but that's a separate issue so I'll consider this thread closed.  Thanks to everyone who offered suggestions.

Similar Messages

  • Remote Desktop Connection Times Out With "Can't Connect" From One Specific Computer Only

    This is an odd one... I manage several servers from this computer. This particular server, 2012 Essentials, won't allow for remote desktop connections to either the server or attached workstations. I can get into the server's remote web page but when I
    attempt a remote desktop connection, it hangs on "Initiating remote connection..." and then times out with the error response that remote desktop can't connect. But... if I attempt the same connections from any other computer, I am able to get in
    and utilize remote desktop. Does this mean that there is a certificate issue with the computer unable to connect and if so, how does one remedy this? Or is it some other issue? I've attempted everything within my technical ability to no avail. Any suggestions
    are greatly appreciated.

    Hi,
    Before going further, would you please let me know the RDC version that used in the problematic computer? Was it the same with other computers?
    Please temporarily disable firewall and then check if this issue can be solved. Based on your current description, it’s hard to say the root reason of this issue.
    So, I suggest that you should check relevant log files and get some clues. It will help us to narrow down and solve your issue.
    Hope this helps.
    Best regards,
    Justin Gu

  • Remote LAN Name Resolution on VPN not working after upgrading to iOS8

    Has anyone come across the problem since upgrading to iOS8 where remote LAN name resolution does not work when connected to the remote LAN with VPN.  Everything worked fine on iOS7 and continues to work okay on devices that have not been upgraded.
    If I'm connected with WiFi on the local network, I am able to resolve the FQDN to a local IP address.  The problem arises when I'm away from the office, on either LTE or another WiFi and I start a VPN connection to the office.  The VPN connects without any problems.  If I try to connect to a desktop with the FQDN it never connects.  I will work if I connect with the IP address.  If I try to do an nslookup of the FQDN, I don't get a response.  I am however able to get a response when performing an nslookup for google.com.
    The VPN we are using is PPTP to a Windows network.

    Has anyone come across the problem since upgrading to iOS8 where remote LAN name resolution does not work when connected to the remote LAN with VPN.  Everything worked fine on iOS7 and continues to work okay on devices that have not been upgraded.
    If I'm connected with WiFi on the local network, I am able to resolve the FQDN to a local IP address.  The problem arises when I'm away from the office, on either LTE or another WiFi and I start a VPN connection to the office.  The VPN connects without any problems.  If I try to connect to a desktop with the FQDN it never connects.  I will work if I connect with the IP address.  If I try to do an nslookup of the FQDN, I don't get a response.  I am however able to get a response when performing an nslookup for google.com.
    The VPN we are using is PPTP to a Windows network.

  • Error 720: A connection to the remote computer could not be established.

    So I got an aircard Novatel P720. It was working fine for months. Then I installed a VPN connection. Now, I get this error.
    Error 720: A connection to the remote computer could not be established.
    Most of of what I found recommends uninstalling the WAN Miniport (IP), it seems that  I have to go thru so many hoops to get this fixed. Wondering if I would be better off rebuilding my machine from scratch again. Is there an patch or another way to get me going.
    I think this is an old issue. Lots of comments on this thru Google. I am hoping I can get a definative answer from Lenovo's itself!

    josezald wrote:
    So I got an aircard Novatel P720. It was working fine for months. Then I installed a VPN connection. Now, I get this error.
    Error 720: A connection to the remote computer could not be established.
    Most of of what I found recommends uninstalling the WAN Miniport (IP), it seems that  I have to go thru so many hoops to get this fixed. Wondering if I would be better off rebuilding my machine from scratch again. Is there an patch or another way to get me going.
    I think this is an old issue. Lots of comments on this thru Google. I am hoping I can get a definative answer from Lenovo's itself!
    Well, seeing since your having an Issue with a non Lenovo product. I dont think your going to get an official answer from Lenovo. You may get suggestions however. 
    Ignorance is no excuse!

  • Connecting to a remote computer

    Hi all,
    I have recently started working on a website using
    dreamweaver. I don't have a good experience building website. I
    need to connect to a emote computer to download data sitting there.
    The data is stored as a text file. I need to doknow how to do that
    with both option, i mean if there is a fire wall or with a
    firewall.
    Thanks!!

    Well, the two that are networked, you could set up a 'shared'
    directory, so
    that either or both computers can read and write to, then
    simply store this
    file in this directory and both can get to it whenever.
    As for the remote computer not networked to yours, well
    unless you have
    physical access to it, to get it onto a flash drive, portable
    hard drive
    etc, you are looking a bit limited, without email. Unless you
    can get the
    person to set up some sort of ftp access or the like, shared
    directory with
    password access, you might be SOOL.
    Cheers,
    Brendon
    ps. there may be other options, but they allude me at the
    moment.
    "Orhan_a" <[email protected]> wrote in
    message
    news:ea2k51$rhc$[email protected]..
    > Yes, the two computer are netwroked. no i can't email
    the text file from
    > the
    > remote computer. Also, i need to know how to download
    text file from a
    > remote
    > comuter which is not networked with mine. i might need
    it soon.
    >
    > Thanks alot!!
    >
    >
    >

  • Windows VPN: Error 720 - A connection to the remote computer could not be established

    Dear all
    I have a windows7 Laptop 64bit Dell 1340.
    I was working with a UMTS card, was connected with a VPN to a windows 2003 server over PPTP and experienced a bluescreen. After this, I have the following errors when connecting to the VPN:
    "Registering your computer on the network... Error 720: A connection to the remote computer could not be established. You might need to change the network settings for this connection"
    and in the event view I receive the following:
    EventID: 1, Source RasSstp
    CoId={A3478DFD-FFA4-4E8F-9DA3-CE829BDA777B}:The initial Secure Socket Tunneling Protocol request could not be successfully sent to the server. This can be due to network connectivity issues or certificate (trust) issues. The detailed error message is provided below. Correct the problem and try again.
    I tried to use the Rarepair.exe tool but it looks to work only on windows xp. I deleted the IP and TCP settings without any luck.
    I run a registry cleaner as well with out any luck.
    Your help will be greatly appreciated!
    Marc

    Hi,
    Since it worked previously, a quick solution is to run System Restore and get back to the previous status when the issue didn’t occur.
    If system restore doesn’t help, please also try the following:
    1.    Check if you can establish the VPN via other connections except the connection through the UMTS card.
    2.    Reset the PPTP and L2TP WAN miniport with running the following commands one by one in an elevated command prompt:
    Netcfg -u MS_L2TP
    Netcfg -u MS_PPTP
    Netcfg -l %windir%\inf\netrast.inf -c p -i MS_PPTP
    Netcfg -l %windir%\inf\netrast.inf -c p -i MS_L2TP
    Then reboot the computer and see how it works.
    Meanwhile, I would like to share the following with you for your reference:
    Troubleshooting common VPN related errors
    Hope this helps. Thanks.
    Nicholas Li - MSFT

  • BB Torch - bluetooth tethering for laptop internet use: "Error 720: A connection to the remote computer could not be establishe​d

    Trying to set up Blackberry Torch for laptop tethering...bluetooth. I have connection/drivers/etc. but keep getting error message: "Error 720: A connection to the remote computer could not be established. You might need to change the network settings for this connection." Where and what do I chancge setting to so this will work?
     I have synched my phone and laptop wirelessly across other internet connection....just cant get this above to work. Anybody know how to fix this? Thanks!

    Hi,
    Since it worked previously, a quick solution is to run System Restore and get back to the previous status when the issue didn’t occur.
    If system restore doesn’t help, please also try the following:
    1.    Check if you can establish the VPN via other connections except the connection through the UMTS card.
    2.    Reset the PPTP and L2TP WAN miniport with running the following commands one by one in an elevated command prompt:
    Netcfg -u MS_L2TP
    Netcfg -u MS_PPTP
    Netcfg -l %windir%\inf\netrast.inf -c p -i MS_PPTP
    Netcfg -l %windir%\inf\netrast.inf -c p -i MS_L2TP
    Then reboot the computer and see how it works.
    Meanwhile, I would like to share the following with you for your reference:
    Troubleshooting common VPN related errors
    Hope this helps. Thanks.
    Nicholas Li - MSFT

  • Error 720 a connection to the remote computer could not be established win 8

    hello, i have this error on my windose 8, error 720 a connection to the remote computer could not be established ,for VPN connection,  how can i fix it ? 

    Hi,
    For this issue,I would like to know your VPN protocol.
    Did you use Windows in-built VPN client?
    I think the issue is related to your security software or Firewall.
    Let’s temporarily disable other security software and Windows firewall to check if that helps.
    If it doesn't work, please uninstall the third-party security software or firewall to test it.
    Also, please check your event view to see if there are some related error in it.
    Regards,
    Kelvin hsu
    TechNet Community Support

  • Client could not establish a connection to the remote computer

    Sir we are using Windows 2008 Server standard licence edition and using Microsoft Cal open licence  (Total 25). Our system are working from smoothly from 1 years. But from one week we have facing client could not establish a connection to the remote
    computer.
    Sir I am talking from Integral Bank, Jaipur Sir please solve our problem.
    With warm regards,
    Hariom
    M-09875156100
    mail : [email protected]

    Sir we are using Windows 2008 Server standard licence edition and using Microsoft Cal open licence  (Total 25). Our system are working from smoothly from 1 years. But from one week we have facing client could not establish a connection to the remote
    computer.
    Sir I am talking from Integral Bank, Jaipur Sir please solve our problem.
    With warm regards,
    Hariom
    M-09875156100
    mail : [email protected]

  • Can I access Firefox and Thunderbird from a remote computer while on vacation? if so how?

    going on vacation for 4 to 5 weeks. need to access my Firefox and Thunderbird from a remote computer in Fla. can I do that and if so how?

    Hi linkrj61,
    You could either use remote desktop to log on to your home computer or you could look at portableapps.com. This this will allow you to have versions of Firefox and Thunderbird the run from a USB stick so everything you do is tracked on the USB stick rather than the computer.
    Hopefully this helps!

  • Policies not applying + Computer name resolution failure

    Hi everyone,
    We are having issues with the applying of GPOs on our client PCs. We have two DCs - one (Lomu) configured with the master FSMO roles. The issue is completely intermittent, affecting a lagre number of machines that have been reimaged over the Summer (approx.
    50 out of 150 machines reimaged are affected).
    The results of a dcdiag are below:
    Directory Server Diagnosis
    Performing initial setup:
       Trying to find home server...
       * Verifying that the local machine LOMU, is a Directory Server.
       Home Server = LOMU
       * Connecting to directory service on server LOMU.
       * Identified AD Forest.
       Collecting AD specific global data
       * Collecting site info.
       Calling ldap_search_init_page(hld,CN=Sites,CN=Configuration,DC=ryburn,DC=inte
    rnal,LDAP_SCOPE_SUBTREE,(objectCategory=ntDSSiteSettings),.......
       The previous call succeeded
       Iterating through the sites
       Looking at base site object: CN=NTDS Site Settings,CN=Default-First-Site-Name
    ,CN=Sites,CN=Configuration,DC=ryburn,DC=internal
       Getting ISTG and options for the site
       * Identifying all servers.
       Calling ldap_search_init_page(hld,CN=Sites,CN=Configuration,DC=ryburn,DC=inte
    rnal,LDAP_SCOPE_SUBTREE,(objectClass=ntDSDsa),.......
       The previous call succeeded....
       The previous call succeeded
       Iterating through the list of servers
       Getting information for the server CN=NTDS Settings,CN=LOMU,CN=Servers,CN=Def
    ault-First-Site-Name,CN=Sites,CN=Configuration,DC=ryburn,DC=internal
       objectGuid obtained
       InvocationID obtained
       dnsHostname obtained
       site info obtained
       All the info for the server collected
       Getting information for the server CN=NTDS Settings,CN=VM-MARADONA,CN=Servers
    ,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=ryburn,DC=internal
       objectGuid obtained
       InvocationID obtained
       dnsHostname obtained
       site info obtained
       All the info for the server collected
       * Identifying all NC cross-refs.
       * Found 2 DC(s). Testing 1 of them.
       Done gathering initial info.
    Doing initial required tests
       Testing server: Default-First-Site-Name\LOMU
          Starting test: Connectivity
             * Active Directory LDAP Services Check
             Determining IP4 connectivity
             * Active Directory RPC Services Check
             ......................... LOMU passed test Connectivity
    Doing primary tests
       Testing server: Default-First-Site-Name\LOMU
          Starting test: Advertising
             The DC LOMU is advertising itself as a DC and having a DS.
             The DC LOMU is advertising as an LDAP server
             The DC LOMU is advertising as having a writeable directory
             The DC LOMU is advertising as a Key Distribution Center
             The DC LOMU is advertising as a time server
             The DS LOMU is advertising as a GC.
             ......................... LOMU passed test Advertising
          Test omitted by user request: CheckSecurityError
          Test omitted by user request: CutoffServers
          Starting test: FrsEvent
             * The File Replication Service Event log test
             ......................... LOMU passed test FrsEvent
          Starting test: DFSREvent
             The DFS Replication Event Log.
             Skip the test because the server is running FRS.
             ......................... LOMU passed test DFSREvent
          Starting test: SysVolCheck
             * The File Replication Service SYSVOL ready test
             File Replication Service's SYSVOL is ready
             ......................... LOMU passed test SysVolCheck
          Starting test: KccEvent
             * The KCC Event log test
             Found no KCC errors in "Directory Service" Event log in the last 15 min
    utes.
             ......................... LOMU passed test KccEvent
          Starting test: KnowsOfRoleHolders
             Role Schema Owner = CN=NTDS Settings,CN=LOMU,CN=Servers,CN=Default-Firs
    t-Site-Name,CN=Sites,CN=Configuration,DC=ryburn,DC=internal
             Role Domain Owner = CN=NTDS Settings,CN=LOMU,CN=Servers,CN=Default-Firs
    t-Site-Name,CN=Sites,CN=Configuration,DC=ryburn,DC=internal
             Role PDC Owner = CN=NTDS Settings,CN=LOMU,CN=Servers,CN=Default-First-S
    ite-Name,CN=Sites,CN=Configuration,DC=ryburn,DC=internal
             Role Rid Owner = CN=NTDS Settings,CN=LOMU,CN=Servers,CN=Default-First-S
    ite-Name,CN=Sites,CN=Configuration,DC=ryburn,DC=internal
             Role Infrastructure Update Owner = CN=NTDS Settings,CN=LOMU,CN=Servers,
    CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=ryburn,DC=internal
             ......................... LOMU passed test KnowsOfRoleHolders
          Starting test: MachineAccount
             Checking machine account for DC LOMU on DC LOMU.
             * SPN found :LDAP/LOMU.ryburn.internal/ryburn.internal
             * SPN found :LDAP/LOMU.ryburn.internal
             * SPN found :LDAP/LOMU
             * SPN found :LDAP/LOMU.ryburn.internal/RYBURN
             * SPN found :LDAP/8ee4cad0-4018-428e-b85b-07af05cf933c._msdcs.ryburn.in
    ternal
             * SPN found :E3514235-4B06-11D1-AB04-00C04FC2DCD2/8ee4cad0-4018-428e-b8
    5b-07af05cf933c/ryburn.internal
             * SPN found :HOST/LOMU.ryburn.internal/ryburn.internal
             * SPN found :HOST/LOMU.ryburn.internal
             * SPN found :HOST/LOMU
             * SPN found :HOST/LOMU.ryburn.internal/RYBURN
             * SPN found :GC/LOMU.ryburn.internal/ryburn.internal
             ......................... LOMU passed test MachineAccount
          Starting test: NCSecDesc
             * Security Permissions check for all NC's on DC LOMU.
             * Security Permissions Check for
               DC=ForestDnsZones,DC=ryburn,DC=internal
                (NDNC,Version 3)
             * Security Permissions Check for
               DC=DomainDnsZones,DC=ryburn,DC=internal
                (NDNC,Version 3)
             * Security Permissions Check for
               CN=Schema,CN=Configuration,DC=ryburn,DC=internal
                (Schema,Version 3)
             * Security Permissions Check for
               CN=Configuration,DC=ryburn,DC=internal
                (Configuration,Version 3)
             * Security Permissions Check for
               DC=ryburn,DC=internal
                (Domain,Version 3)
             ......................... LOMU passed test NCSecDesc
          Starting test: NetLogons
             * Network Logons Privileges Check
             Verified share
    \\LOMU\netlogon
             Verified share
    \\LOMU\sysvol
             [LOMU] User credentials does not have permission to perform this
             operation.
             The account used for this test must have network logon privileges
             for this machine's domain.
             ......................... LOMU failed test NetLogons
          Starting test: ObjectsReplicated
             LOMU is in domain DC=ryburn,DC=internal
             Checking for CN=LOMU,OU=Domain Controllers,DC=ryburn,DC=internal in dom
    ain DC=ryburn,DC=internal on 1 servers
                Object is up-to-date on all servers.
             Checking for CN=NTDS Settings,CN=LOMU,CN=Servers,CN=Default-First-Site-
    Name,CN=Sites,CN=Configuration,DC=ryburn,DC=internal in domain CN=Configuration,
    DC=ryburn,DC=internal on 1 servers
                Object is up-to-date on all servers.
             ......................... LOMU passed test ObjectsReplicated
          Test omitted by user request: OutboundSecureChannels
          Starting test: Replications
             * Replications Check
             [Replications Check,LOMU] DsReplicaGetInfo(PENDING_OPS, NULL) failed,
             error 0x2105 "Replication access was denied."
             ......................... LOMU failed test Replications
          Starting test: RidManager
             * Available RID Pool for the Domain is 11603 to 1073741823
             * LOMU.ryburn.internal is the RID Master
             * DsBind with RID Master was successful
             * rIDAllocationPool is 11103 to 11602
             * rIDPreviousAllocationPool is 11103 to 11602
             * rIDNextRID: 11249
             ......................... LOMU passed test RidManager
          Starting test: Services
             * Checking Service: EventSystem
             * Checking Service: RpcSs
             * Checking Service: NTDS
                Could not open NTDS Service on LOMU, error 0x5 "Access is denied."
             * Checking Service: DnsCache
             * Checking Service: NtFrs
             * Checking Service: IsmServ
             * Checking Service: kdc
             * Checking Service: SamSs
             * Checking Service: LanmanServer
             * Checking Service: LanmanWorkstation
             * Checking Service: w32time
             * Checking Service: NETLOGON
             ......................... LOMU failed test Services
          Starting test: SystemLog
             * The System Event log test
             Found no errors in "System" Event log in the last 60 minutes.
             ......................... LOMU passed test SystemLog
          Test omitted by user request: Topology
          Test omitted by user request: VerifyEnterpriseReferences
          Starting test: VerifyReferences
             The system object reference (serverReference)
             CN=LOMU,OU=Domain Controllers,DC=ryburn,DC=internal and backlink on
             CN=LOMU,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration
    ,DC=ryburn,DC=internal
             are correct.
             The system object reference (serverReferenceBL)
             CN=LOMU,CN=Domain System Volume (SYSVOL share),CN=File Replication Serv
    ice,CN=System,DC=ryburn,DC=internal
             and backlink on
             CN=NTDS Settings,CN=LOMU,CN=Servers,CN=Default-First-Site-Name,CN=Sites
    ,CN=Configuration,DC=ryburn,DC=internal
             are correct.
             The system object reference (frsComputerReferenceBL)
             CN=LOMU,CN=Domain System Volume (SYSVOL share),CN=File Replication Serv
    ice,CN=System,DC=ryburn,DC=internal
             and backlink on CN=LOMU,OU=Domain Controllers,DC=ryburn,DC=internal
             are correct.
             ......................... LOMU passed test VerifyReferences
          Test omitted by user request: VerifyReplicas
          Test omitted by user request: DNS
          Test omitted by user request: DNS
       Running partition tests on : ForestDnsZones
          Starting test: CheckSDRefDom
             ......................... ForestDnsZones passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... ForestDnsZones passed test
             CrossRefValidation
       Running partition tests on : DomainDnsZones
          Starting test: CheckSDRefDom
             ......................... DomainDnsZones passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... DomainDnsZones passed test
             CrossRefValidation
       Running partition tests on : Schema
          Starting test: CheckSDRefDom
             ......................... Schema passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... Schema passed test CrossRefValidation
       Running partition tests on : Configuration
          Starting test: CheckSDRefDom
             ......................... Configuration passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... Configuration passed test CrossRefValidation
       Running partition tests on : ryburn
          Starting test: CheckSDRefDom
             ......................... ryburn passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... ryburn passed test CrossRefValidation
       Running enterprise tests on : ryburn.internal
          Test omitted by user request: DNS
          Test omitted by user request: DNS
          Starting test: LocatorCheck
             GC Name:
    \\LOMU.ryburn.internal
             Locator Flags: 0xe00033fd
             PDC Name:
    \\LOMU.ryburn.internal
             Locator Flags: 0xe00033fd
             Time Server Name:
    \\LOMU.ryburn.internal
             Locator Flags: 0xe00033fd
             Preferred Time Server Name:
    \\LOMU.ryburn.internal
             Locator Flags: 0xe00033fd
             KDC Name:
    \\LOMU.ryburn.internal
             Locator Flags: 0xe00033fd
             ......................... ryburn.internal passed test LocatorCheck
          Starting test: Intersite
             Skipping site Default-First-Site-Name, this site is outside the scope
             provided by the command line arguments provided.
             ......................... ryburn.internal passed test Intersite
    Just wondering if anyone has similar issues as us on this?
    When running gpupdates, we receive this message:
    The processing of Group Policy failed. Windows could not resolve the computer name. This could be caused by one of more of the following:
    a) Name Resolution failure on the current domain controller.
    b) Active Directory Replication Latency (an account created on another domain controller has not replicated to the current domain controller).
    Thanks,
    Tom.

    Hi,
    I would suggest you check the group policy service log under event viewer\Applications and Services log\Microsoft\Windows\Group Policy, find the error log and check the Details, then apply the solutions mentioned in the link below depending on the detailed
    error code.
    http://technet.microsoft.com/en-us/library/dd392593(v=ws.10).aspx
    As
    arnavsharma mentioned, members in GP forum are more familiar with this topic.
    Yolanda Zhu
    TechNet Community Support

  • Module Function Name Resolution - Issues with DefaultCommandPrefix

    Just getting started on module development, running PS4, and I've run into an... inconsistency... that I'm trying to understand. I've got two test functions, Get-Something and Set-Something in a script module. In my manifest file I specify a DefaultCommandPrefix
    of 'Test'.
    My issue is the function name resolution doesn't result in an executable result if you leave PowerShell up to it's own process.
    To begin with I closed all sessions and deleted all files in the CommandAnalysis directory. After starting a session I waited for the CommandAnalysis cache to populate. Then I ran a series of test commands to illustrate how, most of the time, the function
    name PowerShell registers with tab completion can't be executed because it lacks the 'Test' prefix. Even worse, much of the time tab completion won't recognize the correct (i.e., with prefix) name of the function and honor tab completion for it.
    Having just learned of the CommandAnalysis cache I assumed I would see it change as PowerShell 'learned' more about the module because the name resolves differently over time. I've included three files at the end of this post, the module code (ModuleTest.psm1),
    the manifest (ModuleTest.psd1) and the capture of output to the PowerShell session (ModuleTest.txt). I've tried to include the times I used <tab> and <ret> for tab completion and execution as well as (comments in parenthesis for things I did like
    starting a new session and checking the CommandAnalysis cache for changes).
    An example is, when first starting a session typing 'get-som<tab>' will resolve to 'Get-Something' (prefix 'Test' missing) and typing 'get-test<tab>' won't resolve to 'Get-TestSomething'. Try to execute the 'Get-Something' from tab completion
    and you'll get the 'name not recognized, blah, blah'.
    Now if you type 'get-som<tab>' PowerShell will resolve to 'ModuleTest\Get-Something' - looks promising... but no.  Try to execute the 'ModuleTest\Get-Something' from tab completion and you'll still get the 'name not recognized, blah, blah'.
    Even though the same key strokes resolved differently there were no changes made to the CommandAnalysis cache so I'm lost on why it produces two different (though equally useless) results.
    Manually importing the module and sometimes running Get-Command -Module ModuleTest will make tab completion of the function names behave correctly. Is this a known issue with using DefaultCommandPrefix in script modules or is there something I need to include
    in the manifest to enforce strict name recognition (including the prefix)?
    <ModuleTest.psm1>
    function Get-Something
     Write-Host "Get-Something Executed"
    function Set-Something
     Write-Host "Set-Something Executed"
    <ModuleTest.psd1>
    # Script module or binary module file associated with this manifest
    ModuleToProcess = 'ModuleTest.psm1'
    # Version number of this module.
    ModuleVersion = '1.0.0.0'
    # ID used to uniquely identify this module
    GUID = '241877ff-64be-40c8-a603-8d5acf7a48d8'
    # Author of this module
    Author = 'wb3'
    # Company or vendor of this module
    CompanyName = ''
    # Copyright statement for this module
    Copyright = '(c) 2015. All rights reserved.'
    # Description of the functionality provided by this module
    Description = 'Module description'
    # Minimum version of the Windows PowerShell engine required by this module
    PowerShellVersion = '2.0'
    # Name of the Windows PowerShell host required by this module
    PowerShellHostName = ''
    # Minimum version of the Windows PowerShell host required by this module
    PowerShellHostVersion = ''
    # Minimum version of the .NET Framework required by this module
    DotNetFrameworkVersion = '2.0'
    # Minimum version of the common language runtime (CLR) required by this module
    CLRVersion = '2.0.50727'
    # Processor architecture (None, X86, Amd64, IA64) required by this module
    ProcessorArchitecture = 'None'
    # Modules that must be imported into the global environment prior to importing
    # this module
    RequiredModules = @()
    # Assemblies that must be loaded prior to importing this module
    RequiredAssemblies = @()
    # Script files (.ps1) that are run in the caller's environment prior to
    # importing this module
    ScriptsToProcess = @()
    # Type files (.ps1xml) to be loaded when importing this module
    TypesToProcess = @()
    # Format files (.ps1xml) to be loaded when importing this module
    FormatsToProcess = @()
    # Modules to import as nested modules of the module specified in
    # ModuleToProcess
    NestedModules = @()
    # Default command prefix
    DefaultCommandPrefix = 'Test'
    # Functions to export from this module
    FunctionsToExport = '*'
    # Cmdlets to export from this module
    CmdletsToExport = '*'
    # Variables to export from this module
    VariablesToExport = '*'
    # Aliases to export from this module
    AliasesToExport = '*'
    # List of all modules packaged with this module
    ModuleList = @()
    # List of all files packaged with this module
    FileList = @()
    # Private data to pass to the module specified in ModuleToProcess
    PrivateData = ''
    <ModuleTest.output>
    PS C:\Scripts\PowerShell> Get-ChildItem -Path 'C:\Program Files\WindowsPowerShell\Modules' -Recurse<ret>
        Directory: C:\Program Files\WindowsPowerShell\Modules
    Mode                LastWriteTime     Length Name
    d----          3/5/2015   9:06 AM            ModuleTest
        Directory: C:\Program Files\WindowsPowerShell\Modules\ModuleTest
    Mode                LastWriteTime     Length Name
    -a---          3/5/2015   8:50 AM       2907 ModuleTest.psd1
    -a---          3/5/2015   9:01 AM        140 ModuleTest.psm1
    PS C:\Scripts\PowerShell> Get-Module -ListAvailable<ret>
        Directory: C:\Program Files\WindowsPowerShell\Modules
    ModuleType Version    Name                                ExportedCommands
    Script     1.0.0.0    ModuleTest                          {Get-Something, Set-Something}
    PS C:\Scripts\PowerShell> get-som<tab>
    PS C:\Scripts\PowerShell> Get-Something<ret>
    Get-Something : The term 'Get-Something' is not recognized as the name of a cmdlet, function, script file, or operable
    program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + Get-Something
    + ~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (Get-Something:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    (No change in CommandAnalysis cache)
    PS C:\Scripts\PowerShell> get-som<tab>
    PS C:\Scripts\PowerShell> ModuleTest\Get-Something<ret>
    ModuleTest\Get-Something : The term 'ModuleTest\Get-Something' is not recognized as the name of a cmdlet, function,
    script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
    correct and try again.
    At line:1 char:1
    + ModuleTest\Get-Something
    + ~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (ModuleTest\Get-Something:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    (No change in CommandAnalysis cache)
    PS C:\Scripts\PowerShell> get-tes<tab>
    PS C:\Scripts\PowerShell> Get-TestSomething<ret>
    Get-Something Executed
    (New Session)
    (No change in CommandAnalysis cache)
    PS C:\Scripts\PowerShell> get-tes<tab><ret>
    get-tes : The term 'get-tes' is not recognized as the name of a cmdlet, function, script file, or operable program.
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + get-tes
    + ~~~~~~~
        + CategoryInfo          : ObjectNotFound: (get-tes:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    PS C:\Scripts\PowerShell> Import-Module ModuleTest<ret>
    (No change in CommandAnalysis cache)
    PS C:\Scripts\PowerShell> get-tes<tab><ret>
    PS C:\Scripts\PowerShell> Get-TestSomething
    Get-Something Executed
    (New Session)
    (No change in CommandAnalysis cache)
    PS C:\Scripts\PowerShell> get-tes<tab><ret>
    get-tes : The term 'get-tes' is not recognized as the name of a cmdlet, function, script file, or operable program.
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + get-tes
    + ~~~~~~~
        + CategoryInfo          : ObjectNotFound: (get-tes:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    PS C:\Scripts\PowerShell> Get-Command -Module ModuleTest<ret>
    CommandType     Name                                              
    ModuleName
    Function        Get-TestSomething                                 
    ModuleTest
    Function        Set-TestSomething                                 
    ModuleTest
    (No change in CommandAnalysis cache)
    PS C:\Scripts\PowerShell> get-tes<tab>
    PS C:\Scripts\PowerShell> Get-TestSomething<ret>
    Get-Something Executed
    PS C:\Scripts\PowerShell> moduletest\get<tab><ret>
    PS C:\Scripts\PowerShell> Get-TestSomething<ret>
    Get-Something Executed
    William Busby, PMP

    Hi William,
    yes, that's something you'll either have to do the hard way or live with admin confusion.
    If you're using Sapien's PowerShell Studio as an Editor (hint: Usually a great idea), you can very easily rename a function, even in a multi-file module project, by rightcklicking on the function-name and selecting "rename".
    Alternatively you can do a bulk rename with Powershell:
    Get all functions in your module (Load it and check exportedcommands)
    loop over each function-name
    calculate new name
    search your entire project for all references and replace them.
    Let me see ...
    function Rename-ModulePrefix
    [CmdletBinding()]
    Param (
    [Parameter(Position = 0, Mandatory = $true)]
    [string]
    $ModuleName,
    [Parameter(Position = 1, Mandatory = $true)]
    [string]
    $OldPrefix,
    [Parameter(Position = 2, Mandatory = $true)]
    [string]
    $NewPrefix,
    [Parameter(Position = 3)]
    [string]
    $Path
    # Catch all typos
    Import-Module $ModuleName -ErrorAction 'Stop'
    # Get root path if not manually passed
    if (-not $PSBoundParameters["Path"])
    $Path = (Get-Module $ModuleName).Path
    # Get module files
    $Files = Get-ChildItem -Path $path -Recurse -Include "*.ps1", "*.psm1", "*.psd1"
    # Iterate over each file
    foreach ($file in $Files)
    # Null variable in case you get an empty file somewhere and run this from Win 7
    $data = $null
    # Get Content of file
    $data = Get-Content $file
    # Replace strings
    foreach ($c in (Get-Module $ModuleName).ExportedCommands)
    $newName = $c.Name -replace $OldPrefix, $NewPrefix
    $data = $data | ForEach-Object { $_ -replace $c.Name, $newName }
    # Write back to file
    $data | Set-Content $file
    While I didn't proof it, in theory this should do it (Make a backup before running it :) ).
    Cheers,
    Fred
    There's no place like 127.0.0.1

  • How to resolve remote computer name

    My DNS provider responds "success" to all requests, regardless of whether or not the name is valid. When using a web browser, for example, it will take me to a web page that displays marketing information and Google search results for whatever domain name I tried typing in. This is nuisance, but manageable when working with the web.
    However, when dropping to the shell and trying to do something like "ssh {computername}", I am unable to do so because it attempts to connect to the wrong IP address.
    How do I get Mac OSX to resolve these names on my local network using Bonjour or some other resolution protocol before sending it off to default DNS?
    On Windows, NETBIOS kicks in names are resolved easily. Is something like this possible on Mac?
    Message was edited by: parleer

    Bonjour would be
    computer-name.local
    where the .local is the specify info you need.
    You could use a different DNS server, such as the OpenDNS.org servers.
    System Preferences -> Network -> Advanced -> DNS
    Anything you enter will always be used first regardless of what the display says. You can verify this by looking at /etc/resolv.conf
    You could also specify a search domain in the same Network DNS system preference. For example you could specify .local so by default Bonjour would be searched if you do not specify a domain in your search names.
    Message was edited by: BobHarris

  • Is it possible to administer the license server from a remote computer?

    NI VLM and the license server service are running on a license server machine. Company policy prevents me from having admin access to the machine (which seems necessary in order to run NI VLM). Is it possible to administer the license server service from a remote machine? i.e., can I install NI VLM on a machine that is not the license server, but connect to and manage the license server service over the network? I can access the license server via RDP, but without admin access, I can't get very far.
    Is there any other way to manage the VLM without admin access to the machine it is running on?
    Thanks,
    Chris

    Hey Chris,
    I haven't heard of a case where someone was able to administer licenses via VLM without having administrator access. Is there any possibility of getting administrator access on the license server machine, even if it's through some sort of temporary account?

  • Run ARD administrer from a remote computer

    Sorry if this has been answered previously; searching with terms like remote and administrator doesn't restrict many responses.
    I have installed ARD on one of my Leopard Servers and I would like run it from my desktop computer as I do the server applications. Is this possible or do I have to be sitting at the server run ARD? I have checked through the Administrators Guide but can't find anything about this but it seem like a natural thing to want to do
    Thanks for any assistance.
    Bill

    If you don't need to run ARD from your workstation, you could have just the single copy of ARD on the server and take control of that via 10.5 screen sharing (that should still work with the ARD admin app running on the server, though I've never tried it) or VNC. Then you wouldn't need two copies of ARD. If you want ARD on your workstation as well, though, then you will need to purchase a second copy of ARD if you don't have two copies now.

Maybe you are looking for

  • Iphone 5s stuck in recovery mode after BLUE SCREEN OF DEATH (BSOD)

    Hi I have a replacement Iphone 5S which is out of warranty now and I am suffering from severe BSOD issues. I used the phone for a week and it was working fine till I experienced the first BSOD, the phone went to restart automatically and it was fine.

  • I cant "drag and drop" music onto my ipod anymore can i get help please???

    Hi, Since i have my ipod i have always dragged and dropped music from my itunes library onto my ipod but now every time i open itunes it tries to sync my whole library onto my ipod which i dont want, but now i cant drag nd drop onto it anymore , and

  • Queries related to DMS and Archive link

    Hi Experts, 1. Is it possible to link documents in MIGO or FB03 through Archive link with documents already stored via OAWD or CV01N. 2. Can we use any single transaction code for reporting purpose where we can find all the documents stored via DMS a

  • How can we create the error log in a ABAP program

    Hi all, How can we create the error log in a ABAP program Thanks, srinivas.

  • Quality Inspection with Intervals

    Dear All, We have a requirement where in our client wants that during GRN of bought out material, every alternate GRN should go for Quality Inspection setup. THis frequency can be variable though. How can this be achieved in system. Please note that