However, I see nothing that will return the ' Logon As' or ' Run_As' information that I need that's a problem. ToString ScriptMethod System.Object ToString() Īs I look through the list, I am looking for properties that may be helpful or a match. WaitForStatus Method void WaitForStatus( desiredStatus), void WaitForStatĬanPauseAndContinue Property bool CanPauseAndContinue Start Method void Start(), void Start(string args) InitializeLifetimeService Method System.Object InitializeLifetimeService() GetLifetimeService Method System.Object GetLifetimeService() RequiredServices AliasProperty RequiredServices = ServicesDependedOnĭisposed Event System.EventHandler Disposed(System.Object, System.EventArgs)ĬreateObjRef Method CreateObjRef(type requestedType)ĭispose Method void Dispose(), void IDisposable.Dispose()Įquals Method bool Equals(System.Object obj)ĮxecuteCommand Method void ExecuteCommand(int command) PS C:\Users\mkana> get-service LanmanServer | get-member I can look at the MemberType column and see all the properties available. Let's try piping get-service to get-member and see if there are additional properties available to me. I see there are ComputerName and DisplayName fields which can be helpful, but nothing that gives me ' Logon As' or ' Run As'. ![]() Gets the services on a local or remote computer. I'll start with a simple help lookup: PS C:\Users\mkana> help get-service Let's start by querying a service on my local computer to see what fields are available. The first thing we'll need to figure out is a way to find the "logon as" properties for services on Windows computer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |