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

Get-SavedRunHistory returns no objects #27

Closed
ssg47 opened this issue Aug 17, 2020 · 1 comment
Closed

Get-SavedRunHistory returns no objects #27

ssg47 opened this issue Aug 17, 2020 · 1 comment
Assignees
Labels

Comments

@ssg47
Copy link

ssg47 commented Aug 17, 2020

Today, I ran:
Save-RunHistory -File I:\Scripts\_Investigations\_data\RunHistory_2020.08.17.xml
which generated a file of around 15 KB.

Then I ran:
Get-SavedRunHistory -File I:\Scripts\_Investigations\_data\RunHistory_2020.08.17.xml
and got no results.

I had a nose around in the source for RunDetails.cs in miis-client and then ran this:
Get-Content -path I:\Scripts\_Investigations\_data\RunHistory_2020.08.17.xml -First 3
and got these lines:

	<?xml version="1.0" encoding="utf-8"?>
	<execution-histories>
	  <run-details>

I think the issue is in line 108 of RunDetails.cs where it says:

foreach (XmlNode node in d.SelectNodes("/execution-histories/run-history/run-details"))

I'm running the current version of LithnetMiisAutomation:

PS C:\Windows\system32> Get-Module LithnetMiisAutomation | Select-Object -Property Name,Version

Name                  Version
----                  -------
LithnetMiisAutomation 1.0.6960.34402	

and MIM 4.6.34:

PS C:\Windows\system32> (Get-Item "C:\Program Files\Microsoft Forefront Identity Manager\2010\Synchronization Service\Bin\miiserver.exe").VersionInfo | Select-O
bject -Property FileVersion,ProductVersion

FileVersion ProductVersion
----------- --------------
4.6.34.0    4.6.34.0
@ryannewington
Copy link
Member

@ssg47 Thanks for finding this and providing the detailed report.

I've fixed the underlying issue, released a new version which fixes the issue.

https://github.com/lithnet/miis-powershell/releases/tag/v1.0.7536

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants