You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/active-directory/users-groups-roles/groups-settings-cmdlets.md
+51-15Lines changed: 51 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,15 +74,15 @@ These steps create settings at directory level, which apply to all Office 365 gr
74
74
```
75
75
6. You can read the values using:
76
76
77
-
```powershell
77
+
```powershell
78
78
$Setting.Values
79
79
```
80
80
## Update settings at the directory level
81
81
To update the value for UsageGuideLinesUrl in the setting template, simply edit the URL with Step 4 above, then perform Step 5 to set the new value.
82
82
83
83
To remove the value of UsageGuideLinesUrl, edit the URL to be an empty string using Step 4 above:
84
84
85
-
```powershell
85
+
```powershell
86
86
$Setting["UsageGuidelinesUrl"] = ""
87
87
```
88
88
Then perform Step 5 to set the new value.
@@ -108,7 +108,7 @@ Here are the settings defined in the Group.Unified SettingsTemplate. Unless othe
108
108
109
109
## Example: Configure Guest policy for groups at the directory level
110
110
1. Get all the setting templates:
111
-
```powershell
111
+
```powershell
112
112
Get-AzureADDirectorySettingTemplate
113
113
```
114
114
2. To set guest policy for groups at the directory level, you need Group.Unified template
@@ -131,17 +131,17 @@ Here are the settings defined in the Group.Unified SettingsTemplate. Unless othe
131
131
```
132
132
6. You can read the values using:
133
133
134
-
```powershell
134
+
```powershell
135
135
$Setting.Values
136
136
```
137
137
138
138
## Read settings at the directory level
139
139
140
140
If you know the name of the setting you want to retrieve, you can use the below cmdlet to retrieve the current settings value. In this example, we're retrieving the value for a setting named "UsageGuidelinesUrl."
141
141
142
-
```powershell
143
-
(Get-AzureADDirectorySetting).Values | Where-Object -Property Name -Value UsageGuidelinesUrl -EQ
144
-
```
142
+
```powershell
143
+
(Get-AzureADDirectorySetting).Values | Where-Object -Property Name -Value UsageGuidelinesUrl -EQ
144
+
```
145
145
These steps read settings at directory level, which apply to all Office groups in the directory.
146
146
147
147
1. Read all existing directory settings:
@@ -184,11 +184,11 @@ These steps read settings at directory level, which apply to all Office groups i
184
184
185
185
## Remove settings at the directory level
186
186
This step removes settings at directory level, which apply to all Office groups in the directory.
0 commit comments