Results 1 to 5 of 5
  1. #1
    SIMMS7400 is offline Novice
    Windows 8 Access 2007
    Join Date
    Mar 2016
    Posts
    25

    Service Account Authentication

    Good Morning Folks!

    I'm having an issue with my MS ACESS model as it's asking me for my Service Account credentials eveyrtime I kick off my batch script.

    A little color:

    I have an MS ACCESS Model that publishes a SharePoint list. If I execute the procedure from my local machine, I am not prompted for any creentials. However, we moved the model to a server (so I wouldn't be the bottle neck). When we kick off the batch script to inistate the SharePoint refresh, we are then prompted for our Service Account credentials.

    For instance:

    REM --------------------------------
    REM SET MS ACCESS VARIABLES
    REM --------------------------------

    SET MSACCESSEXE="C:\Program Files (x86)\Microsoft Office\Office14\MSACCESS.EXE"
    SET MSACCESSMODEL1="C:\DRM_PROJECT\MODELS\HBU_PJ_Codes 1.accdb" /x AutoExec



    :ExecuteMSAccess
    echo ************************************************** ******>>%logfile%
    echo Call MS ACCESS to execute AutoExec Macro at %TIME% >>%logfile%
    echo ************************************************** ******>>%logfile%

    CALL %MSACCESSEXE% %MSACCESSMODEL1%


    Even with "Remember my credentials" checked off, it still prompts every time. The SharePoint list/site has been updated to reflect "ServiceHyperion" as a user, but it has not fixed the issue.



    Can anyone recommend any solutions? At this point, this cannot be schedule nightly due to the issue. Why will it execute fine locally but not with our ServiceAccount on the server?

    Thank you!
    Last edited by pbaldy; 03-31-2016 at 08:01 AM. Reason: Deleted bad image link

  2. #2
    Perceptus's Avatar
    Perceptus is offline Expert
    Windows 7 64bit Access 2007
    Join Date
    Nov 2012
    Location
    Knoxville, Tennessee
    Posts
    659
    So that batch file on your local machine has no issues. but it bombs on credentials when you try to schedule it?

  3. #3
    SIMMS7400 is offline Novice
    Windows 8 Access 2007
    Join Date
    Mar 2016
    Posts
    25
    Batch file on my local machine runs fine - no credentials need to be provided. (scheduled or ad-hoc)

    However, when I execute the script on the server, (ad-hoc or scheduled) it prompts me to enter the password of my Service Account. Once I do so, it then finishes successfully.

    Attaching a picture of the prompt:


  4. #4
    SIMMS7400 is offline Novice
    Windows 8 Access 2007
    Join Date
    Mar 2016
    Posts
    25
    Batch file on my local machine runs fine - no credentials need to be provided. (scheduled or ad-hoc)

    However, when I execute the script on the server, (ad-hoc or scheduled) it prompts me to enter the password of my Service Account. Once I do so, it then finishes successfully.

    Attaching a picture of the prompt:

    [IMG][/IMG]

  5. #5
    Perceptus's Avatar
    Perceptus is offline Expert
    Windows 7 64bit Access 2007
    Join Date
    Nov 2012
    Location
    Knoxville, Tennessee
    Posts
    659
    Sounds like your credentials are cached locally but not so much on the server. I will ask my IT mentor.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. DSN-Less authentication and security
    By osupratt in forum Programming
    Replies: 13
    Last Post: 07-15-2015, 03:06 PM
  2. Access User Authentication
    By hi.its.anu in forum Access
    Replies: 1
    Last Post: 08-23-2012, 04:56 PM
  3. avoid sql server authentication
    By JJCHCK in forum Programming
    Replies: 0
    Last Post: 02-23-2012, 10:36 AM
  4. Password Authentication
    By jmjbear in forum Programming
    Replies: 8
    Last Post: 11-27-2011, 02:12 PM
  5. Task Scheduler using Service Account
    By ExpertNovice in forum Access
    Replies: 2
    Last Post: 06-11-2010, 02:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums