Avatar billede Slettet bruger
28. april 2008 - 20:07 Der er 9 kommentarer

Skriv til registeringsdatabasen

Hej,

Jeg starter en fil med system rettigheder og ønsker at skrive til den bruger som er logget på Current_user_settings.

Nogle forslag til, hvordan det kan gøres?
Avatar billede terry Ekspert
03. maj 2008 - 20:20 #1
could you explain in more detail please, not sure what your trying to do.
Avatar billede Slettet bruger
04. maj 2008 - 10:46 #2
sure,

I want to run a program on a computer with system credentials.
The program needs to write to the local users regbase.
normaly i use Active Setup to do this,  (runs at first logon for the user)

but i'm looking for other possibiliates. maybe, its possible to load the user hive and write in to it?

i'm using SMS to deploy my application
Avatar billede terry Ekspert
04. maj 2008 - 16:20 #3
Sorry, still not 100% sure.

I think that SaveSettings writes to the current users registry

If it doesnt here is a link which enables you to write anywhere in the registry

http://www.vbforums.com/showthread.php?t=344540
Avatar billede Slettet bruger
04. maj 2008 - 18:12 #4
I wan
Avatar billede Slettet bruger
04. maj 2008 - 18:13 #5
My problem is that i want to write to ANOTHER users current_user settings.

if i logon to a computer remotely, login with the system account, and the want to create regkeys in the active users current_user profile.
Avatar billede terry Ekspert
04. maj 2008 - 18:21 #6
Well I'm no expert in this area, but a PC can have many users so how do you know which one you want to write to? If th euser usnt logged on thit that user is not the Current User.

And if you know which user you want to write to then cant you use the link I gave?
http://www.vbforums.com/showthread.php?t=344540
Avatar billede Slettet bruger
04. maj 2008 - 21:13 #7
it must be for all users, so there would have to be some kind of data to be read.

I will try to dig in to it..
maybe something with the active setup
Avatar billede terry Ekspert
05. maj 2008 - 18:31 #8
If it sfor all users then isnt that the same as LOCAL_MACHINE?
Avatar billede Slettet bruger
05. maj 2008 - 19:47 #9
as far as i can tell, this is the only way;

http://etlengineering.com/installer/activesetup.txt
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester