Page 1 of 1 1
Topic Options
#179231 - 2007-08-13 02:33 PM Vista and Elevate
KIXKicks Offline
Starting to like KiXtart

Registered: 2002-07-26
Posts: 177
Loc: Vancouver, WA
Since Vista has certain parts of it locked down even for Administrators, it would be nice if KIX had the ability to have an Elevate macro built in. This could be used to restore the registry commands in KIX back to functionality again.
Top
#182601 - 2007-11-14 05:34 AM Re: Vista and Elevate [Re: KIXKicks]
It_took_my_meds Offline
Hey THIS is FUN
*****

Registered: 2003-05-07
Posts: 273
Loc: Sydney, Australia
I agree, (unless someone can tell me how to do it without builtin support) this is a must.
Top
#182602 - 2007-11-14 05:52 AM Re: Vista and Elevate [Re: It_took_my_meds]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
Would one of you mind providing an example of what normally works, and what doesn't under Vista.
Top
#182610 - 2007-11-14 09:30 AM Re: Vista and Elevate [Re: Allen]
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Where is doesn't work please make sure that you include any useful information such as @ERROR codes and event log entries.
Top
#182658 - 2007-11-14 11:55 PM Re: Vista and Elevate [Re: Richard H.]
It_took_my_meds Offline
Hey THIS is FUN
*****

Registered: 2003-05-07
Posts: 273
Loc: Sydney, Australia
Here's just one example of where elevation is required...
 Code:
Break On

Shell "regsvr32 /s "+%windir%+"\System32\KiXforms.dll"
? @SERROR

Get $

When run without elevation, it returns...
 Code:
Access is denied.

We need an ability to shell and run elevated as well as elevate processes (including Kix).

I propose the following syntax
 Code:
Shell Elevated $cmd
Shell Limited $cmd
Run Elevated $cmd
Run Limited $cmd
Elevate @pid
Limit @pid

Top
#182681 - 2007-11-15 02:17 AM Re: Vista and Elevate [Re: It_took_my_meds]
It_took_my_meds Offline
Hey THIS is FUN
*****

Registered: 2003-05-07
Posts: 273
Loc: Sydney, Australia
I would also like to suggest a macro @elevated to determine if the process is running as admin.
Top
#182690 - 2007-11-15 09:33 AM Re: Vista and Elevate [Re: It_took_my_meds]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4672
Loc: The Netherlands
This is not just Vista. WinXP and Win2K also needed at least local admin privileges to register a DLL. There is an easy fix for this. Just run this kind of stuff in a startup script or deploy KF with a GPO.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#182692 - 2007-11-15 10:01 AM Re: Vista and Elevate [Re: It_took_my_meds]
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
The original poster refers to issues with registry access, specifically with the change to Vista.

Please start a new thread if you want to request a facility to shell / run processes with local admin or other type of elevated access.

It's not a bad request, it's just in the wrong place and there is a danger that the original posters requirement will be lost in the ensuing flood of responses \:\)

Top
#182700 - 2007-11-15 11:41 AM Re: Vista and Elevate [Re: Richard H.]
It_took_my_meds Offline
Hey THIS is FUN
*****

Registered: 2003-05-07
Posts: 273
Loc: Sydney, Australia
@Richard - Well he was talking about elevation so I figured it is very closely related and it did not necessitate a new thread; the registry example used is equally relevant to my own.

@Mart -
 Quote:
This is not just Vista. WinXP and Win2K also needed at least local admin privileges to register a DLL. There is an easy fix for this. Just run this kind of stuff in a startup script or deploy KF with a GPO.

I already do register KiXforms and run other admin requiring scripts via a system scheduled task set up by a group policy start-up script; my example was just one readily recognisable issue.

Some scripts need to elevate themselves (or processes they start) to admin within a Vista user environment, otherwise they can't work in such a context. This is unless of course they are launched within an elevated environment, which you can't expect users to know to do, and is generally not a desirable method.

I futher disagree that it is not a Vista specific issue because with XP and 2K you can detect if you have the permissions or not. Elevation is an different issue altogether.

Regards,

Richard


Edited by It_took_my_meds (2007-11-15 01:14 PM)

Top
Page 1 of 1 1


Moderator:  Lonkero, ShaneEP, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 507 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.06 seconds in which 0.022 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org