Hi All,
I'm having errors flag up when I run the script. What I can't work out is that it still generates the report, saves it and opens the HTML file. Which, does seem to display correctly.
The error
I have attached a txt file with the errors it is outputting. The ones I understand are Set-EmailWordReplacements, Get-ObjectCount, Send-Email. It is saying they are not found as part of PSWinReporting module. I have checked my installed module and can confirm that they are not listed as available commands within the module.
Am I missing something? I have all of the modules installed PSWinReporting, PSWriteColor, PSEventViewer, PSWriteExcel & PSShareGoods as stipulated in the article: [https://evotec.xyz/hub/scripts/pswinreporting-powershell-module/]
The other error I am getting is: [2025-01-21 12:48:59] [-] Event Log Error on : Cannot validate argument on parameter 'ComputerName'. The argument is null. Provide a valid value for the argument, and then try running the command again.
I found the parameter 'ComputerName' and replaced with the name of our DC.
If anyone can shed some light on this, it would be greatly appreciated.
Script Errors 21 01 2025.txt
Hi All,
I'm having errors flag up when I run the script. What I can't work out is that it still generates the report, saves it and opens the HTML file. Which, does seem to display correctly.
The error
I have attached a txt file with the errors it is outputting. The ones I understand are Set-EmailWordReplacements, Get-ObjectCount, Send-Email. It is saying they are not found as part of PSWinReporting module. I have checked my installed module and can confirm that they are not listed as available commands within the module.
Am I missing something? I have all of the modules installed PSWinReporting, PSWriteColor, PSEventViewer, PSWriteExcel & PSShareGoods as stipulated in the article: [https://evotec.xyz/hub/scripts/pswinreporting-powershell-module/]
The other error I am getting is: [2025-01-21 12:48:59] [-] Event Log Error on : Cannot validate argument on parameter 'ComputerName'. The argument is null. Provide a valid value for the argument, and then try running the command again.
I found the parameter 'ComputerName' and replaced with the name of our DC.
If anyone can shed some light on this, it would be greatly appreciated.
Script Errors 21 01 2025.txt