PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

Access 2007 Command Line /compact encrypted .accdb

 
 
Whit
Guest
Posts: n/a
 
      19th Feb 2010
I am using a split database with an encrypted back end. Both front and
back ends are Access 2007 .accdb files. Everything seems to work fine
from within Access, and I can compact and repair the back end after
opening it in Access and supplying the password.

I am now trying to set up a command line to compact and repair to
happen nightly after data updates, and am running into difficulty with
the password. I am using the following syntax on the command line:

"c:\path\msaccess.exe" "c:\path\db.accdb" /compact /pwd xyz

If I omit the final "/pwd xyz", access requires me to manually enter
the encryption key and the compact & repair seems to work fine.
However this will not work for un-attended operation.

If I include the final "/pwd xyz", access displays a logon dialog with
my user name in it, and asks for a password. If I type in the
encryption password (xyz in this example), it does not work.

What am I doing wrong? Is there a different command line switch for
encryption passwords?

Thanks!
 
Reply With Quote
 
 
 
 
Tom van Stiphout
Guest
Posts: n/a
 
      23rd Feb 2010
On Fri, 19 Feb 2010 05:47:19 -0800 (PST), Whit <(E-Mail Removed)>
wrote:

From the A2007 help file:
/pwd password Starts Access by using the specified password. Applies
to Access 2002-2003 and earlier databases only.

Unfortunately that page does not show what the correct switch would
be.

-Tom.
Microsoft Access MVP


>I am using a split database with an encrypted back end. Both front and
>back ends are Access 2007 .accdb files. Everything seems to work fine
>from within Access, and I can compact and repair the back end after
>opening it in Access and supplying the password.
>
>I am now trying to set up a command line to compact and repair to
>happen nightly after data updates, and am running into difficulty with
>the password. I am using the following syntax on the command line:
>
>"c:\path\msaccess.exe" "c:\path\db.accdb" /compact /pwd xyz
>
>If I omit the final "/pwd xyz", access requires me to manually enter
>the encryption key and the compact & repair seems to work fine.
>However this will not work for un-attended operation.
>
>If I include the final "/pwd xyz", access displays a logon dialog with
>my user name in it, and asks for a password. If I type in the
>encryption password (xyz in this example), it does not work.
>
>What am I doing wrong? Is there a different command line switch for
>encryption passwords?
>
>Thanks!

 
Reply With Quote
 
 
 
 
Tom van Stiphout
Guest
Posts: n/a
 
      23rd Feb 2010
On Tue, 23 Feb 2010 07:06:07 -0700, Tom van Stiphout
<(E-Mail Removed)> wrote:

I just dug a bit deeper and the news is not good:
http://support.microsoft.com/kb/161177

-Tom.
Microsoft Access MVP


>On Fri, 19 Feb 2010 05:47:19 -0800 (PST), Whit <(E-Mail Removed)>
>wrote:
>
>From the A2007 help file:
>/pwd password Starts Access by using the specified password. Applies
>to Access 2002-2003 and earlier databases only.
>
>Unfortunately that page does not show what the correct switch would
>be.
>
>-Tom.
>Microsoft Access MVP
>
>
>>I am using a split database with an encrypted back end. Both front and
>>back ends are Access 2007 .accdb files. Everything seems to work fine
>>from within Access, and I can compact and repair the back end after
>>opening it in Access and supplying the password.
>>
>>I am now trying to set up a command line to compact and repair to
>>happen nightly after data updates, and am running into difficulty with
>>the password. I am using the following syntax on the command line:
>>
>>"c:\path\msaccess.exe" "c:\path\db.accdb" /compact /pwd xyz
>>
>>If I omit the final "/pwd xyz", access requires me to manually enter
>>the encryption key and the compact & repair seems to work fine.
>>However this will not work for un-attended operation.
>>
>>If I include the final "/pwd xyz", access displays a logon dialog with
>>my user name in it, and asks for a password. If I type in the
>>encryption password (xyz in this example), it does not work.
>>
>>What am I doing wrong? Is there a different command line switch for
>>encryption passwords?
>>
>>Thanks!

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Backing up Bitlocker Encrypted Drive Equals Not Encrypted markbyrn Windows Vista Security 4 19th Mar 2007 03:33 AM
Non-encrypted message detected as encrypted =?Utf-8?B?Y3N0ZWFkaGFt?= Microsoft Outlook Discussion 0 28th Jul 2006 04:56 PM
after a ftp put command it just says "200 PORT command successful." and hangs forever. What could be wrong? when i test the ftp server using IE in "passive" mode it works fine. but ftp at command line hangs on "200 PORT comma Daniel Microsoft Windows 2000 1 29th Apr 2006 02:05 AM
Setting admin pasword via command line using an encrypted password. Paul Griffith Windows XP Setup 0 9th Aug 2004 03:28 PM
Re: Reinstaled, Lost profiles, encrypted files left encrypted Jupiter Jones [MVP] Windows XP Security 0 3rd Jul 2003 04:07 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:57 PM.