Re: Problems running programs as normal domain user

From: Kevin K (WMTRP205@NoSpam.com)
Date: 02/07/03


From: "Kevin K" <WMTRP205@NoSpam.com>
Date: Fri, 7 Feb 2003 06:56:47 -0500


Hi Sebastiaan,

You can use the Run As command. Use this script:
http://msruniv.corp.bcentral.com/Shared%20Documents/runas_admin_script.vbs.txt

NOTE: The link may warp. If it does copy and paste it into your browser.

If you would like to encrypt it (recommended), then visit
http://msdn.microsoft.com/scripting . Click on Downloads on the right side
of the page. Then choose Script Encoder

-------------------------------------------------------------------
If you need further instructions, see below:

Go to the link above and copy the everything there. Paste it into notepad.

Next, look below where it says ' in this example....., You will see
"\administrator cmd.exe". Change administrator to the administrator's user
name and change
cmd.exe to the filename of the program that you want to run.

Then change YourPasswordHere to your account password.

Save the file with a .vbs extension and create a shortcut to it in the start
menu of the limited account.

If you would like to encrypt it so other users cannot view the contents of
the script and get your password, visit http://msdn.microsoft.com/scripting
Click on Downloads on the right side of the page. Then choose Script
Encoder.

-- 
Kevin
Please reply to newsgroup so that all may benefit
"Sebastiaan" <svroomen@wanadoo.nl> wrote in message
news:009001c2ce74$e5da91b0$3301280a@phx.gbl...
> We've got a couple of programs, which don't run after
> we've logged in as a normal domain user (like Nokia PC
> Suite). If we however add the domain user to the local
> administrator group, the software runs perfectly. Do you
> know this kind of problem? Is this something about
> registering system files or so? It's not a secure thing to
> add domain users to the local adminitrator group.
> Any suggestions?
>
> Kind regards,
>
> Sebastiaan Vroomen
> Systems Engineer
> WML
> The Netherlands


Relevant Pages

  • Re: scripting help needed
    ... This cannot be done in a logon script, as the user does not have permission ... Dim strDomain, objNetwork, strComputer ... ' Retrieve NetBIOS name of local computer. ... ' Bind to domain user with same name as NetBIOS name of computer. ...
    (microsoft.public.windows.server.scripting)
  • Re: User type
    ... This does help Mike - thanks ... > If the computer is member of domain then you should use domain user ... > After you have this account and group created you can write a short script ... > administrator and make your users local administrators. ...
    (microsoft.public.windows.server.setup)
  • Re: Add a domain user group to local computer administrator group
    ... I searched in the group policy for those Restricted groups, ... >> I used a script like the one you gaves, but the script didn't work on ... >>> ' Bind to domain user CNProgramming ...
    (microsoft.public.windows.server.scripting)
  • RE: Changing Primary Group of multiple users
    ... The Script Repository and Portable Script Center on ... "Jason McCann" wrote: ... > currently in the domain user group was an oversight on our programers' part. ... in my experience it is a bad idea to change the Primary Group. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Listing Users that are Part of the Local Administrator Group
    ... > I'm trying to find/write a script that can return the members of the Local ... > Administrator group on Win 2K/XP machines. ... > computers' local Administrator group. ... I've used a script similar to below to document the local Administrators ...
    (microsoft.public.scripting.vbscript)