mirror of
https://github.com/MichaelGrafnetter/DSInternals
synced 2025-04-26 04:48:34 +00:00
35 lines
835 B
C#
35 lines
835 B
C#
namespace DSInternals.PowerShell.Commands
|
|
{
|
|
using System;
|
|
using System.Management.Automation;
|
|
using DSInternals.Common.Data;
|
|
|
|
[Cmdlet(VerbsData.ConvertFrom, "ADManagedPasswordBlob")]
|
|
[OutputType(typeof(ManagedPassword))]
|
|
public class ConvertFromADManagedPasswordBlobCommand : PSCmdlet
|
|
{
|
|
#region Parameters
|
|
|
|
[Parameter(
|
|
Mandatory = true,
|
|
Position = 0
|
|
)]
|
|
[Alias("msDS-ManagedPassword", "ManagedPassword", "ManagedPasswordBlob")]
|
|
public byte[] Blob
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
#endregion Parameters
|
|
|
|
#region Cmdlet Overrides
|
|
|
|
protected override void ProcessRecord()
|
|
{
|
|
this.WriteObject(new ManagedPassword(this.Blob));
|
|
}
|
|
|
|
#endregion Cmdlet Overrides
|
|
}
|
|
} |