Archive: LSA function calls VS WriteRegStr ???(Local Security Settings/Policies)


LSA function calls VS WriteRegStr ???(Local Security Settings/Policies)
hi guys,

well at the end of my installation, i need to set the
Network Access: Sharing security model for local accounts (under Local Security Settings\Local Policies\Security Options\ ), i need to set it to CLASSIC - local users authenticate as themselves.

i'm totally new to NSIS ( luv this tool so far:) ) and i really don't have a clue how to approach this. i googled around and found that policies in security options are from $windir\inf\Sceregvl.inf. Using this file, i tracked the registry value to Network Access to the following: HKLM\System\CurrentControlSet\Control\Lsa\ForceGuest.

i noticed changing the value from the MMC will also change the value of regkey when viewed by regedit. by searchin the NSIS forum i came accross this thread which kinda confused me with all the system calls.

the question now is wat's the next step?


????


oooops, sorry, pressed enter before finishing previous msg.

Guys? any ideas pls? i still haven't received any answers on this thread :(


I am pretty sure that what you want to do can be achieved just by changing the registry value. As long as the user who is running your app has admin privileges this should work:

WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Control\Lsa" "forceguest" 0
Note however that it is a DWORD that you want to change and not a string value ;)
CF