public/organizationSettings.ps1
#region Main Functions <# .SYNOPSIS Gets the default organization settings file, clear the default for users to update. .PARAMETER OrganizationalSettingsPath This needs to be updated .PARAMETER Outfile This needs to be updated #> 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 |