D
David C. Holley
Is it possible to create a trusted location via code? Which I'm thinking no,
but...
but...
Daniel Pineault said:In general sense, No! That would kinda defeat the purpose of security.
That said, with enough diging... there are ways to do almost anything. I
believe that it can be done if you are willing to mess around with
registry
settings (be very carefull as you can seriously damage a computer if you
mess
this up). Take a look at:
http://www.access-programmers.co.uk/forums/archive/index.php/t-136411.html
http://bytes.com/topic/access/answers/692003-access-2007-runtime-security-issue#post2752405
Basicly you need to add a new reg key per trusted location you wish to
create
[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\A ccess\Security\Trusted
Locations\Location1]
AllowSubFolders (REG_DWORD) = 1
Path (REG_SZ) "FullPathOfTrustedLocation"
--
Hope this helps,
Daniel Pineault
http://www.cardaconsultants.com/
For Access Tips and Examples: http://www.devhut.net
Please rate this post using the vote buttons if it was helpful.
David C. Holley said:Is it possible to create a trusted location via code? Which I'm thinking
no,
but...
.
microsoft said:We're already creating a system DSN via a VBScript. Its more for our
convenince when we setup a PC to use the front end. It did occur to me
that it would defeat the purpose, but it also occurred to me that MS is
stupid enough to hve designed the Trust Center to use the registry which
would by default mean that code could be used. God forbid that they should
modify the design of the registry so that modification of certain node or
keys would be restricted.
Daniel Pineault said:In general sense, No! That would kinda defeat the purpose of security.
That said, with enough diging... there are ways to do almost anything. I
believe that it can be done if you are willing to mess around with
registry
settings (be very carefull as you can seriously damage a computer if you
mess
this up). Take a look at:
http://www.access-programmers.co.uk/forums/archive/index.php/t-136411.html
http://bytes.com/topic/access/answers/692003-access-2007-runtime-security-issue#post2752405
Basicly you need to add a new reg key per trusted location you wish to
create
[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\A
ccess\Security\Trusted
Locations\Location1]
AllowSubFolders (REG_DWORD) = 1
Path (REG_SZ) "FullPathOfTrustedLocation"
--
Hope this helps,
Daniel Pineault
http://www.cardaconsultants.com/
For Access Tips and Examples: http://www.devhut.net
Please rate this post using the vote buttons if it was helpful.
David C. Holley said:Is it possible to create a trusted location via code? Which I'm thinking
no,
but...
.
Daniel Pineault said:In general sense, No! That would kinda defeat the purpose of security.
[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\A ccess\Security\Trusted
Locations\Location1]
AllowSubFolders (REG_DWORD) = 1
Path (REG_SZ) "FullPathOfTrustedLocation"
David C. Holley said:Is it possible to create a trusted location via code? Which I'm thinking no,
but...
Actually yes. I do realize it doesn't make a lot of sense in some
respects but yes. The Auto FE Updater does create those registry
keys if desired without requiring any admin privileges.
Tony Toews said:Daniel Pineault said:In general sense, No! That would kinda defeat the purpose of security.
Actually yes. I do realize it doesn't make a lot of sense in some
respects but yes. The Auto FE Updater does create those registry keys
if desired without requiring any admin privileges.
[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\A ccess\Security\Trusted
Locations\Location1]
AllowSubFolders (REG_DWORD) = 1
Path (REG_SZ) "FullPathOfTrustedLocation"
Yup, looks about right. Note that you don't need, nor should you,
name the registry key Location1. It can be anything you like such as,
for example, "Granite Fleet Manager" or "Auto FE Updater - Fleet". I
would suggest not using Location1 because that may already have been
used by Access on some of those systems.
David W. Fenton said:On Vista/Win7, that surely prompts a UAC prompt, which is a good
thing, no?
Tony Toews said:[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\A ccess\Security\Trusted
Locations\Location1]
AllowSubFolders (REG_DWORD) = 1
Path (REG_SZ) "FullPathOfTrustedLocation"
Yup, looks about right. Note that you don't need, nor should you,
name the registry key Location1. It can be anything you like such as,
for example, "Granite Fleet Manager" or "Auto FE Updater - Fleet". I
would suggest not using Location1 because that may already have been
used by Access on some of those systems.
microsoft said:well as dealing with bloat
due to some temp tables that exist.
No, this doesn't hit the UAC prompt. I test my Auto FE Updater in
a clean Win Vista/7 OS install with just Office installed and no
other settings changes. And no UAC.
David W. Fenton said:Hmm. That means the Trust Center registry key is in a location
editable by users, which seems to me to make it pretty useless!
<shrug> Pretty much. Also given that you can mark a given
registry
locations sub folders as trusted too. So that makes it even less
meaningful.