public/organizationSettings.ps1
#region Header #endregion Header #region Data #endregion Data #region Main Functions <# .SYNOPSIS Gets the default organization settings file, clear the default for users to update. #> function New-OrganizationSettingsFile { [outputtype([void])] [cmdletbinding()] param ( [Parameter(Mandatory = $true)] [string] $OrganizationalSettingsPath, [Parameter(Mandatory = $true)] [string] $OutFile ) [xml] $defaultSettings = Get-Content -Path $OrganizationalSettingsPath $defaultSettings.ChildNodes.OrganizationalSetting | Foreach-Object { if ($PSItem.value ) { $PSItem.value = 'Update to a value within the above range' } } $defaultSettings.Save($OutFile) } #endregion Main Functions #region Support Functions #endregion Support Functions |