I'm attempting to pull in custom data to LANDesk v22.214.171.1247 using ldappl3.template and the user's registry. The info I'm pulling in is added to the registry using a script I've written, and is being pushed out from LANDesk. It works beautifully on XP, but I'm running into problems with the UAC on Windows 7. As far as I can tell, there is no easy way to modify the registry using scripts in Windows 7, so I was wondering if there is a way other than using the registry to pull that information into LANDesk. If there is infact a way to modify the registry when UAC is enabled (which we would like to remain the case), let me know that as well. Thanks!
1 of 1 people found this helpful
- What scripting language are you using?
- How are you running the script inside or outside of LANDesk?
For example if you are using AutoifScript you would use this directive in your script
If vbscript this may help http://www.winhelponline.com/articles/185/1/VBScripts-and-UAC-elevation.html
Yeah, I'm using VBScript. I saw the post you referred me to before, but correct me if I'm wrong, won't I run into problems with it requiring a password? And if I'm able to get past the password requirement for admin, won't it still need to prompt for permission to execute the command? The script would be run silently, so any required interaction would cause a problem, wouldn't it?
Not sure since I'm not very good at VB, however, I know using the above directive in Autoit allows for running silent with no prompts. It is also somewhat easy to convert from VB to Autoit.
Got it to work using miniscan.exe on the client's PC. Works like a charm on every PC I've tried so far. Thanks for the input!
Cool, when you get a chance close this thread out.