Skip to content

Commit

Permalink
Funcrion attribute removed because was not used.
Browse files Browse the repository at this point in the history
  • Loading branch information
vreguibar authored May 19, 2022
1 parent 967c182 commit c7c20f7
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions Public/New-CaObjects.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Function New-CaObjects
this organization by following the defined Delegation Model.
.EXAMPLE
New-CaObjects
.INPUTS
.PARAMETER ConfigXMLFile
Full path to the configuration.xml file
.NOTES
Version: 1.3
DateModified: 01/Feb/2018
Expand All @@ -25,17 +25,7 @@ Function New-CaObjects
HelpMessage='Full path to the configuration.xml file',
Position=0)]
[string]
$ConfigXMLFile,

# Param2 Location of all scripts & files
[Parameter(Mandatory = $false,
ValueFromPipeline = $true,
ValueFromPipelineByPropertyName = $true,
ValueFromRemainingArguments = $false,
HelpMessage = 'Path to all the scripts and files needed by this function',
Position = 1)]
[string]
$DMscripts = "C:\PsScripts\"
$ConfigXMLFile
)
Begin {
Write-Verbose -Message '|=> ************************************************************************ <=|'
Expand All @@ -53,15 +43,12 @@ Function New-CaObjects
# Initialisations
Import-Module -name EguibarIT.Delegation -Verbose:$false


#Get the OS Instalation Type
$OsInstalationType = Get-ItemProperty -Path 'HKLM:Software\Microsoft\Windows NT\CurrentVersion' | Select-Object -ExpandProperty InstallationType


################################################################################
#region Declarations


try {
# Active Directory Domain Distinguished Name
If(-Not (Test-Path -Path variable:AdDn)) {
Expand Down Expand Up @@ -90,7 +77,6 @@ Function New-CaObjects
'T1' = $confXML.n.NC.AdminAccSufix1;
'T2' = $confXML.n.NC.AdminAccSufix2
}

#('{0}{1}{2}{1}{3}' -f $NC['sg'], $NC['Delim'], $confXML.n.Admin.lg.PAWM, $NC['T0'])
# SG_PAWM_T0

Expand Down

0 comments on commit c7c20f7

Please sign in to comment.