Deploying Template Stores per Group Policy
Synopsis
It is possible to make templates available via group policy
Description
When trying to share templates across a team, it might be convenient, if everybody had automatic access to those templates without having to do anything.
With the PSModuleDevelopment’s Template system, this is actually possible to do, using Group Policy (or DSC, or SCCM).
Deploy the following registry value to the target computer:
Path: HKCU\Software\Microsoft\WindowsPowerShell\PSFramework\Config\Default
Name: psmoduledevelopment.template.store.company
Type: REG_SZ
Value: string:\\server\share\templates
Don’t feel like giving the users a choice in this? Change the path to this:
HKCU:\SOFTWARE\Microsoft\WindowsPowerShell\PSFramework\Config\Enforced
There are also per-machine keys available:
HKLM:\SOFTWARE\Microsoft\WindowsPowerShell\PSFramework\Config\Default
HKLM:\SOFTWARE\Microsoft\WindowsPowerShell\PSFramework\Config\Enforced
Those have the benefit of requiring elevation for the user to edit directly.
Either way you choose to go, the templates stored in the registered Template Store are automatically available to all affected users.
Notes
Version | 1.0 |
Written on: | 2018-03-12 |
Updated on: | 2018-03-12 |