не работает.
я выгружаю командой:
Get-ADUser -filter * -properties memberof,enabled,PasswordLastSet|format-list name,samaccountname,enabled,PasswordLastSet,memberof > accounts.txt
пробую так:
PS C:\Windows\system32> Get-ADUser -filter * -properties memberof,enabled,(where{$_.enabled -eq $false}),PasswordLastSet|format-list name,samaccountname,enabled,active,PasswordLastSet,memberof > c:\accounts.txt
Get-ADUser : Cannot validate argument on parameter 'Properties'. The argument is null, empty, or an element of the argument collection contains a null value. Supply a collection that does not contain any null values and then try the command again.
At line:1 char:33
+ Get-ADUser -filter * -properties <<<< memberof,enabled,(where{$_.enabled -eq $false}),PasswordLastSet|format-list name,samaccountname,enabled,active,PasswordLastSet,memberof > c:\accounts.txt
+ CategoryInfo : InvalidData: ( [Get-ADUser], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.ActiveDirectory.Management.Commands.GetADUser
меня интересуют возможные -properties
их смотреть в АД? а где именно?
я выгружаю командой:
Get-ADUser -filter * -properties memberof,enabled,PasswordLastSet|format-list name,samaccountname,enabled,PasswordLastSet,memberof > accounts.txt
пробую так:
PS C:\Windows\system32> Get-ADUser -filter * -properties memberof,enabled,(where{$_.enabled -eq $false}),PasswordLastSet|format-list name,samaccountname,enabled,active,PasswordLastSet,memberof > c:\accounts.txt
Get-ADUser : Cannot validate argument on parameter 'Properties'. The argument is null, empty, or an element of the argument collection contains a null value. Supply a collection that does not contain any null values and then try the command again.
At line:1 char:33
+ Get-ADUser -filter * -properties <<<< memberof,enabled,(where{$_.enabled -eq $false}),PasswordLastSet|format-list name,samaccountname,enabled,active,PasswordLastSet,memberof > c:\accounts.txt
+ CategoryInfo : InvalidData: ( [Get-ADUser], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.ActiveDirectory.Management.Commands.GetADUser
меня интересуют возможные -properties
их смотреть в АД? а где именно?