Audit PowerShell changes in event log
I was thinking the time when I was trying to automate the Storefront configuration and want to share my tips on how I discovered how to do it in this very quick post.
As you’ve probably seen in XenDesktop Studio, there’s a Powershell tab at the root level of the console. This is very helpfull when you want to automate tasks. Do it once manually, check on the Powershell tab, and adapt the code for your needs.
I wish Storefront console had the same to make my stores easier to setup. At the time of my article, no documentation was published. So I used a little GPO setting that enable Powershell logging. You juste have to know the beginning of the module name. This setting is :
HKLM\Software\Policies\Microsoft\Windows\powershell\ModuleLogging\EnableModuleLogging
I don’t say it’s easy to read, but sometimes, it could help.