mirror of
https://github.com/MichaelGrafnetter/DSInternals
synced 2025-05-05 09:18:41 +00:00
19 lines
476 B
C#
19 lines
476 B
C#
namespace DSInternals.PowerShell.Commands
|
|
{
|
|
using DSInternals.Common.Data;
|
|
using System.Management.Automation;
|
|
|
|
[Cmdlet(VerbsCommon.Get, "ADSIAccount")]
|
|
[OutputType(typeof(DSAccount))]
|
|
public class GetADSIAccountCommand : ADSICommandBase
|
|
{
|
|
|
|
protected override void ProcessRecord()
|
|
{
|
|
foreach(var account in this.Client.GetAccounts())
|
|
{
|
|
this.WriteObject(account);
|
|
}
|
|
}
|
|
}
|
|
} |