Highlighted
RHSA Absent Member.
Absent Member.
3285 views

Win7 "Run as Administrator" in Login?

I have a login script that runs some ROUTE ADD commands. Works fine in XP but in Win7 or Vista those must be done with "Run As Administrator". Any way to invoke that in a login script?
Labels (1)
Tags (2)
0 Likes
4 Replies
jmarton2 Absent Member.
Absent Member.

Re: Win7 "Run as Administrator" in Login?

RHSA wrote:

> I have a login script that runs some ROUTE ADD commands. Works fine in
> XP but in Win7 or Vista those must be done with "Run As
> Administrator". Any way to invoke that in a login script?


Have you tried using the runas command?

--
Novell Knowledge Partner
Enhancement Requests: http://www.novell.com/rms

Joe Marton Emeritus Knowledge Partner
0 Likes
jchipman
New Member.

Re: Win7 "Run as Administrator" in Login?

Don't believe RunAs will ever work for you in a Novell login script since it requires elevation (provided you have UAC turned on). If you are using UAC and you need to perform a ROUTE ADD, you'll either need to use a script as applied by group policy to the computer (not user), or use ZCM.

Seems like ZCM would be the easiest way to perform this using the SYSTEM user.
0 Likes
Micro Focus Expert
Micro Focus Expert

Re: Win7 "Run as Administrator" in Login?

You could create an LNK file and call that from the logon script.
Of course users will be prompted if UAC is enabled.

If you don't have a tool such as ZCM, I would recommend turning UAC off
to make some type of central mgmt easier.

On 6/14/2011 5:06 PM, jchipman wrote:
>
> Don't believe RunAs will ever work for you in a Novell login script
> since it requires elevation (provided you have UAC turned on). If you
> are using UAC and you need to perform a ROUTE ADD, you'll either need to
> use a script as applied by group policy to the computer (not user), or
> use ZCM.
>
> Seems like ZCM would be the easiest way to perform this using the
> SYSTEM user.
>
>



--
Craig Wilson - MCNE, MCSE, CCNA
Novell Knowledge Partner

Novell does not officially monitor these forums.

Suggestions/Opinions/Statements made by me are solely my own.
These thoughts may not be shared by either Novell or any rational human.
0 Likes
RHSA Absent Member.
Absent Member.

Re: Win7 "Run as Administrator" in Login?

Thank you for the suggestions.

David
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.