Concept: A list of reminders for PowerShell development.


Accelerators
ASCII
ColorIndex
Escape characters
LDAP Filter
Operators
Regex
Special characters
UserAccountControl


Accelerators

Accelerator.NET Class
[adsi]System.DirectoryServices.DirectoryEntry
[adsisearcher]System.DirectoryServices.DirectorySearcher
[Alias]System.Management.Automation.AliasAttribute
[AllowEmptyCollection]System.Management.Automation.AllowEmptyCollectionAttribute
[AllowEmptyString]System.Management.Automation.AllowEmptyStringAttribute
[AllowNull]System.Management.Automation.AllowNullAttribute
[array]System.Array
[bigint]System.Numerics.BigInteger
[bool]System.Boolean
[byte]System.Byte
[char]System.Char
[cimclass]Microsoft.Management.Infrastructure.CimClass
[cimconverter]Microsoft.Management.Infrastructure.CimConverter
[ciminstance]Microsoft.Management.Infrastructure.CimInstance
[cimtype]Microsoft.Management.Infrastructure.CimType
[CmdletBinding]System.Management.Automation.CmdletBindingAttribute
[cultureinfo]System.Globalization.CultureInfo
[datetime]System.DateTime
[decimal]System.Decimal
[double]System.Double
[float]System.Single
[guid]System.Guid
[hashtable]System.Collections.Hashtable
[initialsessionstate]System.Management.Automation.Runspaces.InitialSessionState
[int]System.Int32
[int16]System.Int16
[int32]System.Int32
[int64]System.Int64
[ipaddress]System.Net.IPAddress
[long]System.Int64
[mailaddress]System.Net.Mail.MailAddress
[NullString]System.Management.Automation.Language.NullString
[OutputType]System.Management.Automation.OutputTypeAttribute
[Parameter]System.Management.Automation.ParameterAttribute
[powershell]System.Management.Automation.PowerShell
[psaliasproperty]System.Management.Automation.PSAliasProperty
[pscredential]System.Management.Automation.PSCredential
[pscustomobject]System.Management.Automation.PSObject
[PSDefaultValue]System.Management.Automation.PSDefaultValueAttribute
[pslistmodifier]System.Management.Automation.PSListModifier
[psmoduleinfo]System.Management.Automation.PSModuleInfo
[psnoteproperty]System.Management.Automation.PSNoteProperty
[psobject]System.Management.Automation.PSObject
[psprimitivedictionary]System.Management.Automation.PSPrimitiveDictionary
[psscriptmethod]System.Management.Automation.PSScriptMethod
[psscriptproperty]System.Management.Automation.PSScriptProperty
[PSTypeNameAttribute]System.Management.Automation.PSTypeNameAttribute
[psvariable]System.Management.Automation.PSVariable
[psvariableproperty]System.Management.Automation.PSVariableProperty
[ref]System.Management.Automation.PSReference
[regex]System.Text.RegularExpressions.Regex
[runspace]System.Management.Automation.Runspaces.Runspace
[runspacefactory]System.Management.Automation.Runspaces.RunspaceFactory
[sbyte]System.SByte
[scriptblock]System.Management.Automation.ScriptBlock
[securestring]System.Security.SecureString
[single]System.Single
[string]System.String
[SupportsWildcards]System.Management.Automation.SupportsWildcardsAttribute
[switch]System.Management.Automation.SwitchParameter
[timespan]System.TimeSpan
[type]System.Type
[uint16]System.UInt16
[uint32]System.UInt32
[uint64]System.UInt64
[uri]System.Uri
[ValidateCount]System.Management.Automation.ValidateCountAttribute
[ValidateLength]System.Management.Automation.ValidateLengthAttribute
[ValidateNotNull]System.Management.Automation.ValidateNotNullAttribute
[ValidateNotNullOrEmpty]System.Management.Automation.ValidateNotNullOrEmptyAttribute
[ValidatePattern]System.Management.Automation.ValidatePatternAttribute
[ValidateRange]System.Management.Automation.ValidateRangeAttribute
[ValidateScript]System.Management.Automation.ValidateScriptAttribute
[ValidateSet]System.Management.Automation.ValidateSetAttribute
[version]System.Version
[void]System.Void
[wmi]System.Management.ManagementObject
[wmiclass]System.Management.ManagementClass
[wmisearcher]System.Management.ManagementObjectSearcher
[xml]System.Xml.XmlDocument

Up


ColorIndex

 

ColorIndexColourHTML
1#000000
2#FFFFFF
3#FF0000
4#00FF00
5#0000FF
6#FFFF00
7#FF00FF
8#00FFFF
9#800000
10#008000
11#000080
12#808000
13#800080
14#008080
15#C0C0C0
16#808080
17#9999FF
18#993366
19#FFFFCC
20#CCFFFF
21#660066
22#FF8080
23#0066CC
24#CCCCFF
25#000080
26#FF00FF
27#FFFF00
28#00FFFF
29#800080
30#800000
31#008080
32#0000FF
33#00CCFF
34#CCFFFF
35#CCFFCC
36#FFFF99
37#99CCFF
38#FF99CC
39#CC99FF
40#FFCC99
41#3366FF
42#33CCCC
43#99CC00
44#FFCC00
45#FF9900
46#FF6600
47#666699
48#969696
49#003366
50#339966
51#003300
52#333300
53#993300
54#993366
55#333399
56#333333

Up


Special Characters

CharacterDefinition
0Null
aAlert
bBackspace
fForm feed
nNew line
rCarriage return
tHorizontal tab
vVertical tab

Up


UserAccountControl

PropertyFlagHexadecimalDecimal
SCRIPT0x00011
ACCOUNTDISABLE0x00022
HOMEDIR_REQUIRED0x00088
LOCKOUT0x001016
PASSWD_NOTREQD0x002032
PASSWD_CANT_CHANGE0x004064
ENCRYPTED_TEXT_PWD_ALLOWED0x0080128
TEMP_DUPLICATE_ACCOUNT0x0100256
NORMAL_ACCOUNT0x0200512
INTERDOMAIN_TRUST_ACCOUNT0x08002048
WORKSTATION_TRUST_ACCOUNT0x10004096
SERVER_TRUST_ACCOUNT0x20008192
DONT_EXPIRE_PASSWORD0x1000065536
MNS_LOGON_ACCOUNT0x20000131072
SMARTCARD_REQUIRED0x40000262144
TRUSTED_FOR_DELEGATION0x80000524288
NOT_DELEGATED0x1000001048576
USE_DES_KEY_ONLY0x2000002097152
DONT_REQ_PREAUTH0x4000004194304
PASSWORD_EXPIRED0x8000008388608
TRUSTED_TO_AUTH_FOR_DELEGATION0x100000016777216
PARTIAL_SECRETS_ACCOUNT0x0400000067108864