Skip to content

Commit fc74dae

Browse files
Fix
1 parent 3f945af commit fc74dae

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ActiveDirectory/Users/Set-ADUserProperties.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ try{
216216
'Filter' = {(SamAccountName -eq $Username) -or (DisplayName -eq $Username) -or (DistinguishedName -eq $Username) -or (UserPrincipalName -eq $Username)}
217217
'SearchBase' = $OUPath
218218
'SearchScope' = $SearchScope
219+
'Properties' = '*'
219220
}
220221
if($null -ne $DomainAccount){
221222
$cmdArgs.Add("Credential", $DomainAccount)

ActiveDirectory/Users/Set-ADUserPropertiesDemo.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ try{
209209
'Filter' = {(SamAccountName -eq $Username) -or (DisplayName -eq $Username) -or (DistinguishedName -eq $Username) -or (UserPrincipalName -eq $Username)}
210210
'SearchBase' = $OUPath
211211
'SearchScope' = $SearchScope
212+
'Properties' = '*'
212213
}
213214
if($null -ne $DomainAccount){
214215
$cmdArgs.Add("Credential", $DomainAccount)

0 commit comments

Comments
 (0)