Solved

PSEXEC SERVER 2008 PROGRAM FILES (X86) ACCESS 2007 ISSUE

Posted on 2010-11-16
7
847 Views
Last Modified: 2012-05-10
I have been having a problem executing a batch file remotely through psexec and through cold fusion cfexecute.  I think the root of the problem is the fact that I am trying to start Access 2007 on the server and run a make table macro, and Access 2007 resides in the c:\Program Files (x86) directory.  I do not think Server 2008 wants to let me do that.  The other parts of the batch file run great.

I am using Server 2008 x64, and Access 2007.

To troubleshoot this, I have diabled UAC, and changed some other permissions to no avail.  Any suggestions would be appreciated.  I can go back later and make it secure, I just want to get it to work and understand why it wasn't
0
Comment
Question by:PeelSeel2
7 Comments
 
LVL 84
ID: 34148461
What's the syntax of the Batch statement - at least the part that fires off the Access database.

Are you getting an error? If so, error number and error text would help.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 34148570
FWIW, I notice that  a fair amount of your Question Titles are in ALL CAPS.

All caps is interpreted as YELLING!

Just FYI

JeffCoachman
0
 

Author Comment

by:PeelSeel2
ID: 34149884
"C:\Program Files (x86)\Microsoft Office\Office12\MSACCESS.exe" "D:\Data\SEDCAccess\NNPPDintegrator.mdb" /x Missed_Meters_Daily

REM Mapguide Missed Meters Daily to spatial SQLite

del /f /q "D:\Data\SEDCAccess\mmd.db"

"C:\Program Files (x86)\FWTools2.4.7\bin\ogr2ogr" -f "SQLITE" -dsco  FORMAT=WKB "D:\Data\SEDCAccess\mmd.db" "D:\Data\SEDCAccess\mmd.vrt"

REM SQLITE VIEW TO SHP
del /f /q "D:\Data\ShapeFiles\missedmd.dbf"
del /f /q "D:\Data\ShapeFiles\missedmd.idx"
del /f /q "D:\Data\ShapeFiles\missedmd.shp"
del /f /q "D:\Data\ShapeFiles\missedmd.shx"

"C:\Program Files (x86)\FWTools2.4.7\bin\ogr2ogr" -f "ESRI Shapefile" "D:\Data\ShapeFiles" "D:\Data\SEDCAccess\mmd.db"

This batch file runs fine when logged in through remote desktop, it does what it is supposed to.  If I try it remotely from the other programs, it only runs if I REM out the first line having to do with access.  All the rest run fine.  If the first line is not REM'ed, it spawns a cmd process and an access process but get no further and hangs.

I will have to remember that about question titles.  Too long posting titles on ebay :)
0
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
LVL 66

Expert Comment

by:johnb6767
ID: 34152558
Try changing the following....

"C:\Program Files (x86)\Microsoft Office\Office12\MSACCESS.exe" "D:\Data\SEDCAccess\NNPPDintegrator.mdb" /x Missed_Meters_Daily

to

start "C:\Program Files (x86)\Microsoft Office\Office12\MSACCESS.exe" "D:\Data\SEDCAccess\NNPPDintegrator.mdb" /x Missed_Meters_Daily
ping -n 30 localhost>nul

The ping is onbly there for a 30 second pause to allow access to do what it needs to do.... If you dont need it, or need to make it longer, go for it....

Using the Start command though, without the /WAIT switch, means it moves on to the next line....
0
 

Accepted Solution

by:
PeelSeel2 earned 0 total points
ID: 34168689
We have come close to finding the issue.  The Missed_Meters_Daily was a macro that ran a make table query into another microsoft access 2007 database (Mapguide.mdb).  When we changed that query to have it a make table query into the NNPPDIntegrator.mdb, it ran fine from psexec and from cfexecute.  So calling one access db to make a table into another one provides some weird issue running it remotely through those two programs.

Thanks for your efforts!!
0
 
LVL 66

Expert Comment

by:johnb6767
ID: 34170539

Good fix......
0
 

Author Closing Comment

by:PeelSeel2
ID: 34195092
Got it working mostly.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A safe way to clean winsxs folder from your windows server 2008 R2 editions
This article explains how to install and use the NTBackup utility that comes with Windows Server.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

776 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