Naming is hard so look at this list when you will name things: Approved Verbs for Windows PowerShell Commands
Posted by jpluimers on 2020/04/29
Naming is number # in the Programmers’ hardest tasks so when you have to name things, read [WayBack] Approved Verbs for Windows PowerShell Commands.
It is guidance on naming schemes and lists of appropriate nouns and verbs to use in names.
–jeroen
From twitter:
$PARAMETERS = get-command | where-object {$_.CommandType -eq "Cmdlet" } | select Parameters $PARAMETER_KEYS = foreach ($P in $PARAMETERS) { foreach ($K in $($P.Parameters | select keys)) { $K.Keys } } $PARAMETER_KEYS | sort-object -unique
Resulting in this list with PowerShell 5.1.18362.752 on Windows 10.0.18363.815:
AccessMode Action Activity Add AddToHistoryHandler Adjust After Alias AliasDefinitions AliasesToExport All AllMatches AllowClobber AllowRedirection Amended AnsiEscapeTimeout Any AppDomainName Append AppendPath ApplicationArguments ApplicationBase ApplicationName ArgumentList Arguments As AsBaseObject AsCustomObject AsHashTable AsHtml AsJob AsSecureString AssembliesToLoad Assembly AssemblyName AsString Attachments Attributes Authentication Author Authority AutoRemoveJob AutoSize Average BackgroundColor BaseDirectory Bcc Before Begin BellStyle BinaryPathName BindingVariable Body BodyAsHtml Bound BreakAll Breakpoint BriefDescription BufferSize CancelTimeout CanonicalName CaseSensitive Category CategoryActivity CategoryReason CategoryResourceFile CategoryTargetName CategoryTargetType Cc CContains CEQ Certificate CertificateThumbprint CGE CGT Character ChildJobState ChildPath Chord CimNamespace CimResourceUri CimSession CIn Class CLE CLike ClrVersion CLT CMatch Cmdlet CmdletsToExport CNE CNotContains CNotIn CNotLike CNotMatch CodeDomProvider Colors Column Command CommandLine CommandName CommandType CommandValidationHandler ComObject CompanyName CompatiblePSEditions CompilerParameters Completed CompletionQueryItems Component Compress ComputerName ConfigurationName ConfigurationTypeName Confirm ConnectionUri Container ContainerId Contains Content ContentType Context ContinuationPrompt Copyright Count Credential CssUri Culture CurrentOperation Date Day Days DcomAuthentication Debug Debugger DefaultCommandPrefix DefaultDisplayProperty DefaultDisplayPropertySet DefaultKeyPropertySet Definition DefinitionName DefinitionPath Delay Delimiter DeliveryNotificationOption DependentServices DependsOn Depth Descending Description Destination DestinationPath Detailed DifferenceObject DingDuration DingTone Directory DirectRead DisableKeepAlive DisableNameChecking DisplayError DisplayHint DisplayName DomainCredential DomainName DotNetFrameworkVersion Drive DriveLetter DscResourcesToExport EditMode EnableAllPrivileges EnableNetworkAccess Encoding End EntryType EnvironmentVariables EQ ErrorAction ErrorId ErrorPopup ErrorRecord ErrorVariable EventArguments EventId EventIdentifier EventName Example Examples Exception Exclude ExcludeDifferent ExcludeProperty ExecutionPolicy Expand ExpandProperty Expression ExtraPromptLineCount File FileList FileName FilePath FileVersionInfo Filter FilterScript First For Force ForegroundColor Format FormatsToProcess FormatTypeName Forward Fragment From FromSession Full FullyQualifiedModule FullyQualifiedName Function Functionality FunctionDefinitions FunctionsToExport GE Global GroupBy GroupManagedServiceAccount GT Guid HasMoreData Head Header Headers Height HelpInfoUri Hidden HideComputerName HideTableHeaders HistoryNoDuplicates HistorySavePath HistorySaveStyle HistorySearchCaseSensitive HistorySearchCursorMovesToEnd HostProcessInfo Hour Hours IconUri Id IdleTimeout IdleTimeoutSec IgnoreWarnings IgnoreWhiteSpace Impersonation In Include IncludeChildJob IncludeEqual IncludeExtent IncludePortInSPN IncludeScriptBlock IncludeTotalCount IncludeUserName Independent Index InDisconnectedSession InFile InformationAction InformationVariable InheritPropertySerializationSet InitializationScript InputObject InstanceId Is IsAbsolute IsNot IsValid ItemType Job JobName Keep Language LanguageMode Last LastStatus LE Leaf LicenseUri Like Line List ListAvailable ListenerOption ListImported LiteralName LiteralPath LoadUserProfile LocalCredential Locale Location LogName LT Match MaxConcurrentCommandsPerSession MaxConcurrentUsers MaxConnectionRetryCount MaxIdleTimeoutSec Maximum MaximumHistoryCount MaximumKillRingCount MaximumReceivedDataSizePerCommand MaximumReceivedDataSizePerCommandMB MaximumReceivedObjectSize MaximumReceivedObjectSizeMB MaximumRedirection MaximumSize MaximumVersion MaxMemoryPerSessionMB MaxProcessesPerSession MaxSessions MaxSessionsPerUser MaxTriggerCount MemberDefinition MemberName MemberType Message MessageData MessageResourceFile Method Millisecond Milliseconds Minimum MinimumVersion Minute Minutes Mode Module ModuleInfo ModuleList ModulesToImport ModuleVersion Month MountUserDrive Name Namespace Native NE NestedModules NewerThan Newest NewName NoClobber NoCommonParameter NoCompression NoElement NoEncryption NoEnumerate NoMachineProfile NoNewline NoNewScope NoNewWindow NoQualifier NoRecurse NoServiceRestart NotContains NotePropertyMembers NotePropertyName NotePropertyValue NotIn NotLike NotMatch NoTypeInformation Noun NoWait Object Off OlderThan Online OnType OpenTimeout OperationTimeout Option Options OUPath OutBuffer OutFile OutputAssembly OutputBufferingMode OutputMode OutputModule OutputType OutTarget OutVariable OverflowAction Paging Parameter ParameterName ParameterResourceFile ParameterType Parent ParentId PassThru Path PathType Pattern PercentComplete Persist PipelineVariable Port PostContent PowerShellHostName PowerShellHostVersion PowerShellVersion PreContent Prefix PrependPath Priority PrivateData Process ProcessIdleTimeoutSec ProcessName ProcessorArchitecture ProjectUri Prompt PromptText Property PropertyNames PropertySerializationSet PropertyType Protocol Proxy ProxyAccessType ProxyAuthentication ProxyCredential ProxyUseDefaultCredentials PSDrive PSEdition PSHost PSProvider PSSession PSVersion PutType Qualifier Query Quiet Raw RawData ReadCount ReadOnly RecommendedAction Recurse RedirectStandardError RedirectStandardInput RedirectStandardOutput ReferencedAssemblies ReferenceObject Refresh Registered Relative ReleaseNotes RemainingScripts Remove RemoveFileListener RemoveListener Repair RepeatHeader Replace RequiredAssemblies RequiredGroups RequiredModules RequiredServices RequiredVersion Resolve Restart RestorePoint RestorePointType RetentionDays ReturnResult Role RoleDefinitions RollbackPreference Root RootModule RunAs32 RunAsAdministrator RunAsCredential RunAsVirtualAccount RunAsVirtualAccountGroups Runspace RunspaceId RunspaceInstanceId RunspaceName SchemaVersion Scope Script ScriptBlock ScriptsToProcess Second Seconds SecondsRemaining SecondValue SecurityDescriptorSddl Sender Separator SerializationDepth SerializationMethod Server Session SessionName SessionOption SessionType SessionTypeOption SessionVariable SetSeed ShowCommandInfo ShowError ShowSecurityDescriptorUI ShowToolTips ShowWindow SimpleMatch Skip SkipCACheck SkipCNCheck SkipLast SkipNetworkProfileCheck SkipRevocationCheck SmtpServer Source SourceId SourceIdentifier SourcePath Stack StackName Start StartupScript StartupType State Static Status Step Stream Strict StringData StringSerializationSource Subject SubscriptionId Sum SupportedCommand SupportEvent SyncWindow Syntax System Tags Tail TargetObject TargetTypeForDeserialization TemplateContent TemplateFile TextFormatType ThreadApartmentState ThreadOptions ThrottleLimit Timeout TimeoutSec TimeToLive Title To ToSession TotalCount Trace TransactedScript Transcript TranscriptDirectory TransferEncoding TransportOption Type TypeAdapter TypeConverter TypeData TypeDefinition TypeName TypesToProcess UFormat UICulture Unbound Unique UnjoinDomainCredential Unsecure UpdateTemplate Uri UseBasicParsing UseCulture UseDefaultCredential UseDefaultCredentials UseNewEnvironment UserAgent UserDriveMaximumSize UserName UseSharedProcess UseSSL UseTransaction UseUTF16 UsingNamespace Value ValueOnly Variable VariableDefinitions VariablesToExport Verb Verbose Version View ViMode ViModeIndicator Visibility VisibleAliases VisibleCmdlets VisibleExternalCommands VisibleFunctions VisibleProviders VMId VMName Wait WarningAction WarningVariable WebSession WhatIf Width WindowStyle Word WordDelimiters WorkgroupName WorkingDirectory Wrap WriteEvents WriteJobInResults WsmanAuthentication Xml XPath Year
Leave a Reply