FILE: C:\ProgramData\PuppetLabs\puppet\var\lib\facter\brand.rb

--
Facter.add("brand") do confine :osfamily => "windows" setcode do powershell = 'C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe -NonInteractive -NoProfile' command = 'if(Test-Path $env:plesk_cli\admin.exe -ErrorAction SilentlyContinue){([xml](& $env:plesk_cli\admin.exe -xi)).admin.pname}' Facter::Core::Execution.execute(%Q{#{powershell} -command "#{command}"}) end end
--