Skip to content

Commit d73a691

Browse files
authored
Merge pull request MicrosoftDocs#2832 from velkovb/fix-2740-examples-format
Resolves MicrosoftDocs#2740
2 parents 5cbfd13 + b803502 commit d73a691

File tree

5 files changed

+30
-0
lines changed

5 files changed

+30
-0
lines changed

docset/winserver2012-ps/activedirectory/Get-ADOrganizationalUnit.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ For more information about the how to determine the properties for computer obje
5555
### Example 1: Get all of the OUs in a domain
5656
```powershell
5757
PS C:\>Get-ADOrganizationalUnit -Filter 'Name -like "*"' | Format-Table Name, DistinguishedName -A
58+
```
59+
```output
5860
Name DistinguishedName
5961
---- -----------------
6062
Domain Controllers OU=Domain Controllers,DC=FABRIKAM,DC=COM
@@ -81,6 +83,8 @@ This command gets all of the OUs in a domain.
8183
### Example 2: Get an OU by its distinguished name
8284
```powershell
8385
PS C:\> Get-ADOrganizationalUnit -Identity 'OU=AsiaPacific,OU=Sales,OU=UserAccounts,DC=FABRIKAM,DC=COM' | Format-Table Name,Country,PostalCode,City,StreetAddress,State -A
86+
```
87+
```output
8488
Name Country PostalCode City StreetAddress State
8589
---- ------- ---------- ---- ------------- -----
8690
AsiaPacific AU 4171 Balmoral 45 Martens Place QLD
@@ -91,6 +95,8 @@ This command gets the OU with the distinguished name OU=AsiaPacific,OU=Sales,OU=
9195
### Example 3: Get child OUs
9296
```powershell
9397
PS C:\> Get-ADOrganizationalUnit -LDAPFilter '(name=*)' -SearchBase 'OU=Sales,OU=UserAccounts,DC=FABRIKAM,DC=COM' -SearchScope OneLevel | Format-Table Name,Country,PostalCode,City,StreetAddress,State
98+
```
99+
```output
94100
Name Country PostalCode City StreetAddress State
95101
---- ------- ---------- ---- ------------- -----
96102
AsiaPacific AU 4171 Balmoral 45 Martens Place QLD

docset/winserver2012r2-ps/activedirectory/Get-ADOrganizationalUnit.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ For more information about the how to determine the properties for computer obje
5757
### Example 1: Get all of the OUs in a domain
5858
```powershell
5959
PS C:\>Get-ADOrganizationalUnit -Filter 'Name -like "*"' | Format-Table Name, DistinguishedName -A
60+
```
61+
```output
6062
Name DistinguishedName
6163
---- -----------------
6264
Domain Controllers OU=Domain Controllers,DC=FABRIKAM,DC=COM
@@ -83,6 +85,8 @@ This command gets all of the OUs in a domain.
8385
### Example 2: Get an OU by its distinguished name
8486
```powershell
8587
PS C:\> Get-ADOrganizationalUnit -Identity 'OU=AsiaPacific,OU=Sales,OU=UserAccounts,DC=FABRIKAM,DC=COM' | Format-Table Name,Country,PostalCode,City,StreetAddress,State -A
88+
```
89+
```output
8690
Name Country PostalCode City StreetAddress State
8791
---- ------- ---------- ---- ------------- -----
8892
AsiaPacific AU 4171 Balmoral 45 Martens Place QLD
@@ -93,6 +97,8 @@ This command gets the OU with the distinguished name OU=AsiaPacific,OU=Sales,OU=
9397
### Example 3: Get child OUs
9498
```powershell
9599
PS C:\> Get-ADOrganizationalUnit -LDAPFilter '(name=*)' -SearchBase 'OU=Sales,OU=UserAccounts,DC=FABRIKAM,DC=COM' -SearchScope OneLevel | Format-Table Name,Country,PostalCode,City,StreetAddress,State
100+
```
101+
```output
96102
Name Country PostalCode City StreetAddress State
97103
---- ------- ---------- ---- ------------- -----
98104
AsiaPacific AU 4171 Balmoral 45 Martens Place QLD

