Skip to content

Instantly share code, notes, and snippets.

@rossarioking
Created March 7, 2020 18:23
Show Gist options
  • Save rossarioking/8ae08bcef9c1dadd040befecf242b523 to your computer and use it in GitHub Desktop.
Save rossarioking/8ae08bcef9c1dadd040befecf242b523 to your computer and use it in GitHub Desktop.
Working with Get-Member Command #PowerShell
# Get-Member - Gets Properties and Methods of Objects - Used to see what makes up an Object.
Get-Service | Get-Member
TypeName: System.Service.ServiceController#StartupType
Name MemberType Definition
---- ---------- ----------
Name AliasProperty Name = ServiceName
RequiredServices AliasProperty RequiredServices = ServicesDependedOn
Disposed Event System.EventHandler Disposed(System.Obj…
Close Method void Close()
Continue Method void Continue()
Dispose Method void Dispose(), void IDisposable.Dispos…
Equals Method bool Equals(System.Object obj)
ExecuteCommand Method void ExecuteCommand(int command)
GetHashCode Method int GetHashCode()
GetLifetimeService Method System.Object GetLifetimeService()
GetType Method type GetType()
InitializeLifetimeService Method System.Object InitializeLifetimeService…
Pause Method void Pause()
Refresh Method void Refresh()
Start Method void Start(), void Start(string[] args)
Stop Method void Stop()
WaitForStatus Method void WaitForStatus(System.ServiceProces…
BinaryPathName Property System.String {get;set;}
CanPauseAndContinue Property bool CanPauseAndContinue {get;}
CanShutdown Property bool CanShutdown {get;}
CanStop Property bool CanStop {get;}
Container Property System.ComponentModel.IContainer Contai…
DelayedAutoStart Property System.Boolean {get;set;}
DependentServices Property System.ServiceProcess.ServiceController…
Description Property System.String {get;set;}
DisplayName Property string DisplayName {get;set;}
MachineName Property string MachineName {get;set;}
ServiceHandle Property System.Runtime.InteropServices.SafeHand…
ServiceName Property string ServiceName {get;set;}
ServicesDependedOn Property System.ServiceProcess.ServiceController…
ServiceType Property System.ServiceProcess.ServiceType Servi…
Site Property System.ComponentModel.ISite Site {get;s…
StartType Property System.ServiceProcess.ServiceStartMode …
StartupType Property Microsoft.PowerShell.Commands.ServiceSt…
Status Property System.ServiceProcess.ServiceController…
UserName Property System.String {get;set;}
ToString ScriptMethod System.Object ToString();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment