Re: stopping service

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



The user cannot stop the service. I do not want to grant the user account
access to stopping the service. I need a script that will stop the service,
having admin privilege while logged as a user.

Somehow, can't a command window be opened, issue an admin "command",
stop/start a service, then return as the user? All in a script. This would
be portable or accessed from a secured area. I don't have a problem placing
the password in the script, because the script would be secured.

"Dave Patrick" <mail@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:O48gk$uiFHA.320@xxxxxxxxxxxxxxxxxxxxxxx
> These may help.
>
> http://support.microsoft.com/default.aspx?scid=kb;en-us;288129
> http://www.microsoft.com/downloads/details.aspx?FamilyID=e8ba3e56-d8fe-4a91-93cf-ed6985e3927b&displaylang=en
>
> --
> Regards,
>
> Dave Patrick ....Please no email replies - reply in newsgroup.
> Microsoft Certified Professional
> Microsoft MVP [Windows]
> http://www.microsoft.com/protect
>
> "Chas" wrote:
> |I need to stop a service from a user account. I do not want to switch to
> an
> | admin account. I know my admin account name and password. What command
> can
> | I issue to stop a service from a user account?
> |
> |
>
>


.



Relevant Pages

  • Re: Need create more that 70 local user account on 2003 server dai
    ... 'Create user account and assign values for different properties here ... Guess dsadd command works out in Domain environment. ... You can build your script as batch file with this command. ...
    (microsoft.public.windows.server.scripting)
  • RE: Writing a login script that attaches shares on a external domain
    ... my understanding is that you want to use a script ... with the "net use" command to access a file server named storage01 residing ... it is not recommended to run a script with user account ... USE command to map the drive directly. ...
    (microsoft.public.windows.server.migration)
  • Re: EWF in User mode?
    ... Log to user account, ... Also you can use runas.exe command to execute ewfmgr from admin account. ...
    (microsoft.public.windowsxp.embedded)
  • Re: Im new to scripting a I working on a project that I need some help with.
    ... After that the script ... >> that the user account is not valid. ... > it to the Administrators group: ... If the user does not have it, maybe a RunAs solution ...
    (microsoft.public.scripting.vbscript)
  • Re: Memory consumption PowerShell
    ... The mechanism of the Identity Management system (it is Novell Identity ... And we could initiate to run a script oout side the IDN 3.0. ... is the case we want to do, if a new user account was created. ... memory. ...
    (microsoft.public.windows.server.scripting)