Mapping a disk on another network

I want to run a LabVIEW application which needs to map a disk on another network. I want to use WNetAddConnection2 from mpr.dll.
I have valid accounts on both networks and I succeeded the mapping in Windows Explorer.
In LabVIEW I didn't succeed, probably because of the way I am transmiting the NETRESOURCE structure to the DLL. If passing like a LabVIEW cluster I'm obtaining error code 1200. If passing like in "CLUSTERSimpleS_A.vi" I get error code 487. These error codes are obtained no matter what values I'm using for dwScope, dwType, dwDisplayType and dwUsage.
Any help, please ?

Hello Tom,
The WNetAddConnection2 needs a NETRESOURCE structure as a input and if you try using Cluster in LabVIEW, it might not work. The best workaround would be creating a C Wrapper that takes in the various data types and converts them to a structure that can be used with the DLL function call.
An easier alternative would be using the "net use" command in "System Exec.vi" for this application. More information on the use can be found at http://digital.ni.com/public.nsf/websearch/313C5E597B48652F86256D2700674EDB?OpenDocument
I hope this helps,
Rajiv

Similar Messages

  • Mapped Drive B:\ to a network share but does not show up in Windows Explorer.

    I mapped drive B: to a network share but it does not show up in Windows explorer.  I can go to the drive by typing b:\ but is not visible in explorer.  But if I login as local admin it shows up in windows explorer.  Any suggestions?

    Hi Lloyd Reeves,
    Based on my research, I would like to suggest the following:
    Disconnect the mapped drive and map it again.
    Ensure the user is using an administrator account; or change another user account to have a try.
    Create  a shortcut for a share folder and see if it will disappear.
    In addition,  it would be helpful for future troubleshooting if you could help to collect the following information:
    Which method did you use to map drive?
    Was there any error message in the Event log? If so, please provide the      detailed information.
    For your information, please refer to this similar case:
    http://social.technet.microsoft.com/Forums/windows/en-US/6acab187-c46c-4ff9-8604-196c64ea8995/mapped-drives-not-visible-in-explorer-although-shown-in-map-network-drive?forum=w7itpronetworking
    Regards,
    Lany Zhang

  • Anyone successfull w/ continuing TM backups to another network?

    Ok my situation:
    I have a Mac 10.6.8 server and a external HD connected to server and shared as a Time Machine destination.
    My 10.8.5 iMac connects to this HD w/  and is backing up is backing up to this TM drive
    I would now like to disconnect that external HD and connect it to another remote Mac (non server) in another location, out of my network, and CONTINUE my iMac backups. Why? so I don't have to start a new TM backup of over 1.25TB over the internet to my externally mounted TM HD.
    I did this already; connected the external HD that had my iMac TM backups, to a remote Mac, connected to it over AFP*, mounted the external HD and on my iMac, selected it as another disk to backup to and... it never gets backed up to. TM fail..
    I get:
    "The Backup volume cannot be mounted"
    I then noticed I cannot make a file on the external mounted HD, and I get a Finder error -50 when I try to do so.
    Obviously there a permissions is I have..
    but my question is has anyone been able accomplish what I'm trying to do? From one network TM backup to another network? If so how?
    Thanks!
    *I don't plan to use this connection method for the long term, just for this testing I did so.

    gzieses wrote:
    I backup to an external drive on my Airport Extreme network using an OWC NewerTech miniStack NAS 500G drive. It works fine with Time Machine.
    Just to clarify the terminology, a NAS is not the same as an external HD. It's a small, special-purpose computer with a hard drive, not just a simple hard drive.
    The difference may seem minor, but it can have major implications for Time Machine. See the pink box in #2 of [Time Machine - Frequently Asked Questions|http://web.me.com/pondini/Time_Machine/FAQ.html] (or use the link in *User Tips* at the top of this forum).
    However, I just noticed that when click on TM to look at my listing of backups, they are showing as being there but are gray'd out. If I close TM and reopen it, the lines for the backup dates are bright again and I can scroll through them.
    That may be a difference in the way you get there. If you start with a Finder window pointed to a new folder, for example, the lines for backups before that folder was created will be grayed-out, since there were no backups of that folder on those dates.
    If in doubt, use the +*Browse ...+* option, per #17 in the FAQ.
    As long as the backups are there, they're probably ok. Since they're on a NAS, you may or may not be able to repair them, following the directions for backups on a Time Capsule in #A5 of [Time Machine - Troubleshooting|http://web.me.com/pondini/Time_Machine/Troubleshooting.html] (or use the link in *User Tips* at the top of this forum).
    Do be very careful, however, using the Finder on your backups -- if you accidentally move, change, or delete things that way, the backups can be corrupted, perhaps beyond repair.

  • How can I map SSH from an outside network range to an internal host (ASA 5505)

    Cisco Adaptive Security Appliance Software Version 7.2(4)
    Device Manager Version 5.2(4)
    - External network range that needs SSH access: 8.8.8.0/24
    - Outside interface: 10.1.10.2 (NAT'd from 7.7.7.7)
    - Inside Network: 192.168.100.0/24
    - Inside host to redirect external SSH to: 192.168.100.98
    Hi All,
    I have a Cisco ASA 5505 (version above) and I have someone that needs to SSH into a box behind the ASA. I'm having a few issues trying to configure this access-list and NAT. I've tried many combinations and clearly my IOS is not as good as I thought.
    Can anyone help with this? What commands should I enter to accomplish mapping SSH from an outside network range to an internal host?
    Many thanks,
    Tarran

    This may or may not work depending on how your modem handles the natting. On your firewall try this -
    static (inside,outside) tcp interface 22 192.168.100.98 22
    then add this to your acl on the outside interface of your ASA -
    access-list outside_in permit tcp 8.8.8.0 255.255.255.0 host 10.1.10.2 eq 22
    if you don't have an acl applied then add this extra step -
    access-group outside_in in interface outside
    Jon

  • Not printing text-only graphics on Canon. Not printer problem-print ok on Brother and another network Apple prints ok on Canon. Believe a computer setting was inadvertently reset. What setting and how do I reset?

    Not printing text only on Canon--grahics print ok.  Not printer problem.  Prints ok on a Brother and another network Apple prints ok on Canon.  Believe a computer setting was inadvertently reset.  What setting and how do I reset?

    Without your printer model numbers, readers can only give you vague general directions.
    System Preferences > Print&Fax > ...
    ... shows a list of all set-up printers.
    If you are having serious problems, it makes sense to "Reset the Printing System" (which also removes all printer set-ups) and add back each printer. It only takes a few minutes.
    Mac OS X 10.6 Help: Resetting the printing system

  • Hello! I have in my home 2 iMac, 2 iPad, 2 iPhone, and 1 air base extreme. I don't succeed to connect more than one divice from similar type. I tried everything what I knew. I build another network, etc...

    Hello! I have in my home 2 iMac, 2 iPad, 2 iPhone, and 1 air base extreme. I don't succeed to connect more than one divice from similar type. I tried everything what I knew. I build another network, etc...
    So only one imac, only one ipad..and so on simultain.
    More over, all the divices are conect through wifi to air base but are not receiveing internet as i told above.
    I need to disconnect one device to have internet on the second one from the same type!
    Could somebody help me?
    Many Thnaks,
    dan

    If your network configuration is:
    Cable modem > (Ethernet cable) > [WAN] AEBS > (wireless) > Macs, then
    AirPort Extreme Base Station Setup (AEBS) w/High-Speed Cable Modem
    Modem/Router Power ReCycling
    - Power-off the Cable modem, AEBS, & computer(s). (If possible, leave the modem off overnight.)
    - Power-on the Cable modem; Wait at least 30 minutes.
    - Power-on the AEBS; Wait at least 5 minutes.
    - Power-on the computer(s)
    Perform a "hard" reset of the AEBS.
    - (ref: http://docs.info.apple.com/article.html?artnum=107451)
    Setup the AEBS
    With the network components powered down, set up the AEBS, using the AirPort Admin Utility, connect your computer directly (using an Ethernet cable) to the LAN port of the AEBS, and then, try these settings:
    AirPort tab
    - Base Station Name: <whatever you wish or use the default>
    - AirPort Network Name: <whatever you wish or use the default>
    - Create a closed network (unchecked)
    - Wireless Security: Not enabled
    - Channel: Automatic
    - Mode: 802.11b/g Compatible
    Internet tab
    - Connect Using: Ethernet
    - Configure: Using DHCP
    - WAN Ethernet Port: Automatic
    Network tab
    - Distribute IP addresses (checked)
    - Share a single IP address (using DHCP & NAT) (enabled)
    Once you verified that you can get Internet access for all of your computers, you should secure your wireless network. To do so, I suggest that you make these changes:
    AirPort tab (optional)
    - Create a closed network (checked)
    Change Wireless Security
    - Wireless Security: WPA Personal
    Base Station Options - WAN Ethernet Port
    - Enable SNMP Access (unchecked)
    - Enable Remote Configuration (unchecked)
    - Enable Remote Printer Access (unchecked)
    Wireless Options
    - Transmitter Power: 10%
    Access Control tab (optional)
    - + <add the computer(s) that will access this wireless network>

  • I would like to know how i can share my music using an UPnp protocole. I have an Imac but when i'm chosing the option share my file i can connect my mac to another network reader . it seems that the protocole used is not UPnp. I need this to be in UPnp.

    I would like to know how i can share my music using an UPnp protocole. I have an Imac but when i'm chosing the option share my file i can connect my mac to another network reader . it seems that the protocole used is not UPnp. I need this to be in UPnp. does somebody can help ?

    Google "upnp mac"

  • Since I upgraded to Mavericks, Time Machine no longer finds the Time Capsule Disk on my network

    Hi,
    Since I upgraded to Mavericks, Time Machine no longer finds the Time Capsule Disk on my network.
    Five minutes before upgrading it however performed successfully a last backup.
    I found several posts on this forum and proposed solutions:
    - restarted both the mac and capsule
    - deleted the /Library/Preferences/com.apple.TimeMachine.plist (twice rebooting in between)
    Still have the issue.

    What brand of drive is it?
    Disks You Can Use
    Troubleshooting backup issues
    Time Machine Can’t Find Backup Disk

  • Once I receive my Network Access Code(N.A.C.) for iphone 5 what are the next steps I follow to unlock my phone from vodafone to use on another network???

    Once I recieve my Network Access Code(NAC) for my iPhone 5, what are the next steps I follow to unlock it from vodafone to use on another network???
    I have my other nano sim ready and waiting to port my number to it, but im just waiting on vodafone to email me the NAC code, which i checked up that I was eligible for!!!

    Ok many thanks for telling me this BUT 1 last thing, once vodafone get back to me then is it just a matter of plugging my iphone into itunes and letting it sync? Like will a message be displayed or anything on screen letting me know or confirming that the phone has been unlocked...???

  • I am unable to get Lightroom Mobile to work on my home network. The Ipad says "There are no collections to sync, enable lightroom mobile on your computer", but it is enabled.  I got it to work one time on another network but not at home where I use Lightr

    I am unable to get Lightroom Mobile to work on my home network. The Ipad says "There are no collections to sync, enable lightroom mobile on your computer", but it is enabled.  I got it to work one time on another network but not at home where I use Lightroom.

    Hi,
    could you please give us some info on what kind of network you have?
    Can other application communicate with the web?
    Thanks,
    Ignacio

  • Maps app not working on Network Users

    Maps app not working on network users on client machines?, is everyone having same issue?, Thanks in Advance

    Sometimes it does, sometimes it does not. I assume we're talking about network users with home folders on a remote volume…
    The only thing I could do about it was to inform Apple…

  • I have a PC and a need help to configure my external hard disk on my network. Thanks

    I have a PC and a need help to configure my external hard disk on my network. Thanks

    If you mean you wish to plug a USB drive into the Airport Extreme router (or TC not express) that is easy..
    The disk must be formatted FAT32.. as if.. stay away from FAT .. or HFS+ ie Mac OS extended Journaled.
    Format the disk on a Mac is best.. and even use GUID partition scheme not MBR.
    The PC has no issue writing and reading files because this is a network drive.. The PC does not write to the drive.. it writes files to the Airport OS which writes and reads the disk and passes the info using standard windows SMB.. To the windows computer it will be a Windows NT server.. FAT32 setup.
    If your setup is different.. to my hugely guessed assumptions.. give details.. always helps to have.. make and model.
    Make and model of disk.. make and model of router.. how the setup will be done.. what windows OS you run.. etc etc.
    As it stands your question could have nothing to do with apple at all.. other than you posted in a forum so I guess there is something apple in there somewhere.

  • My phone is going to be cut of by orange cos I can't afford the bill but I got my current phone direct from apple shop can I use another SIM card from another network in

    my iPhone is going to be cut of by orange as I can't afford the bill, my current phone is direct from an apple shop as I had to have it replaced , can I put another sim in from another network and use my phone on a pay as you go from O2

    I have taken it back to the Apple store genius bar, but they say they don't see anything wrong. Well unless you use it all day and experience the problems when they happen, you wont see anything wrong. But there are lots wrong with it. But this would be the same store as I purchased the phone. And they backed up my old Iphone 4, but were not able to get anything to load back onto my new phone. So, I lost pretty much everything. But over time, some of my contacts have started showing up, although i am still missing over 800 of them.

  • Video stream to another network

    Hello,
    Am christopher from TANZANIA (EAST AFRICAN COUNTRY).
    Please help me.
    we have our cable tv and we want to stream it to our another office in another region, where we have configured a VPN in this two offices using cisco router RV180. I have tried multicast IP but didn't work.
    Please help me how do i send this video signal to another region with our VPN connection. the video is through/output in UDP.
    Any advice please.

    The problem is routing that multicast IP to another network through VPN, and am using RV180 CISCO ROUTER.

  • HT4259 Airport Express that were part of another network

    I have two Airport Expresses that were part of another network and I am now trying to configure them on a new network to wirelessly extend it, but can not discover them on the AirPort Utility and I factory reset them as well and still they are not being discovered.  They plugged in only about 4-6 feet away from the base station (Airport Extreme). What should I do?

    If you are using Lion 10.7.4 as your profile indicates.....
    Open AirPort Utility and look at the rectangular box in the upper left hand corner of the AirPort Utility window.
    It should read Other AirPort Base Stations (1) if you have reset the Express correctly.
    Click on Other AirPort Base Stations (1), then click on the the AirPort Express xxxxxxx
    AirPort Utility will take a minute to analyze your network, then announce that the Express will be configured to Extend your wireless network
    Edit the name of the AirPort Express device if you wish, then click Next
    Allow a minute or two for AirPort Utility to configure the Express
    When you see the message that Setup is compete, click Done
    Configure the second AirPort Express the same way.

Maybe you are looking for