简体   繁体   English

我的服务运行的是什么帐户?

[英]What account is my service running as?

如何从服务本身确定正在运行的服务帐户。

A language would have been useful.. 一种语言本来有用..

In C++: GetUserName 在C ++中: GetUserName

C# C#

System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString();

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在SharePoint2010上将我的帐户模拟为服务帐户 - How to impersonate my account to service account on SharePoint2010 IIS网络用户帐户可以调用在其他帐户下运行的WCF服务吗? - Can the IIS network-user account call a WCF service running under a different account? 远程运行SSIS包 - 它们在哪个帐户下运行? - Running SSIS packages remotely - what account do they run under? 错误 400(错误请求):我的 WCF 服务未考虑 maxReceivedMessageSize - Error 400 (bad request): maxReceivedMessageSize not taken into account for my WCF service 使用AD的服务帐户和用户帐户凭据连接到Active Directory以登录(在我的产品中) - Connect to Active Directory for Login (in my product) using Service Account and User Account Credentials of AD 在带有“本地系统帐户”的“ Windows服务”下运行时,.NET Windows 7截屏不起作用 - .NET Windows 7 take screenshot not working when running under 'Windows Service' with 'Local System Account' 在 (Azure) AD 帐户下运行的服务能否透明地获取 OAuth2 令牌? - Can OAuth2 tokens be obtained transparently by a service running under an (Azure) AD account? 如果客户端和服务在同一服务器上的同一帐户下运行,是否可以避免指定servicePrincipalName? - Is it possible to avoid specifying servicePrincipalName if both client and service are running under the same account on the same server? SQL CLR function 在 SQL 服务器作为域帐户而不是系统或网络服务运行时无法模拟 - SQL CLR function fails to impersonate when SQL Server is running as a domain account instead of SYSTEM or NETWORK SERVICE 什么阻止(不崩溃)我的Windows服务? - What is stopping (not crashing) my windows service?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM