-
Notifications
You must be signed in to change notification settings - Fork 21
Module Installation
Mike Kanakos edited this page Apr 30, 2019
·
3 revisions
*** It is not recommended to download this module from here unless you intend to send PR's to the repo for changes / fixes. ***
The module is hosted at the PowerShell Gallery and can be installed from a PS CMD Prompt.
- Open an elevated PS CMD Prompt (Run As Administrator)
- Install Module:
Install-Module PSADHealth - Import the Module cmdlets:
Import-Module PSADHealth - Verify Module is loaded by listing cmdlets:
get-command -module PSADHealth - Run
Get-ADConfigto see the default values included in module config JSON. - Run
Set-PSADHealthConfigto change/specify the values you want to use
- IMPORTANT NOTE ABOUT CHANGING THE VALUES IN THE JSON FILE:
Make sure when you runSet-PSADHelathConfigthat you are running as administrator. The cmdlet needs admin privileges in order to update the included config.json file. If you do not Run As Administrator, the cmdlet will create a new ADconfig.json and store in the userprofile directory of the current user instead of updating the existing ADconfig.json . However, the functions in the module will not read the newly created ADconfig.json and instead keep reading from the included ADconfig.json file that was created when the module was installed.
-
Verify the values you set are loaded.
Get-ADConfig -ConfigurationFile c:\users\%username%\adconfig.json -
Configure Scheduled Tasks or Scheduled Jobs to run the tests at intervals you choose.
- Copy-Scripts
- Get-ADConfig
- Get-ADLastBackupDate
- Get-DCDiskSpace
- Restore-PSADHealthConfig
- Set-PSADHealthConfig
- Test-ADConfigMailer
- Test-ADObjectReplication
- Test-ADReplication
- Test-ADServices
- Test-DCsOnline
- Test-ExternalDNSServers
- Test-ExternalTimeSync
- Test-InternalTimeSync
- Test-SRVRecords
- Test-SYSVOLReplication