During the start of the script, I get the following message:
PowerShell 7.4.1 PS /Users/ADMIN> Get-MCCAReport mkdir: \Microsoft\MCCA: File exists Data Collection: The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described in the repository. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft's privacy statement. Our privacy statement is located at https://go.microsoft.com/fwlink/?LinkID=824704. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices. Do you accept(Y/N):Y New-Item: Could not find a part of the path '/Microsoft/MCCA/UserConsent.txt'. Set-Content: Could not find a part of the path '/Microsoft/MCCA/UserConsent.txt'. 02/23/2024 14:17:26 Log file cannot be created. 02/23/2024 14:17:26 The local machine information cannot be logged. 02/23/2024 14:17:26 A general event cannot be logged. 02/23/2024 14:17:26 A general event cannot be logged.
For some reason, it is not possible to create the logfiles. The script runs as admin, and should have enough rights to write the files. Also, If I delete the folder MCCA, it will re-create the file.
What is interesting, it does not create the folder MCCA within the folder Microsoft, but the folder has the actual name "Microsoft\MCCA"
I'm running Powershell on OSX. I did not have this issue last month. I do not remember if this MCCA script did contain a different version back then. I have tried running this exact same version on PowerShell on Windows, and did run into the same issue.
During the start of the script, I get the following message:
PowerShell 7.4.1 PS /Users/ADMIN> Get-MCCAReport mkdir: \Microsoft\MCCA: File exists Data Collection: The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described in the repository. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft's privacy statement. Our privacy statement is located at https://go.microsoft.com/fwlink/?LinkID=824704. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices. Do you accept(Y/N):Y New-Item: Could not find a part of the path '/Microsoft/MCCA/UserConsent.txt'. Set-Content: Could not find a part of the path '/Microsoft/MCCA/UserConsent.txt'. 02/23/2024 14:17:26 Log file cannot be created. 02/23/2024 14:17:26 The local machine information cannot be logged. 02/23/2024 14:17:26 A general event cannot be logged. 02/23/2024 14:17:26 A general event cannot be logged.For some reason, it is not possible to create the logfiles. The script runs as admin, and should have enough rights to write the files. Also, If I delete the folder MCCA, it will re-create the file.
What is interesting, it does not create the folder MCCA within the folder Microsoft, but the folder has the actual name "Microsoft\MCCA"
I'm running Powershell on OSX. I did not have this issue last month. I do not remember if this MCCA script did contain a different version back then. I have tried running this exact same version on PowerShell on Windows, and did run into the same issue.