docset/winserver2016-ps/activedirectory/Get-ADOrganizationalUnit.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ For more information about the how to determine the properties for computer obje
5858
### Example 1: Get all of the OUs in a domain
5959
```powershell
6060
PS C:\> Get-ADOrganizationalUnit -Filter 'Name -like "*"' | Format-Table Name, DistinguishedName -A
61+
```
62+
```output
6163
Name DistinguishedName
6264
---- -----------------
6365
Domain Controllers OU=Domain Controllers,DC=FABRIKAM,DC=COM
@@ -84,6 +86,8 @@ This command gets all of the OUs in a domain.
8486
### Example 2: Get an OU by its distinguished name
8587
```powershell
8688
PS C:\> Get-ADOrganizationalUnit -Identity 'OU=AsiaPacific,OU=Sales,OU=UserAccounts,DC=FABRIKAM,DC=COM' | Format-Table Name,Country,PostalCode,City,StreetAddress,State -A
89+
```
90+
```output
8791
Name Country PostalCode City StreetAddress State
8892
---- ------- ---------- ---- ------------- -----
8993
AsiaPacific AU 4171 Balmoral 45 Martens Place QLD
@@ -94,6 +98,8 @@ This command gets the OU with the distinguished name OU=AsiaPacific,OU=Sales,OU=
9498
### Example 3: Get child OUs
9599
```powershell
96100
PS C:\> Get-ADOrganizationalUnit -LDAPFilter '(name=*)' -SearchBase 'OU=Sales,OU=UserAccounts,DC=FABRIKAM,DC=COM' -SearchScope OneLevel | Format-Table Name,Country,PostalCode,City,StreetAddress,State
101+
```
102+
```output
97103
Name Country PostalCode City StreetAddress State
98104
---- ------- ---------- ---- ------------- -----
99105
AsiaPacific AU 4171 Balmoral 45 Martens Place QLD

docset/winserver2019-ps/activedirectory/Get-ADOrganizationalUnit.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ For more information about the how to determine the properties for computer obje
5858
### Example 1: Get all of the OUs in a domain
5959
```powershell
6060
PS C:\> Get-ADOrganizationalUnit -Filter 'Name -like "*"' | Format-Table Name, DistinguishedName -A
61+
```
62+
```output
6163
Name DistinguishedName
6264
---- -----------------
6365
Domain Controllers OU=Domain Controllers,DC=FABRIKAM,DC=COM
@@ -84,6 +86,8 @@ This command gets all of the OUs in a domain.
8486
### Example 2: Get an OU by its distinguished name
8587
```powershell
8688
PS C:\> Get-ADOrganizationalUnit -Identity 'OU=AsiaPacific,OU=Sales,OU=UserAccounts,DC=FABRIKAM,DC=COM' | Format-Table Name,Country,PostalCode,City,StreetAddress,State -A
89+
```
90+
```output
8791
Name Country PostalCode City StreetAddress State
8892
---- ------- ---------- ---- ------------- -----
8993
AsiaPacific AU 4171 Balmoral 45 Martens Place QLD
@@ -94,6 +98,8 @@ This command gets the OU with the distinguished name OU=AsiaPacific,OU=Sales,OU=
9498
### Example 3: Get child OUs
9599
```powershell
96100
PS C:\> Get-ADOrganizationalUnit -LDAPFilter '(name=*)' -SearchBase 'OU=Sales,OU=UserAccounts,DC=FABRIKAM,DC=COM' -SearchScope OneLevel | Format-Table Name,Country,PostalCode,City,StreetAddress,State
101+
```
102+
```output
97103
Name Country PostalCode City StreetAddress State
98104
---- ------- ---------- ---- ------------- -----
99105
AsiaPacific AU 4171 Balmoral 45 Martens Place QLD

docset/winserver2022-ps/activedirectory/Get-ADOrganizationalUnit.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ For more information about the how to determine the properties for computer obje
5858
### Example 1: Get all of the OUs in a domain
5959
```powershell
6060
PS C:\> Get-ADOrganizationalUnit -Filter 'Name -like "*"' | Format-Table Name, DistinguishedName -A
61+
```
62+
```output
6163
Name DistinguishedName
6264
---- -----------------
6365
Domain Controllers OU=Domain Controllers,DC=FABRIKAM,DC=COM
@@ -84,6 +86,8 @@ This command gets all of the OUs in a domain.
8486
### Example 2: Get an OU by its distinguished name
8587
```powershell
8688
PS C:\> Get-ADOrganizationalUnit -Identity 'OU=AsiaPacific,OU=Sales,OU=UserAccounts,DC=FABRIKAM,DC=COM' | Format-Table Name,Country,PostalCode,City,StreetAddress,State -A
89+
```
90+
```output
8791
Name Country PostalCode City StreetAddress State
8892
---- ------- ---------- ---- ------------- -----
8993
AsiaPacific AU 4171 Balmoral 45 Martens Place QLD
@@ -94,6 +98,8 @@ This command gets the OU with the distinguished name OU=AsiaPacific,OU=Sales,OU=
9498
### Example 3: Get child OUs
9599
```powershell
96100
PS C:\> Get-ADOrganizationalUnit -LDAPFilter '(name=*)' -SearchBase 'OU=Sales,OU=UserAccounts,DC=FABRIKAM,DC=COM' -SearchScope OneLevel | Format-Table Name,Country,PostalCode,City,StreetAddress,State
101+
```
102+
```output
97103
Name Country PostalCode City StreetAddress State
98104
---- ------- ---------- ---- ------------- -----
99105
AsiaPacific AU 4171 Balmoral 45 Martens Place QLD

0 commit comments

Comments
 (0)