Jump to content

Windows PE and accessing an Access-DB


Recommended Posts

Posted

Hello.

I am using Win PE 2.0

I am trying to connect to an MDB-file through an HTA-script.

But I only get this error.

safety settings on this computer prohibit accessing a data source on another domain

How can I change the settings for this in WinPE?

Or can I access to the DB in another way.

I am now trying this method.

Set Con = CreateObject("ADODB.Connection")
Con.open("driver={Microsoft Access Driver (*.mdb)};dbq=Z:\Share\Scripts\computers.mdb")

I have also tried with Jet4, but that doesn't work at all.


Posted

When I try the same thing with an VBS-file everything work as it should.

Well, that does not help me cause the system depends on HTA. :-(

How have you guys did to access some sort of database through HTA?

Posted (edited)

I've never tried accessing a database, but I believe your issue results from IE zone settings. In your software registry hive goto the key: SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones. For each zone (0-4), ensure that the value for the 1406 entry is 0. I'm fairly certain that zone 3 is the only one that matters, but I'm not sure so just try all of them.

Heres a M$ page about zones and their settings: http://technet2.microsoft.com/windowsserve...3.mspx?mfr=true

Edited by zorphnog
Posted

Thanks for your reply.

I change the settings for 1406 on all zones but I still get the error-message.

I think that I just might call an VBS-file to do the database-tasks for me and then pass the info to the HTA in some way.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...