local administrator in Windows Vista

G

Guest

Hi All,

I have two questions:

1. How the users in Vista are made local admin of the machine? Like I have
few machines in my network who has Vista installed. On these machines, I want
to make user of each machine as local amin of the machine so that they can
install and run softwares and applications. How can I do that?

2. Second one is a specific question. I have installed Vista on a machine
and made it part of some domain (domain is on Windows 2003 machine). Now I
created one user in AD and made that user part of local administrators group
on Vista machine. Now I have an application which needs toa ccess the
registry entry. So when I run this application, it gives me error and when I
debugged it I found that it is enable to access the registry due to securtity
permission though I am running with local administrator. How can I run my
application?

Thanks
Sachin Jindal
 
M

Mark D. VandenBeg

Sachin Jindal said:
Hi All,

I have two questions:

1. How the users in Vista are made local admin of the machine? Like I have
few machines in my network who has Vista installed. On these machines, I
want
to make user of each machine as local amin of the machine so that they can
install and run softwares and applications. How can I do that?

2. Second one is a specific question. I have installed Vista on a machine
and made it part of some domain (domain is on Windows 2003 machine). Now I
created one user in AD and made that user part of local administrators
group
on Vista machine. Now I have an application which needs toa ccess the
registry entry. So when I run this application, it gives me error and
when I
debugged it I found that it is enable to access the registry due to
securtity
permission though I am running with local administrator. How can I run my
application?

Thanks
Sachin Jindal

Regarding number 2:

Applications run at the standard user level regardless of whether the user
is logged on as an administrator. try right-clicking on the application
icon and choosing "Run as administrator" from the context manager.
 
J

Jimmy Brush

Hello,

1) You can make a user an administrator (or remove admin power) using either
the User Accounts control panel or Local Users and Groups MMC snap-in (which
you can find in Computer Management)

2) Please read the thread directly below this entitled "ANS: "What's the
deal with UAC (Windows Needs Your Permission screens)" and "...But I thought
I was an administrator""

- JB

Vista Support FAQ
http://www.jimmah.com/vista/
 
G

Guest

Thanks Jimmy,

I have read that mail. My problem is that:

We have developed an application which is based on office 2007 Infopath. So
my application is just a .xsn file. To run my application I just run the .xsn
file. When i right click on this file, it does not show me the option of "run
as administrator". neither office 2007 Infopath application shows that
option. How can i run this xsn file as "administrator". This application
(.xsn file) is accessing the registry and because I am local admin of the
machine with UAC enabled, gives me error because it is not able to access the
registry.

How can i solve this problem?

Thanks
Sachin
 
J

Jimmy Brush

Sorry, I am not too familiar with Infopath, so I'm not sure what its
capabilities are ... but here are some suggestions:

The best solution is to change your program to save its settings to HKCU
instead of HKLM. Or, if you are just reading data from HKLM, specify you
only need read access so the system won't access deny you.

The next best solution is to create an .exe application that does all the
"admin" stuff. This application can be marked as "requiring administrator
privileges" and will prompt the user for permission when it starts. Simply
call that program from your infopath script when you need to do admin stuff.

Finally, you can run Infopath as administrator, and then load your program
from there. If you right-click the link to infopath, you can click Run As
Administrator.

Here's a great resource for developers on the new restrictions in UAC:

http://msdn.microsoft.com/windowsvista/default.aspx?pull=/library/en-us/dnlong/html/AccProtVista.asp

- JB

Vista Support FAQ
http://www.jimmah.com/vista/
 
G

Guest

As with previous posts, again this is probably a local admin problem...
Technically no one is really a true administrator until all prompts and user
securitys are disabled in the security settings panel...
(start/run/secpol.msc/local policies/security options/scroll to bottom) and
then going into control panel and changing you account to an admistrator
manually. I initially thought i was an admin but your really only a local
admin by default. Go figure! Plus it gets rid of all those annoying pop up
warnings.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top