azureautomation / runbooks

Sample Automation runbooks
MIT License
154 stars 129 forks source link

Line 364: Incorrect path to MMA folder #75

Open AKonCloud opened 3 years ago

AKonCloud commented 3 years ago

It fails to find the MMA directory which exists in the correct path as anticipated, maybe its unable to get the version number folder name?

After modifying Line 364 to the full path it works fine i.e. cd "C:\Program Files\Microsoft Monitoring Agent\Agent\AzureAutomation\7.3.837.0\HybridRegistration"

AKonCloud commented 3 years ago

I think on Line 366 it should be cd ".\$version\HybridRegistration"

instead of cd "$version\HybridRegistration"

And Line 364 resolves to Program Files (x86) for some reason instead of just Program Files