VB App Permissions

Posted on 2012-09-20
Last Modified: 2012-09-20
Hi Experts,

I have a basic question.  If an app is created with, producing an .exe file,  how do I include permssions?

If I create an app that copies a file from one server to another or updates an access database, how do I assign permissions to enable it to do this on different servers?  
Do you set up an account with rights?  How do put that in the program?  The exe will be started from a job on the server - no human interation.  

With the web you use IUSRS.  

Can you point out some good links on this?
Oh and using, VS 2010 and framework 4.0

Question by:jshesek
    LVL 25

    Accepted Solution

    The most simple point of view for this is that, if the exe is going to start from a job (in the Task Scheduler, for example), in that job you can specify which user is going to do the task. So, if you assign a user account with enough permissions to do all your stuff, you don't need to worry about it.

    Other more complicated points of view include use of different technologies. For example, inside your code you can do Impersonation to temporaly adopt any identity inside the system, do your stuff and return to the original identity.

    Hope that helps.
    LVL 1

    Author Comment

    Sounds like with task schedular & impersonation there has to be an account set up.

    Last time I checked, they were getting a little weird on that.

    Is there a standard account setup that would handle this?  Comparable to IUSRS in IIS?
    LVL 83

    Assisted Solution

    On windows, application are run with the same identity as the user launching the app. With task schedular, however, you have to specify the account to use for starting the app. There are builtin accounts like Network Service, Local Service, System etc but I think these are not suitable for running your own apps.
    LVL 1

    Author Comment

    Thanks Guys - talked to the Network guys and they agree.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
    Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now