Retrieving Remote Share Permissions - VB 2010?

Jul 6, 2009

I've search tons of .net pages and all I can seem to find is vbs code for retrieving remote share permissions using WMI.I've tried to convert this code to run on vb.net but don't seem to be getting anywhere.hould I try to convert the below code or are there other methods I can use to retrieve the permissions. I can easily get the list of remote shares using win32_share but not the

View 4 Replies


ADVERTISEMENT

Retrieving Remote Share Permissions - .net 2010?

May 7, 2010

I can seem to find is vbs code for retrieving remote share permissions using WMI.I've tried to convert this code to run on vb.net but don't seem to be getting anywhere.should I try to convert the below code or are there other methods I can use to retrieve the permissions. I can easily get the list of remote shares using win32_share but not the permissions

Code:
strComputer = WScript.Arguments(0)
Set objWMI = GetObject("winmgmts:\" & strComputer & "
ootcimv2")

[code]....

View 1 Replies

VS 2010 WMI Code To List Remote Share Permissions?

Apr 30, 2010

I've been struggling for hours now to get some working code to list the share permissions of a remote share. I've got WMI code which uses win32_share which lists the shares and path and it works great. I"m now trying to add in a routine to get the share permissions as well.

I've searched just about every site for some sample code and can only find some C# (I think) code.

[Code]...

View 1 Replies

Reading Remote Share Permissions Using WMI?

May 1, 2010

I've been struggling for hours now to get some working code to list the share permissions of a remote share. I've got WMI code which uses win32_share which lists the shares and path and it works great. I"m now trying to add in a routine to get the share permissions as well.I've searched just about every site for some sample code and can only find some C# (I think) code.

string machine = "MachineName";
ConnectionOptions co = new ConnectionOptions();
co.Impersonation = ImpersonationLevel.Impersonate;
co.EnablePrivileges = true;

[code]....

View 3 Replies

VS 2008 - How To Edit Share Permissions (not NTFS)

Jul 8, 2009

I need to build an app that can create a network share and give it full read/write permissions to everyone.
I have this code to create/delete network shares: [Code] But it only changes the NTFS permissions, not the share permissions. I'm running Windows 7 RC (64-bit) using Visual Basic 2008 Express. Does anyone have any ideas on how to change the share permissions, not ntfs?

View 1 Replies

VS 2008 Creating A User And Share Permissions?

Mar 25, 2010

I'm creating an application that works with another I have no control over. My application needs to be able to create a user and change share permissions. Currently I am able to make a share, but I can't figure out how to set access permissions for that share.

The idea is that the newly created user (w/ password) will have permissions on the share I create.

View 1 Replies

Create A Folder On A Remote Computer Then Share It Out?

Aug 19, 2009

I need to create a folder on a remote machine (The machine name and UNC path are stored in an Access 2007 database. Once the folder is created, I need to share it out with Everyone:Full Control Permissions?

View 3 Replies

Open A File From A Remote Network Share?

Jan 14, 2010

I 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?

View 1 Replies

Create An Application That Connects To A SQL Database To Populate A Datagrid - Getting An Error 'remote Connection Permissions' ?

Sep 25, 2009

I am using VB 2008 Express and have created an application that connects to a SQL database to populate a datagrid.The application is working properly on my computer but will not on others 'remote connection permissions' error.After some googleing I found that the express version is crippled to only work on local machines that use a database.If I purchase Visual Studio 2008 Standard Edition, import and rebuild my application, will my application be able to run properly on other PC's?

View 7 Replies

Copy File To A File Share On Remote Machine

Aug 14, 2009

I am developing an Application in VB.Net 2.0. I have a module which would copy files from the Local Machine to a shared folder on remote machine. This shared folder on the remote machine is an authenticated folder. So, after searching on the Internet I found the following piece of code.[code]Another point to note is that when I connect to the File Share using Windows Explorer and then try to execute the application, it works properly.I am not sure why I am getting the error when I do not connect to the Shared Folder using Windows Explorer.Do I have to set some property so that the Credentials passed in the authentication are used.I also checked some posts that suggested setting up Mapped Drive to the Shared Folder on the Local machine and then to copy the file using IO.File.Copy function. However, I cannot use this as this Remote Folder should be only accessed through the application and not in any other case by the User. The users will not even have the credentials to this remote Server as it will be configured by the admin.So, Is there any way in which I can set this up and transfer the files from local machine to a remote shared folder?

View 3 Replies

VS 2010 Registry Key Permissions?

Feb 19, 2010

im writing a program that edits Registry values using the

VB
Imports Microsoft.Win32
Imports System
Public Class Main

[Code]...

View 6 Replies

VS 2010 - How To Change Registry Key Permissions

May 5, 2012

I am trying to change the permisions of the following registry key from within VB.net:-
HKEY_LOCAL_MACHINESOFTWAREMicrosoftMSLicensing
Basically need to change users to full control. I need to change permissions for the "users" group.

View 8 Replies

VS 2010 Setting Permissions On CommonAppDataFolder

Feb 15, 2011

My app needs a config file that can be written to by the user. I've got the Setup project to install it to [CommonAppDataFolder][Manufacturer]][Product] but that folder is then read only to normal users (which defeats the point really!).

I've read various articles on the internet on how to solve this, ranging from making the app a Full Trust ClickOnce app to running a separate app post install to change the permissions.

View 3 Replies

VS 2010 Cannot Connect To .mdf File (Lack Of Permissions)?

Dec 14, 2010

Just tried to create a new Data Source in VB 2010, apparently I don't have permission to connect to the 'Login.mdf' file I recently created in SQL 2008. Does anyone here have any knowledge of how to surpass this problem? I'm the Administrator of my PC and have full permissions and UAC is turned off so that shouldn't be the problem either

View 1 Replies

VS 2010 How To Share Files

Dec 22, 2011

A thing which i've discovered with vb2010 is that you can't share files like a form or something that way it comes at least. If you attach a form or usercontrol from a different folder it will automatically copy it into the current project folder and then save to that. How can i stop vb from doing this? It won't always be but in this case i need to share a few forms among multiple projects and it would be a royal pain to have to copy them each time manually.

View 4 Replies

Visual Basic 2010 Requesting File Permissions?

May 10, 2010

How can I request permissions to use My.Computer.FileSystem.SpecialDirectories.MyDocuments for writing?

View 1 Replies

VS 2010 Different Applications Share Same Sessions?

Oct 19, 2010

just wanted to ask if it is possible to have different applications sharing the same session (i.e. database session)... i'm planning on creating a web-based application and a form-based application using asp.net for web and vb.net for forms but i need to have them share sessions since some global variables will be session based and also authentication to one application should also authenticate on the other.

View 2 Replies

VS 2010 Share A Menu Bar Between Two Forms?

Jun 17, 2010

I'm writing a small software similar to the calculator in Windows, the calculator in Windows has a menu bar; in the menu bar, you can find "scientific" and "standard" mode; once you select different mode, your form will be changed, but the two forms still share the same menu bar.

I want to create the same effect of this:

1. Two forms, only one is visible at any time

2. The menu bar on the top of the two forms should be shared between these forms

I just started learning VB for 2 weeks, I'm not sure my thinking can be achieved by VB, if not

View 4 Replies

VS 2010 - Registry Permissions - Error: Request For The Permission Of Type

Feb 14, 2012

my program read and writes into registry and has been working fine, until today when i tested it on a new server i got this error request for the permission of type system.security.permissions. registryPermissions, mscorlib,version=2.0.0.0. i checked the registry permission and made sure all allows are ticked.

View 3 Replies

VS 2010 Public Dataset Or Table To Store Permissions Locally?

Dec 7, 2011

In my vb.net winforms application using Visual Studio 2010, I'm trying to work something out and my brain just isn't working today. I'm rewriting this application to make it more efficient and trying to minimize the sql calls.

Currently it works like this.User logs in to the app, it loads the main form, where the user can open up different forms to access different client data. Each time a record is loaded in one of these new forms it also loads that specific users permissions from a Sql Server 2005 table.

What I want to do is when my main form loads after the user logs in, is load a public dataset or datatable, or any other suggestion, storing that users permissions so I can access them locally without hitting the sql server every time the user opens a client record.

View 4 Replies

VS 2010 - Saving Projects To Network Share

Jul 13, 2011

I'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 Replies

VS 2010 : Share And Edit Variables Between Forms?

Jul 7, 2011

how to share and edit variables between forms? I want the user to be able to enter a value into a textbox and the program store it and then load another form and do calculations and display answers but I can't get it to work.

View 2 Replies

VS 2010 List Folders Under A Specific Share?

Feb 29, 2012

I am trying to list folders under a specific share example: \servernameshare I want the list to display in a listbox named folderlistBx I do not want to see file names or subfolders, just a list of folders

Private Sub ListBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBtn.Click
Dim FS As New FileSystemObject

[Code].....

View 1 Replies

VS 2010 Share A Hashtable In Multiple Threads?

Dec 19, 2011

I have a program that are multiple thread. Each thread calculate some data independently. however, they will need share a hashtable which controls a hardware resource. because the resource is limited, so, it may need lock the resource for a thread, and then release it when thread is finished. and the resource can not be reused immediately, will have to wait for some time, say 5 or 10 minutes, for the device to reset.

View 3 Replies

VS 2010 SQL Server Compact On A Network Share?

Oct 26, 2011

Greetings, 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?

View 3 Replies

VS 2010 Make A Program That Can Share A Database To Other People Using A Upload/update System?

Sep 5, 2010

i try to make a program that can share a database to other people using a upload/update system but when i try to download/upload it keeps saying mdf file in use how can i make the code so that it Uploads and overwites the file without that error.as it must be so it must upload to my server (build in)and download (also build in)the error gives file in use constandly how can i fix this issue?of that file in use problem. even when these no querry or other code running?

View 9 Replies

Retrieving Information From Access DB In VB 2010?

Oct 24, 2010

I've been trying to get information from a Access DB that I have added into VB 2010, the code is as follows:

Imports System.Data.OleDb
Private Sub login_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmd_login.Click

[code].....

View 4 Replies

VS 2010 - Retrieving Item From Array

Jan 7, 2011

I have a function that is suppost to take a list of strings then split up each part. This is my code
For i As Integer = 1 To UPdata.Count
If InStr(UPdata(i), "!!") Then
Dim DataTBP() As String
Do
DataTBP = UPdata(i).Split("!!")
[Code] .....

One section of UPdata would look something like
ABC#DEF@GHIHSJD!!143#ISJ@PSIODH!!
What I want it to do is firstly separate the lines using !! so i would be left with
ABC#DEF@GHIHSJD
143#ISJ@PSIODH
That part works fine and I am left with an array DataTBP() with 2 values. The strings found above. Its then suppose to extract the part before # for every string left in DataTBP (In my example two) but the function that's meant to do this:

For j As Integer = 0 To UBound(DataTBP)
Dim DataType As String = DataTBP(j)
DataType = DataType.Split("#")
Select Case DataTBP(j)
[Code] .....

Throws me the error
Value of type '1-dimensional array of String' cannot be converted to 'String'.
But I don't know why as DataTBP(j) is a string not an array but a string. I've also tried
For Each a As String In DataTBP
Dim DataType As String = a.Split("#")
Next
It throws the same error

View 1 Replies

.net 2010 And Access Database Not Retrieving Data?

May 19, 2010

I am trying to build a front end for an access database I created I can connect to the database but when I try to pull data into a data grid view I get no results Here is the code what did I do wrong(I'm also new to vb)

search
Private Sub searchbtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles searchbtn.Click
Dim srval As String
Dim type As String

[code]....

View 8 Replies

VS 2010 - Retrieving Metadata Of Individual Files

Oct 6, 2011

I'm using VS2010 Express. I have a VB.net project, where I need to find the metadata of individual files; Artist, Author, Comments, etc. (Specifically I need to find the video length in time of .wtv files). I have searched, but could only find VB6 examples and other code snippets that simply didn't work as they required some retired com or dll to do it. How do I do it in the latest VB.net? NOT VB6, C# or anything else. VB.Net in Visual Studio 2010 Express.

View 20 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved