Real Geek Forums  

Go Back   Real Geek Forums > Archives > Operating Systems > Windows XP > Windows XP WMI

Notices

Reply

Login script with admin priveleges

 

LinkBack Thread Tools Display Modes
Old 02-18-2005, 07:31 PM   #1 (permalink)
Default Login script with admin priveleges

Wondering if anyone could help me out with the following:

On NT, W2K and XP client machines I need a way to run an exe, through the
login script, with admin priveleges. I've looked into "runas" and "su",
however, they're not the best options as I run into problems with
compatability with NT or the fact that one has to insert the password when
prompted. I've also looked into "Admin Script Editor" and its packager
which lets one create and .exe to be run with alterante credentials.

Anyone know if this is possible through VBScript using impersonation?

Any enlightment into this matter would be appreciated.

Thanks!
JCOliveira


JCO
Guest
 
Posts: n/a
Reply With Quote  
Old 02-19-2005, 01:55 AM   #2 (permalink)
Default Re: Login script with admin priveleges

JCO wrote:
Quote:
> Any enlightment into this matter would be appreciated.
In my view, this should never happen. The whole point of a logon script
is to set up the user environment, not to run silly EXE files as the admin.

--
Gerry Hickman (London UK)
Gerry Hickman
Guest
 
Posts: n/a
Reply With Quote  
Old 02-19-2005, 05:42 PM   #3 (permalink)
Default Re: Login script with admin priveleges

"Gerry Hickman" wrote in message
news:eKfZr5iFFHA.1932@TK2MSFTNGP14.phx.gbl...
: JCO wrote:
:
: > Any enlightment into this matter would be appreciated.
:
: In my view, this should never happen. The whole point of a logon script
: is to set up the user environment, not to run silly EXE files as the
admin.

