Home

Awesome

Sharpmad

C# version of Powermad

This is not yet complete and has not been fully tested. It's also missing the following:

Temp Readme

ADIDNS Module

Sharpmad.exe ADIDNS -Action new -Node test

ActionDescription
AddACEAdd ACE to node.
DisableTombstone a node.
GetDACLGet node or zone DACL.
GetOwnerGet node owner.
GetAttributeGet node attribute value.
GetTombsoneGet node tombstone status.
GetZoneGet zone partition location.
NewAdd a node.
GetAttributeSet node attribute value.
SetOwnerSet node owner.
RemoveRemove a node.
RenameRename a node.
RemoveACERemove ACE from node.

MachineAccountQuota Module

Sharpmad.exe MAQ -Action new -MachineAccount test -MachinePassword password

ActionDescription
AgentSmithRecursive machine account creator.
DisableDisable a machine account.
GetAttributeGet machine account attribute value.
GetCreatorGet all machine account creators.
NewAdd a machine account.
RemoveRemove a machine account (access required).
SetAttributeGet machine account attribute value.

Parameters

Common Parameters

ParameterDescription
AppendSwitch: Append an attribute value rather than overwriting.
AttributeLDAP attribute to get or set.
ClearSwitch: Clear an attribute value.
DistinguishedNameDistinguished name to use. Do not include the ADIDNS node or MachineAccount name.
DomainTargeted domain in DNS format.
DomainControllerDomain controller to target. This parameter is mandatory on a non-domain attached system.
UsernameLDAP username in either domain\username or UPN format.
VerboseSwitch: Verbose output.
ValueAttribute value.
PasswordLDAP password.

ADIDNS Parameters

ParameterDescription
AccessAccess for ACE.
AccessTypeAllow or Deny for the ACE.
DataDNS record data.
ForestAD forest.
NodeDNS record name.
NodeNewNew node name for renames.
PartitionAD partition where the zone is stored.
PrincipalACE principal.
PreferenceMX record preference.
PrioritySRV record priority.
SOASerialNumberSOA serial number that will be incremented by 1.
StaticSwitch: Create a static record.
TombstoneSwitch: Set the tombstone attribute to true upon node creation.
TTLDNS record TTL.
TypeDNS record type. (A, AAAA, CNAME, DNAME, NS, MX, PTR, SRV, TXT)
WeightSRV record weight.
ZoneADIDNS zone.

MachineAccountQuota Parameters

ParameterDescription
ContainerAD container.
MachineAccountMachine account name.
MachinePasswordMachine account password.
RandomSwitch: Create a machine account with a random password.