I have 3 shares on my server: 2 shared folders on drive D: and the entire V: drive. On another network PC I can open a File Explorer window and enter the the host name in the address bar, i.e. "\Server", and I can see all three shares. I would like to "Add a network location" that points to "\Server". However, I can not "Add a network location" (or map a network drive) without both the host and share names. I can create a short cut to the host, say on the Desktop (or any other location for that matter), that works as desired, but I can't create a shortcut in "This PC".
I would really rather have a single icon in "This PC" that connects to the host with the shares than create three network locations, one for each share. Is this possible?
I am guessing you never came up with a solution for this, as there is no answer.
I am pretty sure there isn't a way to do this. You can only map to a Samba share, as far as I know. I also just have a shortcut pinned to the hostname in "Quick Access"
If there is, I'd love to know!
Related
I need two things:
Disabled Internet access on my VM.
Enabled local network access from my VM.
I'm currently trying to replicate a bug on my CentOS7 VM which requires that I have no direct internet access, only able to connect to the web through a proxy on my local network. I've taken two paths to this so far:
Disable the Internet on my Windows machine. Why this didn't work: My VM just...froze until the internet was turned back on. Currently considering looking into the possibility of a daemon and disabling it.
Disable Internet access only on my VM. This hasn't worked yet. It's the path I'm taking right now, but everything I've tried has done the same as the above: frozen my VM, only this time in order to get it back I need to shut it down completely and restart it. Given that I have to mount drives on it to do what I need to do, it's understandable that this is a less than ideal approach. Below are images of my NAT settings and the in-VM Network UI.
I've also gone in and turned on Airplane Mode, disabled the IPv4 and IPv6 manually, and went through all the network settings to see what there was. A Google search turned up nothing except an OSX-specific workaround which I couldn't replicate on my system.
Does anybody have any suggestions?
EDIT:
The above still applies, but I'm trying to take another route to #2. What I'd like to do is shut down all traffic to my VM except from the proxy and network. However, my network is accessible only through my host machine, so I don't want to shut my host machine out entirely, just internet coming from it. Any thoughts?
You could achieve the desired effect by disabling the nameserver configuration.
Just empty the /etc/resolv.conf file (of course after making a backup for later).
In my database, I'm looking for a primary key to save settings for a Wi-Fi network. Most people point to SSID+BSSID, but the problem with that is networks with multiple access points. After further investigation, the best solution I've found so far is having multiple database entries with SSID+BSSID linked together if they represent the same network.
Now the question becomes, is it possible to retrieve a list of all access points while you are connected to one of them ? Either that or a simpler list of all BSSID associated with the network you are connected to.
Either Swift or Objective-C is perfectly fine.
I couldn't find a way to retrieve all access points of a network in iOS.
For anyone curious, I went with storing SSID+BSSID as primary key and public IP as another field.
If the entry doesn't exist, I add it and check for other entries with the same IP and link them together.
If the entry does exist, I check if the IP hasn't changed since last time, since public IP can be dynamic. If it has, I update all entries with the old IP to the new IP.
It's still not a perfect solution. It doesn't cover the case where you go to a new access point of a network and the public IP for that network has changed, although it does fix itself to some extent if you go back to the first access point. Also, in general, places that have multiple access points also tend to have static IPs, so this case may be very situational.
I have a local network at my home and have a system addressed at 192.168.2.2 in the local network. I want to access this local system from outside(of course I am aware of the Global IP) using both ssh and using URL. How can I do it? (Apache is installed in my system.)
There are few posiblities.
First if you are targeting specific computer outside your home network and this computer has known IP you can initiate connection from your home PC to this computer using some program like Putty.
If you want to access your computer from anywhere at any time, than some kind of service should be used, google for "dynamic DNS free". Depending on your Internet connection you will make changes on your PC on your Router.
To acces SSH from outside you need to portforward that port.
See http://en.wikipedia.org/wiki/Port_forwarding for more information
hope you all are O.k!
I have this problem with the sp_BackupDateBase procedure.
According with the Advantage documentation, I can make a Backup of my Data base,
passing a UNC destination path as a parameter.
Supposing that my local machine has the IP Address 201.0.0.87, my procedure looks like this
EXECUTE PROCEDURE sp_BackupDatabase(‘\201.0.0.87\Shared\Backup’,NULL);
When I execute it, everything is just fine, and the Backup is made succesfully.
The question is: Can I make a backup, passing the IP Addres of another machine? Is this possible?
If the answer was yes, then here's my real problem.
If I pass the IP of another machine, which has granted to every user all the write-read rights, when I execute
the procedure, I get the following error message:
poQuery: Error 7200: AQE Error: State = HY000; NativeError = 7040; [Anywhere Solutions][Advantage SQL][ASA] File creation error:
Verify the specified path and file name is correct and that no other users have the file open
What should I do to make the procedure works under this conditions?
It's important to mention that both machines are in the same Work Group.
Really hope that you can help me, and if there's a doubt, feel free to ask me anything that can make this even clearer.
Thanks in advanced.
The question is: Can I make a backup,
passing the IP Addres of another
machine? Is this possible?
If I understand your question, the answer is no. sp_BackupDatabase will not back up files to a remote machine in the sense that it will connect to that machine and "send" the backup image to it (e.g., via TCP/IP). Rather, it copies table contents to a the given path using the target location as a file path.
However, if the Advantage Database Server service has access to the path as a network share, then it will make the backup on the remote machine. The online backup overview discusses this idea.
You will likely need to make sure the Advantage service can access network shares. This KB item discusses it.
I want to map a clearcase view on network drive inside a windows service.
I have tried with net use command, but it did not work properly.
You should be able to run the same kind of command than the one used when paths are too long, which is subst:
subst X: c:\path\to\my\View # for snapshot view
subst X: M:\myView # for dynamic view
in order to map a view to a drive letter.
This should work from within a service, provided:
you are using your Windows account (and not the "Local System account")
the dynamic view is already started (and visible in the M:\ MVFS mounting point drive)
I wish this approach would work, but it really doesn't from a service; I've beat on this problem pretty intensely to no avail. The problem is two-fold:
From a Windows service, to be able to map drives visible to other users it has to "Log on" as the "Local system" account (default) with the "Interact with desktop" property set.
To be able to talk to ClearCase, the Windows service process has to "Log on" as a normal user with ClearCase access (e.g. in the atria group typically).
So (1) and (2) are mutually exclusive, but you need to do both and can't. For (2), presumably the reason you can't "Interact with desktop" and map drives there is because you'd need a logon session / token which has to be present for mapped drives to work --associated per-user session--but services need to be able to run headless (no one logged in) where there is no "session" / token that exists.
Note that the way Rational BuildForge solves this for ClearCase is by spawning an entirely new child-process solely to allow its' service to talk to ClearCase:
https://www-304.ibm.com/support/docview.wss?uid=swg1PK50021
Also note that the "logon session" is identified by a unique token; this means that even if you have a process running as your desired user (domain\fred) that can access ClearCase, spawning a new process from there as the same user (domain\fred) may not have the same session token by default, depending on how it was created (i.e. CreateProcess() vs CreateProcessAsUser() vs CreateProcessWithLogonW()), making it ever more difficult to deal with tools you don't control. To demonstrate this, try running 'runas /user: "cmd /k \"net use\""' from a command prompt and you'll see all your network drives listed as "Unavailable"(!!).
It is possible (though explicitly not recommended by Microsoft), with great effort, to get this all to work if you can somehow manage to have a user always logged in from which to get their session token, as described here:
starting a UAC elevated process from a non-interactive service (win32/.net/powershell)
Otherwise, you'd have to emulate it like BuildForge does.
Also see:
Network drive is unavailable if mapped by service
Map a network drive to be used by a service
For this sort of problem I've typically run into it with CI servers (CC.NET / Hudson / TeamCity) that run as a Windows service. What I've had to do is ensure that somewhere before my real "job" was started, I scripted a way to map network drives by re-mapping them at runtime or mapping M:\ to an available drive letter with subst (very tedious) as VonC describes, which isn't persistent (even if you use 'net use /persistent:yes') which is what I'm guessing you were hoping for too.