So, what's the difference between a silly EXE file and a serious one and is
it alright to run those as the admin in a logon script? (O:=

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp


Roland Hall
Guest
 
Posts: n/a
Reply With Quote  
Old 02-20-2005, 02:40 AM   #4 (permalink)
Default Re: Login script with admin priveleges

On Sat, 19 Feb 2005 12:42:07 -0600, "Roland Hall" <nobody@nowhere> wrote
in microsoft.public.scripting.vbscript,
microsoft.public.win32.programmer.wmi, microsoft.public.windowsxp.wmi:
Quote:
>"Gerry Hickman" wrote in message
>news:eKfZr5iFFHA.1932@TK2MSFTNGP14.phx.gbl...
>: JCO wrote:
>:
>: > Any enlightment into this matter would be appreciated.
>:
>: In my view, this should never happen. The whole point of a logon script
>: is to set up the user environment, not to run silly EXE files as the
>admin.
>
>So, what's the difference between a silly EXE file and a serious one and is
>it alright to run those as the admin in a logon script? (O:=
By definition, a silly (=inappropriate) EXE file in a login script is
one which requires more privileges than the current user has. They
belong in a machine startup script and necessary rights granted to
Domain Computers.

--
Michael Bednarek http://mbednarek.com/ "POST NO BILLS"
Michael Bednarek
Guest
 
Posts: n/a
Reply With Quote  
Old 02-20-2005, 09:25 AM   #5 (permalink)
Default Re: Login script with admin priveleges

"Michael Bednarek" wrote in message
news91g11l1s48v0n69b9chkk6nthpsuf6u51@4ax.com...
: On Sat, 19 Feb 2005 12:42:07 -0600, "Roland Hall" <nobody@nowhere> wrote
: in microsoft.public.scripting.vbscript,
: microsoft.public.win32.programmer.wmi, microsoft.public.windowsxp.wmi:
:
: >"Gerry Hickman" wrote in message
: >news:eKfZr5iFFHA.1932@TK2MSFTNGP14.phx.gbl...
: >: JCO wrote:
: >:
: >: > Any enlightment into this matter would be appreciated.
: >:
: >: In my view, this should never happen. The whole point of a logon script
: >: is to set up the user environment, not to run silly EXE files as the
: >admin.
: >
: >So, what's the difference between a silly EXE file and a serious one and
is
: >it alright to run those as the admin in a logon script? (O:=
:
: By definition, a silly (=inappropriate) EXE file in a login script is
: one which requires more privileges than the current user has. They
: belong in a machine startup script and necessary rights granted to
: Domain Computers.

I was just being silly but the response was worth reading. Thanks.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp


Roland Hall
Guest
 
Posts: n/a
Reply With Quote  
Old 02-20-2005, 12:41 PM   #6 (permalink)
Default Re: Login script with admin priveleges

Hi Roland,
Quote:
> I was just being silly but the response was worth reading. Thanks.
Hehe

The point we're making is that logging on time is for getting the user's
desktop and drives up as quickly as possible, it's not the right time to
be messing around with admin programs.

Maybe there's a legitimate use for such a program (?), but in the first
instance I'd suggest trying to re-design your systems so that this kind
of thing isn't needed at logon time. e.g. on my own netowrk, I run the
admin programs overnight.

--
Gerry Hickman (London UK)
Gerry Hickman
Guest
 
Posts: n/a
Reply With Quote  
Old 02-20-2005, 08:07 PM   #7 (permalink)
Default Re: Login script with admin priveleges

"Gerry Hickman" <gerry666uk@yahoo.co.uk> wrote in message
news:%23FoOHH1FFHA.1528@TK2MSFTNGP09.phx.gbl...
: Hi Roland,
:
: > I was just being silly but the response was worth reading. Thanks.
:
: Hehe
:
: The point we're making is that logging on time is for getting the user's
: desktop and drives up as quickly as possible, it's not the right time to
: be messing around with admin programs.
:
: Maybe there's a legitimate use for such a program (?), but in the first
: instance I'd suggest trying to re-design your systems so that this kind
: of thing isn't needed at logon time. e.g. on my own netowrk, I run the
: admin programs overnight.

Yes, that makes sense. I guess I'm going to have to agree with you, but I'm
fighting it. *smirk*

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp


Roland Hall
Guest
 
Posts: n/a
Reply With Quote  
Old 05-28-2005, 03:24 PM   #8 (permalink)
Default Re: Login script with admin priveleges


Hi Everybody,
I agree that we should avoided running SILLY programs at logon time bu
there may be some peculiar circumstances when we require this.
For e.g. in my network P.C's are being shared by users and users don’
have roaming profiles but still few users require TIME in PST and som
other require TIME in GMT for this I cant find any option in Window
2000 Group Policy. The only way i can do this is by doing registr
changes at logon time and for running this script Admin rights would b
required, so if possible give me the solution for this.

Any other solution for this problem will also be appreciated

--
Jaspreet Singh JollyPosted from http://www.pcreview.co.uk/ newsgroup acces

Jaspreet Singh Jolly
Guest
 
Posts: n/a
Reply With Quote  
Old 05-29-2005, 05:58 AM   #9 (permalink)
Default Re: Login script with admin priveleges

In a multi-user environment each user can set a separate timezone on W2K and
XP. This is saved in their profile and can be different for each user.
With Roaming Profiles this is easier to manage as it only needs to be set
once. You should also be able to change the TZ in the User registry with a
script but not the machines time zone. The machine time zone should always
reflect it's physical location for other reasons.

Try finding the setting in HKCU for time zone.

--
Jim Vierra

"Jaspreet Singh Jolly" <Jaspreet.Singh.Jolly.1pr11a@> wrote in message
news:j76dnT8wAfY3DgXfRVn_vg@giganews.com...
Quote:
>
> Hi Everybody,
> I agree that we should avoided running SILLY programs at logon time but
> there may be some peculiar circumstances when we require this.
> For e.g. in my network P.C's are being shared by users and users don't
> have roaming profiles but still few users require TIME in PST and some
> other require TIME in GMT for this I cant find any option in Windows
> 2000 Group Policy. The only way i can do this is by doing registry
> changes at logon time and for running this script Admin rights would be
> required, so if possible give me the solution for this.
>
> Any other solution for this problem will also be appreciated.
>
>
> --
> Jaspreet Singh JollyPosted from http://www.pcreview.co.uk/ newsgroup
> access
>

Jim Vierra
Guest
 
Posts: n/a
Reply With Quote  
Old 06-03-2005, 03:12 PM   #10 (permalink)
Default Re: Login script with admin priveleges

Also, if you want to stay with using some sort of change upon startup,
consider using a startup script rather than a login script. Startup scripts
run in the administrative context (and prior to anyone logging in) and will
get around the issue of users not having permissions to reset the zone.


"Jim Vierra" <jvierra@msn.com> wrote in message
news:uFSexNBZFHA.3488@tk2msftngp13.phx.gbl...
Quote:
> In a multi-user environment each user can set a separate timezone on W2K
> and XP. This is saved in their profile and can be different for each
> user. With Roaming Profiles this is easier to manage as it only needs to
> be set once. You should also be able to change the TZ in the User
> registry with a script but not the machines time zone. The machine time
> zone should always reflect it's physical location for other reasons.
>
> Try finding the setting in HKCU for time zone.
>
> --
> Jim Vierra
>
> "Jaspreet Singh Jolly" <Jaspreet.Singh.Jolly.1pr11a@> wrote in message
> news:j76dnT8wAfY3DgXfRVn_vg@giganews.com...
Quote:
>>
>> Hi Everybody,
>> I agree that we should avoided running SILLY programs at logon time but
>> there may be some peculiar circumstances when we require this.
>> For e.g. in my network P.C's are being shared by users and users don't
>> have roaming profiles but still few users require TIME in PST and some
>> other require TIME in GMT for this I cant find any option in Windows
>> 2000 Group Policy. The only way i can do this is by doing registry
>> changes at logon time and for running this script Admin rights would be
>> required, so if possible give me the solution for this.
>>
>> Any other solution for this problem will also be appreciated.
>>
>>
>> --
>> Jaspreet Singh JollyPosted from http://www.pcreview.co.uk/ newsgroup
>> access
>>
>
>

maximillianx
Guest
 
Posts: n/a
Reply With Quote  
Reply

Tags
None

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Login Script Problems john Windows Vista Networking & Sharing 4 10-09-2006 03:01 PM
Error accessing registry keys even with administrator priveleges Pushkar Windows Vista Security 2 07-26-2006 07:14 PM
fix WMI via script? emebohw@netscape.net Windows XP WMI 1 01-17-2005 03:49 PM
VB WMI Script David J Duryea Windows XP WMI 0 08-26-2004 01:27 AM
Script error in help Blueheron Windows XP Help & Support 2 08-28-2003 09:32 PM


All times are GMT. The time now is 06:37 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright © 2005 - 2007 RealGeek.com. All rights reserved.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90