description: Installs the Host Guardian Service server
synopses:
- Install-HgsServer [-HgsDomainName] <String> -SafeModeAdministratorPassword <SecureString>
  [-Restart] [-LogDirectory <String>] [-DatabasePath <String>] [-WhatIf] [-Confirm]
  [<CommonParameters>]
- Install-HgsServer [-HgsDomainName] <String> [-HgsDomainCredential] <PSCredential>
  -SafeModeAdministratorPassword <SecureString> [-Restart] [-LogDirectory <String>]
  [-DatabasePath <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
options:
  -DatabasePath String: ~
  -HgsDomainCredential PSCredential:
    required: true
  -HgsDomainName String:
    required: true
  -LogDirectory String: ~
  -Restart Switch: ~
  -SafeModeAdministratorPassword SecureString:
    required: true
  -Confirm,-cf Switch: ~
  -WhatIf,-wi Switch: ~
  -Debug,-db Switch: ~
  -ErrorAction,-ea ActionPreference:
    values:
    - Break
    - Suspend
    - Ignore
    - Inquire
    - Continue
    - Stop
    - SilentlyContinue
  -ErrorVariable,-ev String: ~
  -InformationAction,-ia ActionPreference:
    values:
    - Break
    - Suspend
    - Ignore
    - Inquire
    - Continue
    - Stop
    - SilentlyContinue
  -InformationVariable,-iv String: ~
  -OutVariable,-ov String: ~
  -OutBuffer,-ob Int32: ~
  -PipelineVariable,-pv String: ~
  -Verbose,-vb Switch: ~
  -WarningAction,-wa ActionPreference:
    values:
    - Break
    - Suspend
    - Ignore
    - Inquire
    - Continue
    - Stop
    - SilentlyContinue
  -WarningVariable,-wv String: ~
