Set Security On A Network Share?
Aug 6, 2009I have used the same code as Good4You here[url]...
My task now is to set "<Computer>administrators" to have "full scces" and "Everyone" to have "Change" on the newly created network share.
I have used the same code as Good4You here[url]...
My task now is to set "<Computer>administrators" to have "full scces" and "Everyone" to have "Change" on the newly created network share.
Im trying to get a list of owners of all the shares on a server. So far I have come up with the following:
colSWbemObjectSet = objSWbemServices.InstancesOf("Win32_SecuritySettingOfLogicalShare")
For Each objSWbemObject In colSWbemObjectSet
Dim securitydesc As Object = objSWbemObject.Setting
MsgBox(securitydesc.Owner.Name, MsgBoxStyle.Critical, objSWbemObject.Element)
Next
[Code]...
Visual Studio 2008 / Windows 7 / .net framework 3.5 / Windows forms application
My applicaiton has the following App.Config:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
[Code]....
How can I connect to a network share without using System.Diagnostics.Process.Start?
I need to connect to a network share and get feedback if it already exists.
Can I use some kind of API?
I'm writing a console app to take care of our automated user creation process which was previously done by a batch file. I need to check if a users network share exist on any of 38 servers but seem to be having trouble finding info on how to do it. From what i can tell i need to use the netapi32.dll and the NetShareCheck function, but i'm not sure how to do it.
this is what i have so far, but it isn't working as it should. it seems to be returning 2311 in almost all cases exept if i use uppercase on the server and device and the device starts with C.
Imports System.Runtime.InteropServices
Public Class NetApiWin32
Declare Unicode Function NetShareCheck Lib "netapi32.dll"
[Code].....
my old vb6 "WNetAddConnection2 Lib "mpr.dll" no longer work in vb.net 2010. at run time i get "PinvokeStackImbalance was detected".How can connect to network share ?
View 2 RepliesI have written small a software. I want to install it on a server and and make it accessible for all the other users on network.
How can I retrieve the server name (the computer program installed) with .NET?
Also, sharing the "Program Files" folder doesn't look like a smart idea for making the program accessible from the other computers.
I have a server that the server OS is windows server 2003.
I want to share internet of server.
I want to make 2 program (server and client) that client program run on a personal computer and can connect to my program that running on server and get internet from server program.Like as VPN or CCProxy.
i want my software to share one database on a network
View 2 RepliesI have a .NET application (VB.NET) that runs against a MS Access database. Every data request connects to the access database, runs and returns the query and closes the connection back again. I placed the database on a windows xp 32-bit machine. I have two clients on which I installed the .NET application. Both clients are running windows 7 professional 32-bit. Now I have a performance problem with this.
When I use the first client it runs fine. All data is shown very fast. When I than use the second client, it takes some 10 seconds to connect to the database, fetch the data and close the database connection. When i ask for other data on that second client, it all runs fine, until I request data from the first client than back again. Than it takes again 10 seconds on the first client before my data is fetched.
I am looking for a way to possibly intercept the point that a file is being accessed on a network share. Specifically before it is determined whether the user has access to the file or not.The goal will be to grant access to that file if the file request is coming from a specific process and that user currently does not have access.
View 1 RepliesAny simple way of automatically updating a newer version of my application from a network share. Everything I have read pertains to an update from a web site. This is possibly a simple thing to do but as I have 6-8 users using the application I have to email them all stating there is a new version on the share and for them to copy and overwrite the existing application executable in the program filesapp directory. If this could be done on launching the program within the splash screen that would be fantastic.
View 3 RepliesI am developing an application, which hunts the local network for attached computers then checks for a share and a file, if found it displays it in a listbox. While testing this I have seen some strange Chinese or Japanese computer names pop up and in a few seconds go away, the names seem to always be different.
View 8 RepliesI am trying to open a file from a server
I currently have
Dim attachedFilePath As String = "\myservermyshare est.txt"
File.Open(attachedFilePath, FileMode.Open, FileAccess.Read, FileShare.Read)
This does not open a file.
However, if I change the path to be local then there is no issue.
Dim attachedFilePath As String = "c:... est.txt"
So, is there a way to open a file from remote storage?
is there a way to programmatically return who is using a particular file within a network share??
View 4 RepliesI have a program where I need to be able to access files from an administrative share on a remote machine where the username is administrator and there is no password. I want to be able to access these files without the user getting prompted to input the username and password.
I have searched around and found some references to WMI - but as far as I can tell, WMI is mainly for managing the remote machine and not necessarily for file access (?). Also, some information gathered about WMI leads me to believe that it may be disabled on some machines or not installed on others (?). Since this program is meant to go out to a diverse customer base, I need to make sure that I cover as many angles as possible to ensure this program will run on as many machines as possible.
I'm working on a network chat for my office I want to add a way for users to share files or be able to send and receive file.
View 7 RepliesI've had this problem with both VS 2010 and Visual Web Developer 2010. I want to save my projects on a network share (which I have as a mapped drive), because our network drives are backed up daily. For some reason though, VS only shows local drives when I try to save a project - all my network drives do not show up.
View 1 RepliesGreetings, I'm a little bit confused about SQL Server Compact behavior.I have a small app that uses a small sdf file located on a network share.The problem is that while the app itself is working perfectly well using the connection string that points the location of the sdf file on a network drive, when I try to open the same sdf using the Server Explorer I get this error:
SQL Server Compact does not support opening database files on a network share.Obviously, if the app IS working it does indeed support network shares, then why Server Explorer cannot open it?
I copied the database file to a local drive but it's not very convenient. What might be the problem?
I spent quite awhile trying to figure this out and not one single combination of path strings let this happen.
I usually error'd with the path is not found, part of the path could not be found, or wrong user name and password.
All I am using is the <asp:fileupload>.
i need advise regarding user security on the network i am unable explain my need , because it won't visualize much hence i attached the graphical representation here kindly find it
View 2 RepliesI need to delete a hung laccdb file on a network share with vb.net or some other tool.
View 1 RepliesOur engineers use an application developed internally to perform risk assessments at a customers site. Sometimes on larger jobs a group of engineers will all carry out risk assessments together and will all need access to a single database file to all work on at the same time.
[Code]...
My ultimate goal is to allow users to select a file from a dialog as if they are uploading a file. Instead of file being saved to the server, a hyperlink will be generated from the file's path.This hyperlink will then be used on our intranet page in order to open the file located on our network share.Is there any practical way to accomplish this?I have tried both an HTML file type insert and .Net's FileUpload Control but neither will work since for security reasons the full path of the file is never accessible.
View 2 Repliesassist me to create a form in which i need to show the documets like "*.doc,*.xls,*.txt,*.pdf" which is in network share folder
View 1 RepliesI have a treeview control which is being used to browse various folder on the users system drive. It can also be set up to connect network folders using UNC paths e.g "serverfiles". At the moment I'm getting a list of Directories by using My.Computer.FileSystem.GetDirectories however this obviously fails when the folder is password protected.
Is there a way that I can get Windows to open the credentials dialog as you would see in Windows Explorer and deal with the credentials side so then the user name & password is cached as well?
I've been looking at accessing shared folders, read and write, via the network without being prompted by the OS for the username and password.
On this forum, and googling, I can find many things about accessing network shares, but none using code which also passes the username and password required.
What I'm basically looking for is to not have to map a drive on the users computer. Then using code, write or read files from a network share and at the same time pass the username / password required for that network share.
I have a program written in VB.net 2003 that are folks run under alternate credentials. Inside the app there is an option to open a UNC path to a network share. We were running Windows XP SP3 and IE6. The code is simple just a call to the explorer.exe with /root,\UNCPath. After installing IE 8 onto the machine this no longer works. Best I can tell the code is still working but now being executed in non interactive mode so nothing opens up. You can however see a new spawned explorer.exe running under the system account for each attempt at opening a UNC Path. Any ideas what IE8 could have done to cause this behavior?
View 4 RepliesI have an application I have developed which works great on individual PC's. However I've had some interest from a few customers that asked if I have a network version for site licencing.If my app did not save any data or write any reg entries, this might have been ok. But it does to the local computer. I also built in my own copy protection and trial function that stores data in the registry on the local computer.What would I need to do to enable my application to run on a server/network share, so that the only a serial number needed is for the server?
View 3 RepliesHere is my idea so far: I have a bunch of computers connected in a local network. One of them is a MySQL server, one will have a vb.NET program wich will act as a "second server" and the rest will be different clients. What I want to do is that the "second server" will send out some kind of message or network package to some of the clients in the network, and they will execute a code based on what message it is, or what kind of package it is. I'll give you a simple example:
[Code]...