Quantcast
Channel: Sysinternals Forums
Viewing all articles
Browse latest Browse all 10386

PsTools : PSService not using -u and -p parameters

$
0
0
Author: StriclyFlava
Subject: PSService not using -u and -p parameters
Posted: 01 August 2013 at 8:31pm

Hello Guru's.
We have been using psservice for a long time on a Windows 2003 server, specifying a username/password which is a local admin on the remote server, without any issue:
 
PsService \\Servername -u <user> -p <password> stop myService
 
When we try to run this exact same command from a Windows 2008 R2 server, it fails.  We are seeing a security event audit failure in the log - 
 
A handle to an object was requested. 
Subject:
        Security ID:            DOMAIN\User 
        Account Name:           User Running Command, not -u
        Account Domain:         DOMAIN
        Logon ID:               0x6c68cdf
Object:
        Object Server:          SC Manager
        Object Type:            SERVICE OBJECT
        Object Name:            myService
        Handle ID:              0x0
 
The account name is the account of the user trying to run the command, who does not have local admin rights on the remote server.  It is not the account specified with the -u
 
Does Windows 2008 R2 not support the psservice command using alternate credentials?  Or does the user who is invkoing the command also have to be a local admin?  Again, this works correctly from a Windows 2003 server, but we are trying to shut it down :)
 
Thanks in advance for your help!

Viewing all articles
Browse latest Browse all 10386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>