blob: 6af68b5aed52b21fb79f9cc37ee7169ba22a4d5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#!powershell
# Copyright: (c) 2023, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#AnsibleRequires -CSharpUtil Ansible.Basic
#AnsibleRequires -PowerShell ..module_utils._ADObject
$setParams = @{
PropertyInfo = @(
[PSCustomObject]@{
Name = 'city'
Option = @{ type = 'str' }
Attribute = 'City'
}
[PSCustomObject]@{
Name = 'country'
Option = @{ type = 'str' }
Attribute = 'Country'
}
[PSCustomObject]@{
Name = 'managed_by'
Option = @{ type = 'str' }
Attribute = 'ManagedBy'
}
[PSCustomObject]@{
Name = 'postal_code'
Option = @{ type = 'str' }
Attribute = 'PostalCode'
}
[PSCustomObject]@{
Name = 'state_province'
Option = @{ type = 'str' }
Attribute = 'State'
}
[PSCustomObject]@{
Name = 'street'
Option = @{ type = 'str' }
Attribute = 'StreetAddress'
}
)
ModuleNoun = 'ADOrganizationalUnit'
}
Invoke-AnsibleADObject @setParams
|