Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Domain Controller SYSVOL State Data healthcheck #109

Closed
rebelinux opened this issue Jun 22, 2023 · 1 comment · Fixed by #111
Closed

Add Domain Controller SYSVOL State Data healthcheck #109

rebelinux opened this issue Jun 22, 2023 · 1 comment · Fixed by #111

Comments

@rebelinux
Copy link
Collaborator

Get-CIMInstance -CIMSession $DCName -Namespace "root/microsoftdfs" -Class "dfsrreplicatedfolderinfo" -Filter "ReplicatedFolderName = 'SYSVOL Share'" -EA 0 -Verbose:$False | Select-Object State

			Switch($Result.State)
			{
				0		{$SysvolState  = "0 = Uninitialized"; Break}
				1		{$SysvolState  = "1 = Initialized"; Break}
				2		{$SysvolState  = "2 = Initial Sync"; Break}
				3		{$SysvolState  = "3 = Auto Recovery"; Break}
				4		{$SysvolState  = "4 = Normal"; Break}
				5		{$SysvolState  = "5 = In Error"; Break}
				Default {$SysvolState  = "Unable to determine the SYSVOL State: $($Result.State)"; Break}
			}
@rebelinux
Copy link
Collaborator Author

Image

rebelinux added a commit to rebelinux/AsBuiltReport.Microsoft.AD that referenced this issue Jun 23, 2023
rebelinux added a commit to rebelinux/AsBuiltReport.Microsoft.AD that referenced this issue Jun 23, 2023
@rebelinux rebelinux mentioned this issue Jun 23, 2023
7 tasks
@rebelinux rebelinux mentioned this issue Jun 23, 2023
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant