From 6cae0dd18bda3ad8efd60404c2d05b402cc4a785 Mon Sep 17 00:00:00 2001 From: Shawn Melton <11204251+wsmelton@users.noreply.github.com> Date: Thu, 6 Jan 2022 04:41:37 -0600 Subject: [PATCH] Command page associated Tag cleanup (#8041) --- .vscode/settings.json | 56 ++++++++++- functions/Add-DbaAgDatabase.ps1 | 7 +- functions/Add-DbaAgListener.ps1 | 3 +- functions/Add-DbaAgReplica.ps1 | 3 +- functions/Add-DbaComputerCertificate.ps1 | 2 +- functions/Add-DbaDbRoleMember.ps1 | 2 +- functions/Add-DbaExtendedProperty.ps1 | 2 +- functions/Add-DbaServerRoleMember.ps1 | 2 +- functions/Backup-DbaComputerCertificate.ps1 | 2 +- functions/Backup-DbaDbCertificate.ps1 | 2 +- functions/Backup-DbaDbMasterKey.ps1 | 2 +- functions/Backup-DbaServiceMasterKey.ps1 | 2 +- functions/Clear-DbaConnectionPool.ps1 | 2 +- functions/Clear-DbaLatchStatistics.ps1 | 2 +- functions/Clear-DbaPlanCache.ps1 | 2 +- functions/Clear-DbaWaitStatistics.ps1 | 2 +- functions/Connect-DbaInstance.ps1 | 2 +- functions/ConvertTo-DbaDataTable.ps1 | 2 +- functions/ConvertTo-DbaTimeline.ps1 | 4 +- functions/Copy-DbaDbTableData.ps1 | 2 +- functions/Copy-DbaDbViewData.ps1 | 2 +- functions/Disable-DbaAgHadr.ps1 | 2 +- .../Disable-DbaForceNetworkEncryption.ps1 | 2 +- functions/Disable-DbaHideInstance.ps1 | 2 +- functions/Disable-DbaTraceFlag.ps1 | 2 +- functions/Dismount-DbaDatabase.ps1 | 2 +- functions/Enable-DbaAgHadr.ps1 | 2 +- .../Enable-DbaForceNetworkEncryption.ps1 | 2 +- functions/Enable-DbaTraceFlag.ps1 | 2 +- functions/Expand-DbaDbLogFile.ps1 | 4 +- functions/Export-DbaDacPackage.ps1 | 2 +- functions/Export-DbaExecutionPlan.ps1 | 2 +- functions/Find-DbaAgentJob.ps1 | 2 +- functions/Find-DbaBackup.ps1 | 2 +- functions/Find-DbaCommand.ps1 | 2 +- functions/Find-DbaDatabase.ps1 | 2 +- functions/Find-DbaDbDisabledIndex.ps1 | 2 +- functions/Find-DbaDbDuplicateIndex.ps1 | 2 +- functions/Find-DbaDbGrowthEvent.ps1 | 2 +- functions/Find-DbaDbUnusedIndex.ps1 | 2 +- functions/Find-DbaInstance.ps1 | 4 +- functions/Find-DbaLoginInGroup.ps1 | 2 +- functions/Find-DbaOrphanedFile.ps1 | 2 +- functions/Find-DbaSimilarTable.ps1 | 2 +- functions/Find-DbaStoredProcedure.ps1 | 2 +- functions/Find-DbaTrigger.ps1 | 2 +- functions/Find-DbaUserObject.ps1 | 2 +- functions/Find-DbaView.ps1 | 2 +- functions/Get-DbaAgBackupHistory.ps1 | 2 +- functions/Get-DbaAgDatabase.ps1 | 2 +- functions/Get-DbaAgHadr.ps1 | 2 +- functions/Get-DbaAgListener.ps1 | 2 +- functions/Get-DbaAgReplica.ps1 | 4 +- functions/Get-DbaAgentAlert.ps1 | 2 +- functions/Get-DbaAgentJob.ps1 | 2 +- functions/Get-DbaAgentJobCategory.ps1 | 2 +- functions/Get-DbaAgentJobHistory.ps1 | 2 +- functions/Get-DbaAgentJobStep.ps1 | 2 +- functions/Get-DbaAgentLog.ps1 | 2 +- functions/Get-DbaAgentProxy.ps1 | 2 +- functions/Get-DbaAvailabilityGroup.ps1 | 2 +- functions/Get-DbaAvailableCollation.ps1 | 6 +- functions/Get-DbaBackupDevice.ps1 | 2 +- functions/Get-DbaBuild.ps1 | 4 +- functions/Get-DbaClientAlias.ps1 | 2 +- functions/Get-DbaClientProtocol.ps1 | 2 +- functions/Get-DbaComputerCertificate.ps1 | 2 +- functions/Get-DbaComputerSystem.ps1 | 2 +- functions/Get-DbaCpuRingBuffer.ps1 | 2 +- functions/Get-DbaCpuUsage.ps1 | 2 +- functions/Get-DbaCredential.ps1 | 2 +- functions/Get-DbaCustomError.ps1 | 2 +- functions/Get-DbaDbAsymmetricKey.ps1 | 2 +- functions/Get-DbaDbCertificate.ps1 | 2 +- functions/Get-DbaDbEncryption.ps1 | 2 +- functions/Get-DbaDbFile.ps1 | 2 +- functions/Get-DbaDbFileGroup.ps1 | 4 +- functions/Get-DbaDbFileGrowth.ps1 | 3 +- functions/Get-DbaDbFileMapping.ps1 | 4 +- functions/Get-DbaDbForeignKey.ps1 | 2 +- functions/Get-DbaDbLogSpace.ps1 | 2 +- functions/Get-DbaDbMail.ps1 | 2 +- functions/Get-DbaDbMailAccount.ps1 | 2 +- functions/Get-DbaDbMailConfig.ps1 | 2 +- functions/Get-DbaDbMailHistory.ps1 | 2 +- functions/Get-DbaDbMailLog.ps1 | 2 +- functions/Get-DbaDbMailProfile.ps1 | 2 +- functions/Get-DbaDbMailServer.ps1 | 2 +- functions/Get-DbaDbMasterKey.ps1 | 2 +- functions/Get-DbaDbOrphanUser.ps1 | 2 +- functions/Get-DbaDbRecoveryModel.ps1 | 6 +- functions/Get-DbaDbRole.ps1 | 2 +- functions/Get-DbaDbRoleMember.ps1 | 2 +- functions/Get-DbaDbSchema.ps1 | 2 +- functions/Get-DbaDbServiceBrokerService.ps1 | 4 +- functions/Get-DbaDbSynonym.ps1 | 2 +- functions/Get-DbaDbUdf.ps1 | 2 +- functions/Get-DbaDbUser.ps1 | 2 +- functions/Get-DbaDbUserDefinedTableType.ps1 | 2 +- functions/Get-DbaDbView.ps1 | 2 +- functions/Get-DbaDbVirtualLogFile.ps1 | 2 +- functions/Get-DbaDefaultPath.ps1 | 2 +- functions/Get-DbaDependency.ps1 | 2 +- functions/Get-DbaDeprecatedFeature.ps1 | 2 +- functions/Get-DbaDiskSpace.ps1 | 2 +- functions/Get-DbaDump.ps1 | 2 +- functions/Get-DbaErrorLog.ps1 | 2 +- functions/Get-DbaErrorLogConfig.ps1 | 2 +- functions/Get-DbaEstimatedCompletionTime.ps1 | 2 +- functions/Get-DbaExtendedProperty.ps1 | 2 +- functions/Get-DbaExternalProcess.ps1 | 2 +- functions/Get-DbaFeature.ps1 | 2 +- functions/Get-DbaFile.ps1 | 2 +- functions/Get-DbaFirewallRule.ps1 | 4 +- functions/Get-DbaForceNetworkEncryption.ps1 | 4 +- functions/Get-DbaHelpIndex.ps1 | 2 +- functions/Get-DbaInstalledPatch.ps1 | 4 +- functions/Get-DbaInstanceInstallDate.ps1 | 2 +- functions/Get-DbaInstanceProperty.ps1 | 2 +- functions/Get-DbaInstanceProtocol.ps1 | 2 +- functions/Get-DbaInstanceTrigger.ps1 | 2 +- functions/Get-DbaInstanceUserOption.ps1 | 2 +- functions/Get-DbaIoLatency.ps1 | 2 +- functions/Get-DbaKbUpdate.ps1 | 2 +- functions/Get-DbaLastGoodCheckDb.ps1 | 2 +- functions/Get-DbaLinkedServerLogin.ps1 | 2 +- functions/Get-DbaLocaleSetting.ps1 | 2 +- functions/Get-DbaLogin.ps1 | 2 +- functions/Get-DbaManagementObject.ps1 | 2 +- functions/Get-DbaMemoryCondition.ps1 | 3 +- functions/Get-DbaMemoryUsage.ps1 | 2 +- functions/Get-DbaModule.ps1 | 2 +- functions/Get-DbaMsdtc.ps1 | 2 +- functions/Get-DbaNetworkCertificate.ps1 | 2 +- functions/Get-DbaNetworkConfiguration.ps1 | 6 +- functions/Get-DbaOleDbProvider.ps1 | 2 +- functions/Get-DbaOpenTransaction.ps1 | 2 +- functions/Get-DbaOperatingSystem.ps1 | 2 +- functions/Get-DbaPageFileSetting.ps1 | 2 +- functions/Get-DbaPermission.ps1 | 2 +- functions/Get-DbaPlanCache.ps1 | 2 +- functions/Get-DbaPowerPlan.ps1 | 2 +- functions/Get-DbaPrivilege.ps1 | 2 +- functions/Get-DbaProcess.ps1 | 2 +- functions/Get-DbaProductKey.ps1 | 2 +- functions/Get-DbaQueryExecutionTime.ps1 | 2 +- functions/Get-DbaRegistryRoot.ps1 | 10 +- functions/Get-DbaSchemaChangeHistory.ps1 | 2 +- functions/Get-DbaServerRole.ps1 | 2 +- functions/Get-DbaServerRoleMember.ps1 | 2 +- functions/Get-DbaSpinLockStatistic.ps1 | 2 +- functions/Get-DbaSsisExecutionHistory.ps1 | 8 +- functions/Get-DbaStartupParameter.ps1 | 2 +- functions/Get-DbaTcpPort.ps1 | 2 +- functions/Get-DbaTopResourceUsage.ps1 | 2 +- functions/Get-DbaTrace.ps1 | 2 +- functions/Get-DbaTraceFlag.ps1 | 2 +- functions/Get-DbaUptime.ps1 | 2 +- functions/Get-DbaUserPermission.ps1 | 4 +- functions/Get-DbaWaitResource.ps1 | 2 +- functions/Get-DbaWaitStatistic.ps1 | 2 +- functions/Get-DbaWaitingTask.ps1 | 2 +- functions/Get-DbaWindowsLog.ps1 | 2 +- functions/Grant-DbaAgPermission.ps1 | 2 +- functions/Import-DbaCsv.ps1 | 4 +- functions/Install-DbaInstance.ps1 | 6 +- functions/Invoke-DbaAdvancedInstall.ps1 | 7 +- functions/Invoke-DbaAdvancedUpdate.ps1 | 7 +- functions/Invoke-DbaAgFailover.ps1 | 2 +- functions/Invoke-DbaBalanceDataFiles.ps1 | 12 +-- functions/Invoke-DbaCycleErrorLog.ps1 | 2 +- functions/Invoke-DbaDbDataGenerator.ps1 | 2 +- functions/Invoke-DbaDbDecryptObject.ps1 | 4 +- functions/Invoke-DbaDbPiiScan.ps1 | 2 +- functions/Invoke-DbaDbTransfer.ps1 | 54 ++--------- functions/Invoke-DbaQuery.ps1 | 2 +- functions/Join-DbaAvailabilityGroup.ps1 | 2 +- .../utility => functions}/Join-DbaPath.ps1 | 13 ++- functions/Measure-DbaDbVirtualLogFile.ps1 | 2 +- functions/Measure-DbaDiskSpaceRequirement.ps1 | 2 +- functions/Mount-DbaDatabase.ps1 | 2 +- functions/New-DbaAvailabilityGroup.ps1 | 4 +- functions/New-DbaClientAlias.ps1 | 2 +- functions/New-DbaComputerCertificate.ps1 | 4 +- ...w-DbaComputerCertificateSigningRequest.ps1 | 13 ++- functions/New-DbaCredential.ps1 | 2 +- functions/New-DbaCustomError.ps1 | 2 +- functions/New-DbaDacOption.ps1 | 2 +- functions/New-DbaDacProfile.ps1 | 2 +- functions/New-DbaDbAsymmetricKey.ps1 | 6 +- functions/New-DbaDbCertificate.ps1 | 2 +- functions/New-DbaDbFileGroup.ps1 | 2 +- functions/New-DbaDbMasterKey.ps1 | 2 +- functions/New-DbaDbRole.ps1 | 6 +- functions/New-DbaDbSchema.ps1 | 2 +- functions/New-DbaDbTransfer.ps1 | 53 ++--------- functions/New-DbaDirectory.ps1 | 2 +- functions/New-DbaFirewallRule.ps1 | 2 +- functions/New-DbaLinkedServer.ps1 | 2 +- functions/New-DbaLinkedServerLogin.ps1 | 2 +- functions/New-DbaLogin.ps1 | 2 +- functions/New-DbaScriptingOption.ps1 | 2 +- functions/New-DbaServerRole.ps1 | 6 +- functions/New-DbaServiceMasterKey.ps1 | 2 +- functions/New-DbaSqlParameter.ps1 | 2 +- functions/Publish-DbaDacPackage.ps1 | 2 +- functions/Read-DbaAuditFile.ps1 | 2 +- functions/Read-DbaTraceFile.ps1 | 2 +- functions/Read-DbaTransactionLog.ps1 | 2 +- functions/Remove-DbaAgDatabase.ps1 | 2 +- functions/Remove-DbaAgListener.ps1 | 2 +- functions/Remove-DbaAgReplica.ps1 | 2 +- functions/Remove-DbaAgentAlert.ps1 | 2 +- functions/Remove-DbaAgentProxy.ps1 | 2 +- functions/Remove-DbaAvailabilityGroup.ps1 | 2 +- functions/Remove-DbaBackup.ps1 | 2 +- functions/Remove-DbaClientAlias.ps1 | 9 +- functions/Remove-DbaComputerCertificate.ps1 | 4 +- functions/Remove-DbaCredential.ps1 | 2 +- functions/Remove-DbaCustomError.ps1 | 2 +- functions/Remove-DbaDatabase.ps1 | 2 +- functions/Remove-DbaDatabaseSafely.ps1 | 2 +- functions/Remove-DbaDbAsymmetricKey.ps1 | 2 +- functions/Remove-DbaDbCertificate.ps1 | 2 +- functions/Remove-DbaDbData.ps1 | 2 +- functions/Remove-DbaDbFileGroup.ps1 | 2 +- functions/Remove-DbaDbMasterKey.ps1 | 3 +- functions/Remove-DbaDbOrphanUser.ps1 | 2 +- functions/Remove-DbaDbRole.ps1 | 2 +- functions/Remove-DbaDbRoleMember.ps1 | 2 +- functions/Remove-DbaDbSchema.ps1 | 2 +- functions/Remove-DbaDbTableData.ps1 | 12 +-- functions/Remove-DbaDbUser.ps1 | 2 +- functions/Remove-DbaFirewallRule.ps1 | 2 +- functions/Remove-DbaLinkedServer.ps1 | 2 +- functions/Remove-DbaNetworkCertificate.ps1 | 4 +- functions/Remove-DbaServerRole.ps1 | 2 +- functions/Remove-DbaServerRoleMember.ps1 | 2 +- functions/Remove-DbaTrace.ps1 | 2 +- functions/Repair-DbaInstanceName.ps1 | 2 +- functions/Reset-DbaAdmin.ps1 | 2 +- functions/Resolve-DbaNetworkName.ps1 | 2 +- .../utility => functions}/Resolve-DbaPath.ps1 | 93 +++++++++---------- functions/Restore-DbaDbCertificate.ps1 | 2 +- functions/Resume-DbaAgDbDataMovement.ps1 | 2 +- functions/Revoke-DbaAgPermission.ps1 | 2 +- functions/Save-DbaKbUpdate.ps1 | 4 +- functions/Set-DbaAgListener.ps1 | 2 +- functions/Set-DbaAgReplica.ps1 | 2 +- functions/Set-DbaAvailabilityGroup.ps1 | 4 +- functions/Set-DbaDbFileGroup.ps1 | 2 +- functions/Set-DbaDbFileGrowth.ps1 | 2 +- functions/Set-DbaDbSchema.ps1 | 2 +- functions/Set-DbaDefaultPath.ps1 | 2 +- functions/Set-DbaErrorLogConfig.ps1 | 2 +- functions/Set-DbaExtendedProperty.ps1 | 4 +- functions/Set-DbaMaxDop.ps1 | 2 +- functions/Set-DbaNetworkCertificate.ps1 | 4 +- functions/Set-DbaNetworkConfiguration.ps1 | 2 +- functions/Set-DbaPowerPlan.ps1 | 2 +- functions/Set-DbaPrivilege.ps1 | 2 +- functions/Set-DbaTcpPort.ps1 | 5 +- functions/Show-DbaInstanceFileSystem.ps1 | 2 +- functions/Start-DbaTrace.ps1 | 2 +- functions/Stop-DbaExternalProcess.ps1 | 2 +- functions/Stop-DbaProcess.ps1 | 2 +- functions/Stop-DbaTrace.ps1 | 2 +- functions/Suspend-DbaAgDbDataMovement.ps1 | 2 +- functions/Sync-DbaAvailabilityGroup.ps1 | 2 +- functions/Test-DbaBuild.ps1 | 2 +- .../Test-DbaComputerCertificateExpiration.ps1 | 2 +- functions/Test-DbaConnection.ps1 | 2 +- functions/Test-DbaDbCompression.ps1 | 2 +- functions/Test-DbaDbDataGeneratorConfig.ps1 | 2 +- functions/Test-DbaDbQueryStore.ps1 | 2 +- functions/Test-DbaDeprecatedFeature.ps1 | 2 +- functions/Test-DbaDiskAlignment.ps1 | 36 +++---- functions/Test-DbaDiskAllocation.ps1 | 2 +- functions/Test-DbaDiskSpeed.ps1 | 2 +- functions/Test-DbaInstanceName.ps1 | 2 +- functions/Test-DbaLoginPassword.ps1 | 2 +- functions/Test-DbaMaxDop.ps1 | 2 +- functions/Test-DbaPath.ps1 | 2 +- functions/Test-DbaPowerPlan.ps1 | 2 +- functions/Test-DbaWindowsLogin.ps1 | 2 +- functions/Update-DbaBuildReference.ps1 | 2 +- functions/Update-DbaInstance.ps1 | 2 +- functions/Write-DbaDbTableData.ps1 | 2 +- .../New-DbaTeppCompletionResult.ps1 | 2 +- tests/Join-DbaPath.Tests.ps1 | 14 +++ tests/Resolve-DbaPath.Tests.ps1 | 14 +++ 291 files changed, 529 insertions(+), 517 deletions(-) rename {internal/functions/utility => functions}/Join-DbaPath.ps1 (83%) rename {internal/functions/utility => functions}/Resolve-DbaPath.ps1 (80%) create mode 100644 tests/Join-DbaPath.Tests.ps1 create mode 100644 tests/Resolve-DbaPath.Tests.ps1 diff --git a/.vscode/settings.json b/.vscode/settings.json index bdb9ca3584..d3817613ae 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -21,12 +21,66 @@ "powershell.scriptAnalysis.settingsPath": "bin\\PSScriptAnalyzerRules.psd1", "powershell.codeFormatting.addWhitespaceAroundPipe": true, "cSpell.words": [ + "Aduck", + "Andreas", + "Bargsley", + "Benner", + "Bizzotto", + "Boggiano", + "Brodeur", + "CHECKDB", + "Ciucu", + "cjsommer", + "Cown", + "DBCC", + "dgmyrs", + "DISA", + "erinstellato", + "Fleitas", + "fleitasarts", + "Furgiuele", + "gbargsley", + "hiramfleitas", + "ifexists", "ISNULL", + "Jakob", + "jaxnoth", + "jbruns", + "jpomfret", + "Kehayias", + "Kendal", + "Kirill", + "Klaas", + "Kokkinos", + "Kravtsov", + "Mikey", "nchar", + "niphlod", "ntext", + "nvarscar", + "Ordix", + "pittfurg", + "PKCS", + "Pollus", "randomizer", + "richiebzzzt", + "Samuelsson", + "securables", + "serg", + "SMIME", + "Spid", + "Spids", "SQLDB", + "sqlpadawan", "sqlstad", - "Stad" + "SSDT", + "Stad", + "Stellato's", + "STIG", + "Tepp", + "Vandenberghe", + "Viorel", + "Wsfc", + "wsmelton" ] } \ No newline at end of file diff --git a/functions/Add-DbaAgDatabase.ps1 b/functions/Add-DbaAgDatabase.ps1 index 7bb6972240..1fdb4bb803 100644 --- a/functions/Add-DbaAgDatabase.ps1 +++ b/functions/Add-DbaAgDatabase.ps1 @@ -10,7 +10,7 @@ function Add-DbaAgDatabase { Step 1: Setting seeding mode if needed. If -SeedingMode is used and the current seeding mode of the replica is not in the desired mode, the seeding mode of the replica is changed. The seeding mode will not be changed back but stay in this mode. - If the seeding mode is changed to Automatic, the necessary rigths to create databases will be granted. + If the seeding mode is changed to Automatic, the necessary rights to create databases will be granted. Step 2: Running backup and restore if needed. Action is only taken for replicas with a desired seeding mode of Manual and where the database does not yet exist. If -UseLastBackup is used, the restore will be performed based on the backup history of the database. @@ -33,7 +33,7 @@ function Add-DbaAgDatabase { because the command fails if the database is already part of the Availability Group. This limitation will be removed in a later version. - .PARAMETER SqlInstance + .PARAMETER SqlInstance The primary replica of the Availability Group. Server version must be SQL Server version 2012 or higher. .PARAMETER SqlCredential @@ -93,8 +93,9 @@ function Add-DbaAgDatabase { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: AvailabilityGroup, HA, AG + Tags: AG, HA Author: Chrissy LeMaire (@cl), netnerds.net | Andreas Jordan (@JordanOrdix), ordix.de + Website: https://dbatools.io Copyright: (c) 2018 by dbatools, licensed under MIT License: MIT https://opensource.org/licenses/MIT diff --git a/functions/Add-DbaAgListener.ps1 b/functions/Add-DbaAgListener.ps1 index 1538ec242c..964d208279 100644 --- a/functions/Add-DbaAgListener.ps1 +++ b/functions/Add-DbaAgListener.ps1 @@ -54,8 +54,9 @@ function Add-DbaAgListener { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: AvailabilityGroup, HA, AG + Tags: AG, HA Author: Chrissy LeMaire (@cl), netnerds.net + Website: https://dbatools.io Copyright: (c) 2018 by dbatools, licensed under MIT License: MIT https://opensource.org/licenses/MIT diff --git a/functions/Add-DbaAgReplica.ps1 b/functions/Add-DbaAgReplica.ps1 index cf7db41955..08d2736ea4 100644 --- a/functions/Add-DbaAgReplica.ps1 +++ b/functions/Add-DbaAgReplica.ps1 @@ -102,8 +102,9 @@ function Add-DbaAgReplica { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: AvailabilityGroup, HA, AG + Tags: AG, HA Author: Chrissy LeMaire (@cl), netnerds.net + Website: https://dbatools.io Copyright: (c) 2018 by dbatools, licensed under MIT License: MIT https://opensource.org/licenses/MIT diff --git a/functions/Add-DbaComputerCertificate.ps1 b/functions/Add-DbaComputerCertificate.ps1 index 7173441b67..bd11edb22b 100644 --- a/functions/Add-DbaComputerCertificate.ps1 +++ b/functions/Add-DbaComputerCertificate.ps1 @@ -39,7 +39,7 @@ function Add-DbaComputerCertificate { If this switch is enabled, you will be prompted for confirmation before executing any operations that change state. .NOTES - Tags: Certificate + Tags: Certificate, Security Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Add-DbaDbRoleMember.ps1 b/functions/Add-DbaDbRoleMember.ps1 index f75f1402f7..37890dede3 100644 --- a/functions/Add-DbaDbRoleMember.ps1 +++ b/functions/Add-DbaDbRoleMember.ps1 @@ -40,7 +40,7 @@ function Add-DbaDbRoleMember { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Role, Database, Security, Login + Tags: Role, User Author: Ben Miller (@DBAduck) Website: https://dbatools.io diff --git a/functions/Add-DbaExtendedProperty.ps1 b/functions/Add-DbaExtendedProperty.ps1 index f734010d36..6b87a99c47 100644 --- a/functions/Add-DbaExtendedProperty.ps1 +++ b/functions/Add-DbaExtendedProperty.ps1 @@ -71,7 +71,7 @@ function Add-DbaExtendedProperty { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: extendedproperties + Tags: General, ExtendedProperty Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Add-DbaServerRoleMember.ps1 b/functions/Add-DbaServerRoleMember.ps1 index 5a12823cab..7ac3699c39 100644 --- a/functions/Add-DbaServerRoleMember.ps1 +++ b/functions/Add-DbaServerRoleMember.ps1 @@ -40,7 +40,7 @@ function Add-DbaServerRoleMember { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Role, Security, Login + Tags: Role, Login Author: Shawn Melton (@wsmelton) Website: https://dbatools.io diff --git a/functions/Backup-DbaComputerCertificate.ps1 b/functions/Backup-DbaComputerCertificate.ps1 index d99d4bb4b8..fbaed5c148 100644 --- a/functions/Backup-DbaComputerCertificate.ps1 +++ b/functions/Backup-DbaComputerCertificate.ps1 @@ -27,7 +27,7 @@ function Backup-DbaComputerCertificate { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Certificate + Tags: CertBackup, Certificate, Backup Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Backup-DbaDbCertificate.ps1 b/functions/Backup-DbaDbCertificate.ps1 index 89ab2f728b..3d7f1a0b0e 100644 --- a/functions/Backup-DbaDbCertificate.ps1 +++ b/functions/Backup-DbaDbCertificate.ps1 @@ -52,7 +52,7 @@ function Backup-DbaDbCertificate { If this switch is enabled, no actions are performed but informational messages will be displayed that explain what would happen if the command were to run. .NOTES - Tags: Migration, Certificate + Tags: CertBackup, Certificate, Backup Author: Jess Pomfret (@jpomfret) Website: https://dbatools.io diff --git a/functions/Backup-DbaDbMasterKey.ps1 b/functions/Backup-DbaDbMasterKey.ps1 index 67b32bdfba..ab1a01c19a 100644 --- a/functions/Backup-DbaDbMasterKey.ps1 +++ b/functions/Backup-DbaDbMasterKey.ps1 @@ -46,7 +46,7 @@ function Backup-DbaDbMasterKey { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Certificate, Database + Tags: CertBackup, Certificate, Backup Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Backup-DbaServiceMasterKey.ps1 b/functions/Backup-DbaServiceMasterKey.ps1 index 028f07df35..f62d443bf1 100644 --- a/functions/Backup-DbaServiceMasterKey.ps1 +++ b/functions/Backup-DbaServiceMasterKey.ps1 @@ -37,7 +37,7 @@ function Backup-DbaServiceMasterKey { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Certificate, Database + Tags: CertBackup, Certificate, Backup Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Clear-DbaConnectionPool.ps1 b/functions/Clear-DbaConnectionPool.ps1 index 66c1b9ad71..32acc07b4d 100644 --- a/functions/Clear-DbaConnectionPool.ps1 +++ b/functions/Clear-DbaConnectionPool.ps1 @@ -22,7 +22,7 @@ function Clear-DbaConnectionPool { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Connection + Tags: Diagnostic, Connection Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Clear-DbaLatchStatistics.ps1 b/functions/Clear-DbaLatchStatistics.ps1 index c5eb18ba87..8fc50d0f0d 100644 --- a/functions/Clear-DbaLatchStatistics.ps1 +++ b/functions/Clear-DbaLatchStatistics.ps1 @@ -28,7 +28,7 @@ function Clear-DbaLatchStatistics { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: LatchStatistic, Waits + Tags: Diagnostic, LatchStatistic, Waits Author: Patrick Flynn (@sqllensman) Website: https://dbatools.io diff --git a/functions/Clear-DbaPlanCache.ps1 b/functions/Clear-DbaPlanCache.ps1 index 6e2f015f17..ad2d23b4c0 100644 --- a/functions/Clear-DbaPlanCache.ps1 +++ b/functions/Clear-DbaPlanCache.ps1 @@ -38,7 +38,7 @@ function Clear-DbaPlanCache { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Memory + Tags: Diagnostic, Memory Author: Tracy Boggiano, databasesuperhero.com Website: https://dbatools.io diff --git a/functions/Clear-DbaWaitStatistics.ps1 b/functions/Clear-DbaWaitStatistics.ps1 index 3870a922ef..17c133be8f 100644 --- a/functions/Clear-DbaWaitStatistics.ps1 +++ b/functions/Clear-DbaWaitStatistics.ps1 @@ -28,7 +28,7 @@ function Clear-DbaWaitStatistics { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: WaitStatistic, Waits + Tags: Diagnostic, WaitStats, Waits Author: Chrissy LeMaire (@cl) Website: https://dbatools.io diff --git a/functions/Connect-DbaInstance.ps1 b/functions/Connect-DbaInstance.ps1 index 2440d30a17..9d4b0ad4d4 100644 --- a/functions/Connect-DbaInstance.ps1 +++ b/functions/Connect-DbaInstance.ps1 @@ -161,7 +161,7 @@ function Connect-DbaInstance { Using this switch turns our "nice by default" feature on which makes errors into pretty warnings. .NOTES - Tags: Connect, Connection + Tags: Connection Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/ConvertTo-DbaDataTable.ps1 b/functions/ConvertTo-DbaDataTable.ps1 index aa871b8e49..f9cda71263 100644 --- a/functions/ConvertTo-DbaDataTable.ps1 +++ b/functions/ConvertTo-DbaDataTable.ps1 @@ -31,7 +31,7 @@ function ConvertTo-DbaDataTable { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: DataTable, Table, Data + Tags: Table, Data Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io/ diff --git a/functions/ConvertTo-DbaTimeline.ps1 b/functions/ConvertTo-DbaTimeline.ps1 index 0dc551a225..f1e44af4af 100644 --- a/functions/ConvertTo-DbaTimeline.ps1 +++ b/functions/ConvertTo-DbaTimeline.ps1 @@ -16,7 +16,7 @@ function ConvertTo-DbaTimeline { .PARAMETER ExcludeRowLabel By default, the Timeline shows SqlInstance and item name (agent job or database) in row labels section of the chart. - When this parameter (ExcludeRowLabel) is set to true the row labels will not be shown which will maximise the chart area for better visualisation. + When this parameter (ExcludeRowLabel) is set to true the row labels will not be shown which will maximise the chart area for better visualization. All relevant details are still available in the tooltip. .PARAMETER EnableException @@ -25,7 +25,7 @@ function ConvertTo-DbaTimeline { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Chart + Tags: Utility, Chart Author: Marcin Gminski (@marcingminski) Website: https://dbatools.io diff --git a/functions/Copy-DbaDbTableData.ps1 b/functions/Copy-DbaDbTableData.ps1 index 089edec514..7303f157a3 100644 --- a/functions/Copy-DbaDbTableData.ps1 +++ b/functions/Copy-DbaDbTableData.ps1 @@ -112,7 +112,7 @@ function Copy-DbaDbTableData { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Migration + Tags: Table, Data Author: Simone Bizzotto (@niphlod) Website: https://dbatools.io diff --git a/functions/Copy-DbaDbViewData.ps1 b/functions/Copy-DbaDbViewData.ps1 index 8a8633e844..04a0291aea 100644 --- a/functions/Copy-DbaDbViewData.ps1 +++ b/functions/Copy-DbaDbViewData.ps1 @@ -101,7 +101,7 @@ function Copy-DbaDbViewData { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Migration + Tags: Table, Data Author: Stephen Swan (@jaxnoth) Website: https://dbatools.io diff --git a/functions/Disable-DbaAgHadr.ps1 b/functions/Disable-DbaAgHadr.ps1 index 5da5c6d43e..d353547c55 100644 --- a/functions/Disable-DbaAgHadr.ps1 +++ b/functions/Disable-DbaAgHadr.ps1 @@ -28,7 +28,7 @@ function Disable-DbaAgHadr { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: AvailabilityGroup, HA, AG + Tags: AG, HA Author: Shawn Melton (@wsmelton), http://wsmelton.github.io Website: https://dbatools.io diff --git a/functions/Disable-DbaForceNetworkEncryption.ps1 b/functions/Disable-DbaForceNetworkEncryption.ps1 index b2459ae890..309e269fba 100644 --- a/functions/Disable-DbaForceNetworkEncryption.ps1 +++ b/functions/Disable-DbaForceNetworkEncryption.ps1 @@ -27,7 +27,7 @@ function Disable-DbaForceNetworkEncryption { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Certificate + Tags: Certificate, Security Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Disable-DbaHideInstance.ps1 b/functions/Disable-DbaHideInstance.ps1 index 9750c3492b..7debd77252 100644 --- a/functions/Disable-DbaHideInstance.ps1 +++ b/functions/Disable-DbaHideInstance.ps1 @@ -34,7 +34,7 @@ function Disable-DbaHideInstance { License: MIT https://opensource.org/licenses/MIT .LINK - https://dbatools.io/Disable-DbaHideInstance + https://dbatools.io/Disable-DbaHideInstance .EXAMPLE PS C:\> Disable-DbaHideInstance diff --git a/functions/Disable-DbaTraceFlag.ps1 b/functions/Disable-DbaTraceFlag.ps1 index 531a857feb..ef5c188996 100644 --- a/functions/Disable-DbaTraceFlag.ps1 +++ b/functions/Disable-DbaTraceFlag.ps1 @@ -26,7 +26,7 @@ function Disable-DbaTraceFlag { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: TraceFlag, DBCC + Tags: Diagnostic, TraceFlag, DBCC Author: Garry Bargsley (@gbargsley), http://blog.garrybargsley.com Website: https://dbatools.io diff --git a/functions/Dismount-DbaDatabase.ps1 b/functions/Dismount-DbaDatabase.ps1 index 0f3c0dacad..7d12e477d4 100644 --- a/functions/Dismount-DbaDatabase.ps1 +++ b/functions/Dismount-DbaDatabase.ps1 @@ -43,7 +43,7 @@ function Dismount-DbaDatabase { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Database + Tags: Detach, Database Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Enable-DbaAgHadr.ps1 b/functions/Enable-DbaAgHadr.ps1 index e5f67dd4f8..d10830e8ec 100644 --- a/functions/Enable-DbaAgHadr.ps1 +++ b/functions/Enable-DbaAgHadr.ps1 @@ -28,7 +28,7 @@ function Enable-DbaAgHadr { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: AvailabilityGroup, HA, AG + Tags: AG, HA Author: Shawn Melton (@wsmelton), http://wsmelton.github.io Website: https://dbatools.io diff --git a/functions/Enable-DbaForceNetworkEncryption.ps1 b/functions/Enable-DbaForceNetworkEncryption.ps1 index a993f56565..e64757c7b1 100644 --- a/functions/Enable-DbaForceNetworkEncryption.ps1 +++ b/functions/Enable-DbaForceNetworkEncryption.ps1 @@ -26,7 +26,7 @@ function Enable-DbaForceNetworkEncryption { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Certificate, Encryption + Tags: Certificate, Encryption, Security Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Enable-DbaTraceFlag.ps1 b/functions/Enable-DbaTraceFlag.ps1 index 479a9da95d..e4ac1fde33 100644 --- a/functions/Enable-DbaTraceFlag.ps1 +++ b/functions/Enable-DbaTraceFlag.ps1 @@ -26,7 +26,7 @@ function Enable-DbaTraceFlag { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: TraceFlag, DBCC + Tags: Diagnostic, TraceFlag, DBCC Author: Garry Bargsley (@gbargsley), http://blog.garrybargsley.com Website: https://dbatools.io diff --git a/functions/Expand-DbaDbLogFile.ps1 b/functions/Expand-DbaDbLogFile.ps1 index 65fa0541b1..f3b7468f5e 100644 --- a/functions/Expand-DbaDbLogFile.ps1 +++ b/functions/Expand-DbaDbLogFile.ps1 @@ -1,7 +1,7 @@ function Expand-DbaDbLogFile { <# .SYNOPSIS - This command will help you to automatically grow your transaction log file in a responsible way (preventing the generation of too many VLFs). + This command will help you to automatically grow your transaction log file in a responsible way (preventing the generation of too many VLFs). .DESCRIPTION As you may already know, having a transaction log file with too many Virtual Log Files (VLFs) can hurt your database performance in many ways. @@ -98,7 +98,7 @@ function Expand-DbaDbLogFile { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Storage, Backup + Tags: Storage, LogFile Author: Claudio Silva (@ClaudioESSilva) Website: https://dbatools.io diff --git a/functions/Export-DbaDacPackage.ps1 b/functions/Export-DbaDacPackage.ps1 index c1a58e3021..a1debcdd5e 100644 --- a/functions/Export-DbaDacPackage.ps1 +++ b/functions/Export-DbaDacPackage.ps1 @@ -56,7 +56,7 @@ function Export-DbaDacPackage { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Migration, Database, Dacpac + Tags: Dacpac, Deployment Author: Richie lee (@richiebzzzt) Website: https://dbatools.io diff --git a/functions/Export-DbaExecutionPlan.ps1 b/functions/Export-DbaExecutionPlan.ps1 index d3c96b9c61..4f4157ab94 100644 --- a/functions/Export-DbaExecutionPlan.ps1 +++ b/functions/Export-DbaExecutionPlan.ps1 @@ -52,7 +52,7 @@ function Export-DbaExecutionPlan { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Performance, ExecutionPlan + Tags: Diagnostic, Performance, ExecutionPlan Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Find-DbaAgentJob.ps1 b/functions/Find-DbaAgentJob.ps1 index 6ee1ec1554..527470a36c 100644 --- a/functions/Find-DbaAgentJob.ps1 +++ b/functions/Find-DbaAgentJob.ps1 @@ -57,7 +57,7 @@ function Find-DbaAgentJob { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Agent, Job + Tags: Agent, Job, Lookup Author: Stephen Bennett (https://sqlnotesfromtheunderground.wordpress.com/) Website: https://dbatools.io diff --git a/functions/Find-DbaBackup.ps1 b/functions/Find-DbaBackup.ps1 index 15088690d8..01ade404e1 100644 --- a/functions/Find-DbaBackup.ps1 +++ b/functions/Find-DbaBackup.ps1 @@ -40,7 +40,7 @@ function Find-DbaBackup { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Backup + Tags: Backup, Lookup Author: Chris Sommer (@cjsommer), www.cjsommer.com Website: https://dbatools.io diff --git a/functions/Find-DbaCommand.ps1 b/functions/Find-DbaCommand.ps1 index ed24d75422..ac712c6df7 100644 --- a/functions/Find-DbaCommand.ps1 +++ b/functions/Find-DbaCommand.ps1 @@ -36,7 +36,7 @@ function Find-DbaCommand { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Module, Find + Tags: Module, Lookup Author: Simone Bizzotto (@niphlod) Website: https://dbatools.io diff --git a/functions/Find-DbaDatabase.ps1 b/functions/Find-DbaDatabase.ps1 index 9f3f332203..ba6769074a 100644 --- a/functions/Find-DbaDatabase.ps1 +++ b/functions/Find-DbaDatabase.ps1 @@ -33,7 +33,7 @@ function Find-DbaDatabase { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Database + Tags: Database, Lookup Author: Stephen Bennett, https://sqlnotesfromtheunderground.wordpress.com/ Website: https://dbatools.io diff --git a/functions/Find-DbaDbDisabledIndex.ps1 b/functions/Find-DbaDbDisabledIndex.ps1 index a2951fefd2..d36bf91334 100644 --- a/functions/Find-DbaDbDisabledIndex.ps1 +++ b/functions/Find-DbaDbDisabledIndex.ps1 @@ -40,7 +40,7 @@ function Find-DbaDbDisabledIndex { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Index + Tags: Index, Lookup Author: Jason Squires, sqlnotnull.com Website: https://dbatools.io diff --git a/functions/Find-DbaDbDuplicateIndex.ps1 b/functions/Find-DbaDbDuplicateIndex.ps1 index 5744e1cb38..97af357496 100644 --- a/functions/Find-DbaDbDuplicateIndex.ps1 +++ b/functions/Find-DbaDbDuplicateIndex.ps1 @@ -46,7 +46,7 @@ function Find-DbaDbDuplicateIndex { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Index + Tags: Index, Lookup Author: Claudio Silva (@ClaudioESSilva) Website: https://dbatools.io diff --git a/functions/Find-DbaDbGrowthEvent.ps1 b/functions/Find-DbaDbGrowthEvent.ps1 index 9f8f11b677..939f680420 100644 --- a/functions/Find-DbaDbGrowthEvent.ps1 +++ b/functions/Find-DbaDbGrowthEvent.ps1 @@ -47,7 +47,7 @@ function Find-DbaDbGrowthEvent { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: AutoGrow,Growth,Database + Tags: AutoGrow, Database, Lookup Author: Aaron Nelson Website: https://dbatools.io diff --git a/functions/Find-DbaDbUnusedIndex.ps1 b/functions/Find-DbaDbUnusedIndex.ps1 index 9325a24d6c..4800520a29 100644 --- a/functions/Find-DbaDbUnusedIndex.ps1 +++ b/functions/Find-DbaDbUnusedIndex.ps1 @@ -60,7 +60,7 @@ function Find-DbaDbUnusedIndex { AND user_lookups < $Lookups .NOTES - Tags: Index + Tags: Index, Lookup Author: Aaron Nelson (@SQLvariant), SQLvariant.com Website: https://dbatools.io diff --git a/functions/Find-DbaInstance.ps1 b/functions/Find-DbaInstance.ps1 index ec9b817326..66a5b238da 100644 --- a/functions/Find-DbaInstance.ps1 +++ b/functions/Find-DbaInstance.ps1 @@ -80,7 +80,7 @@ function Find-DbaInstance { Scans can be specified in any arbitrary combination, however at least one instance detecting scan needs to be specified in order for data to be returned. Scans: - Browser + Browser - Tries discovering all instances via the browser service - This scan detects instances. @@ -152,7 +152,7 @@ function Find-DbaInstance { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Instance, Connect, SqlServer + Tags: Instance, Connect, SqlServer, Lookup Author: Scott Sutherland, 2018 NetSPI | Friedrich Weinmann (@FredWeinmann) Website: https://dbatools.io diff --git a/functions/Find-DbaLoginInGroup.ps1 b/functions/Find-DbaLoginInGroup.ps1 index 6494a07860..230aa3528a 100644 --- a/functions/Find-DbaLoginInGroup.ps1 +++ b/functions/Find-DbaLoginInGroup.ps1 @@ -21,7 +21,7 @@ function Find-DbaLoginInGroup { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Login, Group, Security + Tags: Login, Group, Lookup Author: Stephen Bennett, https://sqlnotesfromtheunderground.wordpress.com/ | Simone Bizzotto (@niphlod) Website: https://dbatools.io diff --git a/functions/Find-DbaOrphanedFile.ps1 b/functions/Find-DbaOrphanedFile.ps1 index c15055c743..e1968a3a0b 100644 --- a/functions/Find-DbaOrphanedFile.ps1 +++ b/functions/Find-DbaOrphanedFile.ps1 @@ -41,7 +41,7 @@ function Find-DbaOrphanedFile { If this switch is enabled, the command will search subdirectories of the Path parameter. .NOTES - Tags: Orphan, Database, DatabaseFile + Tags: Orphan, Database, DatabaseFile, Lookup Author: Sander Stad (@sqlstad), sqlstad.nl Website: https://dbatools.io diff --git a/functions/Find-DbaSimilarTable.ps1 b/functions/Find-DbaSimilarTable.ps1 index 50cebffcbb..13ccf7fcdb 100644 --- a/functions/Find-DbaSimilarTable.ps1 +++ b/functions/Find-DbaSimilarTable.ps1 @@ -52,7 +52,7 @@ function Find-DbaSimilarTable { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Table + Tags: Table, Lookup Author: Jana Sattainathan (@SQLJana), http://sqljana.wordpress.com Website: https://dbatools.io diff --git a/functions/Find-DbaStoredProcedure.ps1 b/functions/Find-DbaStoredProcedure.ps1 index ddd20b17fd..aa03e5c1c4 100644 --- a/functions/Find-DbaStoredProcedure.ps1 +++ b/functions/Find-DbaStoredProcedure.ps1 @@ -39,7 +39,7 @@ function Find-DbaStoredProcedure { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: StoredProcedure, Proc + Tags: StoredProcedure, Proc, Lookup Author: Stephen Bennett, https://sqlnotesfromtheunderground.wordpress.com/ Website: https://dbatools.io diff --git a/functions/Find-DbaTrigger.ps1 b/functions/Find-DbaTrigger.ps1 index 9c787174a1..41537f7fb8 100644 --- a/functions/Find-DbaTrigger.ps1 +++ b/functions/Find-DbaTrigger.ps1 @@ -43,7 +43,7 @@ function Find-DbaTrigger { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Trigger + Tags: Trigger, Lookup Author: Claudio Silva (@ClaudioESSilva) Website: https://dbatools.io diff --git a/functions/Find-DbaUserObject.ps1 b/functions/Find-DbaUserObject.ps1 index 355f8d6138..04a2e913f7 100644 --- a/functions/Find-DbaUserObject.ps1 +++ b/functions/Find-DbaUserObject.ps1 @@ -36,7 +36,7 @@ function Find-DbaUserObject { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Object + Tags: Object, Lookup Author: Stephen Bennett, https://sqlnotesfromtheunderground.wordpress.com/ Website: https://dbatools.io diff --git a/functions/Find-DbaView.ps1 b/functions/Find-DbaView.ps1 index 41ba45a97f..ec128d0f65 100644 --- a/functions/Find-DbaView.ps1 +++ b/functions/Find-DbaView.ps1 @@ -39,7 +39,7 @@ function Find-DbaView { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: View + Tags: View, Lookup Author: Claudio Silva (@ClaudioESSilva) Website: https://dbatools.io diff --git a/functions/Get-DbaAgBackupHistory.ps1 b/functions/Get-DbaAgBackupHistory.ps1 index 17c0041d27..6b06a85596 100644 --- a/functions/Get-DbaAgBackupHistory.ps1 +++ b/functions/Get-DbaAgBackupHistory.ps1 @@ -74,7 +74,7 @@ function Get-DbaAgBackupHistory { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: DisasterRecovery, Backup + Tags: AG, HA Author: Chrissy LeMaire (@cl) | Stuart Moore (@napalmgram), Andreas Jordan Website: https://dbatools.io diff --git a/functions/Get-DbaAgDatabase.ps1 b/functions/Get-DbaAgDatabase.ps1 index 0954d867f7..ab3be2c9d0 100644 --- a/functions/Get-DbaAgDatabase.ps1 +++ b/functions/Get-DbaAgDatabase.ps1 @@ -35,7 +35,7 @@ function Get-DbaAgDatabase { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: AvailabilityGroup, HA, AG + Tags: AG, HA Author: Shawn Melton (@wsmelton), https://wsmelton.github.io Website: https://dbatools.io diff --git a/functions/Get-DbaAgHadr.ps1 b/functions/Get-DbaAgHadr.ps1 index a6853c2fc7..1521ac8f8b 100644 --- a/functions/Get-DbaAgHadr.ps1 +++ b/functions/Get-DbaAgHadr.ps1 @@ -22,7 +22,7 @@ function Get-DbaAgHadr { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: AvailabilityGroup, HA, AG + Tags: AG, HA Author: Shawn Melton (@wsmelton), http://wsmelton.github.io Website: https://dbatools.io diff --git a/functions/Get-DbaAgListener.ps1 b/functions/Get-DbaAgListener.ps1 index f8e965df96..075cc6ce2d 100644 --- a/functions/Get-DbaAgListener.ps1 +++ b/functions/Get-DbaAgListener.ps1 @@ -31,7 +31,7 @@ function Get-DbaAgListener { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: AvailabilityGroup, HA, AG + Tags: AG, HA Author: Viorel Ciucu (@viorelciucu) Website: https://dbatools.io diff --git a/functions/Get-DbaAgReplica.ps1 b/functions/Get-DbaAgReplica.ps1 index 125cdd0943..8700314092 100644 --- a/functions/Get-DbaAgReplica.ps1 +++ b/functions/Get-DbaAgReplica.ps1 @@ -6,7 +6,7 @@ function Get-DbaAgReplica { .DESCRIPTION Returns the availability group replica object found on the server. - .PARAMETER SqlInstance + .PARAMETER SqlInstance The target SQL Server instance or instances. Server version must be SQL Server version 2012 or higher. .PARAMETER SqlCredential @@ -31,7 +31,7 @@ function Get-DbaAgReplica { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: AvailabilityGroup, HA, AG + Tags: AG, HA Author: Shawn Melton (@wsmelton) | Chrissy LeMaire (@cl) Website: https://dbatools.io diff --git a/functions/Get-DbaAgentAlert.ps1 b/functions/Get-DbaAgentAlert.ps1 index cc422c9b15..1b3b7b175d 100644 --- a/functions/Get-DbaAgentAlert.ps1 +++ b/functions/Get-DbaAgentAlert.ps1 @@ -28,7 +28,7 @@ function Get-DbaAgentAlert { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Agent, Alert, SMO + Tags: Agent, Alert Author: Klaas Vandenberghe (@PowerDBAKlaas) Website: https://dbatools.io diff --git a/functions/Get-DbaAgentJob.ps1 b/functions/Get-DbaAgentJob.ps1 index 2354827142..f06a6e53f0 100644 --- a/functions/Get-DbaAgentJob.ps1 +++ b/functions/Get-DbaAgentJob.ps1 @@ -46,7 +46,7 @@ function Get-DbaAgentJob { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Job, Agent + Tags: Agent, Job Author: Garry Bargsley (@gbargsley), http://blog.garrybargsley.com Website: https://dbatools.io diff --git a/functions/Get-DbaAgentJobCategory.ps1 b/functions/Get-DbaAgentJobCategory.ps1 index fba3217430..a16bb403da 100644 --- a/functions/Get-DbaAgentJobCategory.ps1 +++ b/functions/Get-DbaAgentJobCategory.ps1 @@ -29,7 +29,7 @@ function Get-DbaAgentJobCategory { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Agent, Job, JobCategory + Tags: Agent, Job, Category Author: Sander Stad (@sqlstad), sqlstad.nl Website: https://dbatools.io diff --git a/functions/Get-DbaAgentJobHistory.ps1 b/functions/Get-DbaAgentJobHistory.ps1 index 629f6da71b..160ec10820 100644 --- a/functions/Get-DbaAgentJobHistory.ps1 +++ b/functions/Get-DbaAgentJobHistory.ps1 @@ -51,7 +51,7 @@ function Get-DbaAgentJobHistory { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Job, Agent + Tags: Agent, Job Author: Klaas Vandenberghe (@PowerDbaKlaas) | Simone Bizzotto (@niphold) Website: https://dbatools.io diff --git a/functions/Get-DbaAgentJobStep.ps1 b/functions/Get-DbaAgentJobStep.ps1 index 86da081b07..d9e5c945d4 100644 --- a/functions/Get-DbaAgentJobStep.ps1 +++ b/functions/Get-DbaAgentJobStep.ps1 @@ -31,7 +31,7 @@ function Get-DbaAgentJobStep { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Job, Agent + Tags: Agent, Job Author: Klaas Vandenberghe (@PowerDbaKlaas), http://powerdba.eu Website: https://dbatools.io diff --git a/functions/Get-DbaAgentLog.ps1 b/functions/Get-DbaAgentLog.ps1 index f59f6d5a41..0e31390f6d 100644 --- a/functions/Get-DbaAgentLog.ps1 +++ b/functions/Get-DbaAgentLog.ps1 @@ -25,7 +25,7 @@ function Get-DbaAgentLog { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Logging + Tags: Agent Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaAgentProxy.ps1 b/functions/Get-DbaAgentProxy.ps1 index 8b3c503ead..eebfd56e06 100644 --- a/functions/Get-DbaAgentProxy.ps1 +++ b/functions/Get-DbaAgentProxy.ps1 @@ -29,7 +29,7 @@ function Get-DbaAgentProxy { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Agent, SMO + Tags: Agent, Proxy Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaAvailabilityGroup.ps1 b/functions/Get-DbaAvailabilityGroup.ps1 index 7e55fbd521..d75175c6d4 100644 --- a/functions/Get-DbaAvailabilityGroup.ps1 +++ b/functions/Get-DbaAvailabilityGroup.ps1 @@ -30,7 +30,7 @@ function Get-DbaAvailabilityGroup { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: AvailabilityGroup, HA, AG + Tags: AG, HA Author: Shawn Melton (@wsmelton) | Chrissy LeMaire (@cl) Website: https://dbatools.io diff --git a/functions/Get-DbaAvailableCollation.ps1 b/functions/Get-DbaAvailableCollation.ps1 index 6ca3132dec..995031e760 100644 --- a/functions/Get-DbaAvailableCollation.ps1 +++ b/functions/Get-DbaAvailableCollation.ps1 @@ -1,10 +1,10 @@ function Get-DbaAvailableCollation { <# .SYNOPSIS - Function to get available collations for a given SQL Server + Return available collations for a given SQL Server .DESCRIPTION - The Get-DbaAvailableCollation function returns the list of collations available on each SQL Server. + Returns the list of collations available on each SQL Server. Only the connect permission is required to get this information. .PARAMETER SqlInstance @@ -23,7 +23,7 @@ function Get-DbaAvailableCollation { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Collation, Configuration + Tags: Collation, Configuration, Management Author: Bryan Hamby (@galador) Website: https://dbatools.io diff --git a/functions/Get-DbaBackupDevice.ps1 b/functions/Get-DbaBackupDevice.ps1 index c2352d730b..b9bd4533e4 100644 --- a/functions/Get-DbaBackupDevice.ps1 +++ b/functions/Get-DbaBackupDevice.ps1 @@ -23,7 +23,7 @@ function Get-DbaBackupDevice { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Backup + Tags: Backup, General Author: Garry Bargsley (@gbargsley), http://blog.garrybargsley.com Website: https://dbatools.io diff --git a/functions/Get-DbaBuild.ps1 b/functions/Get-DbaBuild.ps1 index 1885ede21e..5fbfac465e 100644 --- a/functions/Get-DbaBuild.ps1 +++ b/functions/Get-DbaBuild.ps1 @@ -23,7 +23,7 @@ function Get-DbaBuild { .PARAMETER CumulativeUpdate Get a KB information based on SQL Server Cumulative Update version. - Examples: CU0 | CU13 | CU0 + Examples: CU0 | CU13 | CU0 .PARAMETER SqlInstance Target any number of instances, in order to return their build state. @@ -44,7 +44,7 @@ function Get-DbaBuild { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: SqlBuild + Tags: SqlBuild, Utility Author: Simone Bizzotto (@niphold) | Friedrich Weinmann (@FredWeinmann) Website: https://dbatools.io diff --git a/functions/Get-DbaClientAlias.ps1 b/functions/Get-DbaClientAlias.ps1 index 6cc4fc0ebf..0c10d921a0 100644 --- a/functions/Get-DbaClientAlias.ps1 +++ b/functions/Get-DbaClientAlias.ps1 @@ -18,7 +18,7 @@ function Get-DbaClientAlias { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Server, Management + Tags: SqlClient, Alias Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaClientProtocol.ps1 b/functions/Get-DbaClientProtocol.ps1 index 1b627779e4..9b6dd47b0e 100644 --- a/functions/Get-DbaClientProtocol.ps1 +++ b/functions/Get-DbaClientProtocol.ps1 @@ -21,7 +21,7 @@ function Get-DbaClientProtocol { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Server, Management + Tags: Management, Protocol, OS Author: Klaas Vandenberghe (@PowerDBAKlaas) Website: https://dbatools.io diff --git a/functions/Get-DbaComputerCertificate.ps1 b/functions/Get-DbaComputerCertificate.ps1 index a1820baefe..81ebba913d 100644 --- a/functions/Get-DbaComputerCertificate.ps1 +++ b/functions/Get-DbaComputerCertificate.ps1 @@ -33,7 +33,7 @@ function Get-DbaComputerCertificate { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Certificate + Tags: Certificate, Security Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaComputerSystem.ps1 b/functions/Get-DbaComputerSystem.ps1 index 77f6d60aed..d7f369bb7e 100644 --- a/functions/Get-DbaComputerSystem.ps1 +++ b/functions/Get-DbaComputerSystem.ps1 @@ -21,7 +21,7 @@ function Get-DbaComputerSystem { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Server, Management + Tags: Management, Computer, OS Author: Shawn Melton (@wsmelton), https://wsmelton.github.io Website: https://dbatools.io diff --git a/functions/Get-DbaCpuRingBuffer.ps1 b/functions/Get-DbaCpuRingBuffer.ps1 index 9db44b86ab..26631e8561 100644 --- a/functions/Get-DbaCpuRingBuffer.ps1 +++ b/functions/Get-DbaCpuRingBuffer.ps1 @@ -35,7 +35,7 @@ function Get-DbaCpuRingBuffer { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: CPU + Tags: Diagnostic, Buffer, CPU Author: Patrick Flynn (@sqllensman) Website: https://dbatools.io diff --git a/functions/Get-DbaCpuUsage.ps1 b/functions/Get-DbaCpuUsage.ps1 index e486fe66d9..d62258efea 100644 --- a/functions/Get-DbaCpuUsage.ps1 +++ b/functions/Get-DbaCpuUsage.ps1 @@ -38,7 +38,7 @@ function Get-DbaCpuUsage { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: CPU + Tags: Diagnostic, Performance, CPU Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaCredential.ps1 b/functions/Get-DbaCredential.ps1 index c0b459aaea..51cf376742 100644 --- a/functions/Get-DbaCredential.ps1 +++ b/functions/Get-DbaCredential.ps1 @@ -37,7 +37,7 @@ function Get-DbaCredential { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Credential + Tags: Security, Credential Author: Garry Bargsley (@gbargsley), http://blog.garrybargsley.com Website: https://dbatools.io diff --git a/functions/Get-DbaCustomError.ps1 b/functions/Get-DbaCustomError.ps1 index 1ed2e78303..138dacf945 100644 --- a/functions/Get-DbaCustomError.ps1 +++ b/functions/Get-DbaCustomError.ps1 @@ -23,7 +23,7 @@ function Get-DbaCustomError { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Error, CustomError + Tags: General, Error Author: Garry Bargsley (@gbargsley), http://blog.garrybargsley.com Website: https://dbatools.io diff --git a/functions/Get-DbaDbAsymmetricKey.ps1 b/functions/Get-DbaDbAsymmetricKey.ps1 index 218165974d..b557bb711e 100644 --- a/functions/Get-DbaDbAsymmetricKey.ps1 +++ b/functions/Get-DbaDbAsymmetricKey.ps1 @@ -34,7 +34,7 @@ function Get-DbaDbAsymmetricKey { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: AsymmetricKey + Tags: Certificate, Security Author: Stuart Moore (@napalmgram), stuart-moore.com Website: https://dbatools.io diff --git a/functions/Get-DbaDbCertificate.ps1 b/functions/Get-DbaDbCertificate.ps1 index 7535e3f775..c30f4715d7 100644 --- a/functions/Get-DbaDbCertificate.ps1 +++ b/functions/Get-DbaDbCertificate.ps1 @@ -37,7 +37,7 @@ function Get-DbaDbCertificate { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Certificate + Tags: Certificate, Security Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaDbEncryption.ps1 b/functions/Get-DbaDbEncryption.ps1 index 21207bd631..a7d93d8ae9 100644 --- a/functions/Get-DbaDbEncryption.ps1 +++ b/functions/Get-DbaDbEncryption.ps1 @@ -31,7 +31,7 @@ function Get-DbaDbEncryption { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Encryption, Database + Tags: Encryption Author: Stephen Bennett, https://sqlnotesfromtheunderground.wordpress.com/ Website: https://dbatools.io diff --git a/functions/Get-DbaDbFile.ps1 b/functions/Get-DbaDbFile.ps1 index bb3f79e307..40b43d4a5c 100644 --- a/functions/Get-DbaDbFile.ps1 +++ b/functions/Get-DbaDbFile.ps1 @@ -34,7 +34,7 @@ function Get-DbaDbFile { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Database + Tags: Storage, Data, File, Log Author: Stuart Moore (@napalmgram), stuart-moore.com Website: https://dbatools.io diff --git a/functions/Get-DbaDbFileGroup.ps1 b/functions/Get-DbaDbFileGroup.ps1 index 55c9471acf..c30341e46b 100644 --- a/functions/Get-DbaDbFileGroup.ps1 +++ b/functions/Get-DbaDbFileGroup.ps1 @@ -19,7 +19,7 @@ function Get-DbaDbFileGroup { .PARAMETER Database The database(s) to process - this list is auto-populated from the server. If unspecified, all databases will be processed. - .PARAMETER InputObject + .PARAMETER InputObject Database object piped in from Get-DbaDatabase .PARAMETER FileGroup @@ -31,7 +31,7 @@ function Get-DbaDbFileGroup { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Database, FileGroup + Tags: Storage, File, Data Author: Patrick Flynn (@sqllensman) Website: https://dbatools.io diff --git a/functions/Get-DbaDbFileGrowth.ps1 b/functions/Get-DbaDbFileGrowth.ps1 index 1f55eac316..92c53199ec 100644 --- a/functions/Get-DbaDbFileGrowth.ps1 +++ b/functions/Get-DbaDbFileGrowth.ps1 @@ -28,8 +28,9 @@ function Get-DbaDbFileGrowth { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Database + Tags: Storage, Data, File, Log Author: Chrissy LeMaire (@cl), netnerds.net + Website: https://dbatools.io Copyright: (c) 2021 by dbatools, licensed under MIT License: MIT https://opensource.org/licenses/MIT diff --git a/functions/Get-DbaDbFileMapping.ps1 b/functions/Get-DbaDbFileMapping.ps1 index 14e9b546e9..e74fdbb056 100644 --- a/functions/Get-DbaDbFileMapping.ps1 +++ b/functions/Get-DbaDbFileMapping.ps1 @@ -19,7 +19,7 @@ function Get-DbaDbFileMapping { .PARAMETER Database The database(s) to process - this list is auto-populated from the server. If unspecified, all databases will be processed. - .PARAMETER InputObject + .PARAMETER InputObject Database object piped in from Get-DbaDatabase .PARAMETER EnableException @@ -28,7 +28,7 @@ function Get-DbaDbFileMapping { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Database + Tags: Storage, File, Data, Log, Backup Author: Chrissy LeMaire (@cl), netnerds.net | Andreas Jordan (@JordanOrdix), ordix.de Website: https://dbatools.io diff --git a/functions/Get-DbaDbForeignKey.ps1 b/functions/Get-DbaDbForeignKey.ps1 index 51011c4146..b3ee3c3f2b 100644 --- a/functions/Get-DbaDbForeignKey.ps1 +++ b/functions/Get-DbaDbForeignKey.ps1 @@ -31,7 +31,7 @@ function Get-DbaDbForeignKey { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Database,ForeignKey, Table + Tags: Database, ForeignKey, Table Author: Claudio Silva (@ClaudioESSilva), https://claudioessilva.eu Website: https://dbatools.io diff --git a/functions/Get-DbaDbLogSpace.ps1 b/functions/Get-DbaDbLogSpace.ps1 index cee3e44296..2b15ad6162 100644 --- a/functions/Get-DbaDbLogSpace.ps1 +++ b/functions/Get-DbaDbLogSpace.ps1 @@ -33,7 +33,7 @@ Function Get-DbaDbLogSpace { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Database, Space + Tags: Storage, Space, Log, File Author: Jess Pomfret, JessPomfret.com Website: https://dbatools.io diff --git a/functions/Get-DbaDbMail.ps1 b/functions/Get-DbaDbMail.ps1 index a746b17524..daae1e60b9 100644 --- a/functions/Get-DbaDbMail.ps1 +++ b/functions/Get-DbaDbMail.ps1 @@ -22,7 +22,7 @@ function Get-DbaDbMail { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: DatabaseMail, DBMail, Mail + Tags: Mail, DbMail, Email Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaDbMailAccount.ps1 b/functions/Get-DbaDbMailAccount.ps1 index e89794d64f..7af8d594c9 100644 --- a/functions/Get-DbaDbMailAccount.ps1 +++ b/functions/Get-DbaDbMailAccount.ps1 @@ -31,7 +31,7 @@ function Get-DbaDbMailAccount { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: DatabaseMail, DbMail, Mail + Tags: Mail, DbMail, Email Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaDbMailConfig.ps1 b/functions/Get-DbaDbMailConfig.ps1 index a659e62c7c..8797fad936 100644 --- a/functions/Get-DbaDbMailConfig.ps1 +++ b/functions/Get-DbaDbMailConfig.ps1 @@ -28,7 +28,7 @@ function Get-DbaDbMailConfig { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: DatabaseMail, DBMail, Mail + Tags: Mail, DbMail, Email Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaDbMailHistory.ps1 b/functions/Get-DbaDbMailHistory.ps1 index 2ceda543bb..99f267f870 100644 --- a/functions/Get-DbaDbMailHistory.ps1 +++ b/functions/Get-DbaDbMailHistory.ps1 @@ -28,7 +28,7 @@ function Get-DbaDbMailHistory { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: DatabaseMail, DBMail, Mail + Tags: Mail, DbMail, Email Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaDbMailLog.ps1 b/functions/Get-DbaDbMailLog.ps1 index fb3eb898ca..e18b95f5aa 100644 --- a/functions/Get-DbaDbMailLog.ps1 +++ b/functions/Get-DbaDbMailLog.ps1 @@ -28,7 +28,7 @@ function Get-DbaDbMailLog { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: DatabaseMail, DBMail, Mail + Tags: Mail, DbMail, Email Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaDbMailProfile.ps1 b/functions/Get-DbaDbMailProfile.ps1 index 2e5247f15d..11f88e2332 100644 --- a/functions/Get-DbaDbMailProfile.ps1 +++ b/functions/Get-DbaDbMailProfile.ps1 @@ -31,7 +31,7 @@ function Get-DbaDbMailProfile { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: DatabaseMail, DBMail, Mail + Tags: Mail, DbMail, Email Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaDbMailServer.ps1 b/functions/Get-DbaDbMailServer.ps1 index 79a348b317..16dbc18a27 100644 --- a/functions/Get-DbaDbMailServer.ps1 +++ b/functions/Get-DbaDbMailServer.ps1 @@ -31,7 +31,7 @@ function Get-DbaDbMailServer { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: DatabaseMail, DBMail, Mail + Tags: Mail, DbMail, Email Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaDbMasterKey.ps1 b/functions/Get-DbaDbMasterKey.ps1 index 998c7c8292..32f35a7634 100644 --- a/functions/Get-DbaDbMasterKey.ps1 +++ b/functions/Get-DbaDbMasterKey.ps1 @@ -37,7 +37,7 @@ function Get-DbaDbMasterKey { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Certificate, Database + Tags: Certificate, Security Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaDbOrphanUser.ps1 b/functions/Get-DbaDbOrphanUser.ps1 index dca535715a..ac14a820c8 100644 --- a/functions/Get-DbaDbOrphanUser.ps1 +++ b/functions/Get-DbaDbOrphanUser.ps1 @@ -34,7 +34,7 @@ function Get-DbaDbOrphanUser { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Orphan, Database, User, Security, Login + Tags: Orphan, Database, User, Login Author: Claudio Silva (@ClaudioESSilva) | Garry Bargsley (@gbargsley) | Simone Bizzotto (@niphlod) Website: https://dbatools.io diff --git a/functions/Get-DbaDbRecoveryModel.ps1 b/functions/Get-DbaDbRecoveryModel.ps1 index 89558227ad..e8c5ee4620 100644 --- a/functions/Get-DbaDbRecoveryModel.ps1 +++ b/functions/Get-DbaDbRecoveryModel.ps1 @@ -1,10 +1,10 @@ function Get-DbaDbRecoveryModel { <# .SYNOPSIS - Get-DbaDbRecoveryModel displays the Recovery Model. + Displays the Recovery Model. .DESCRIPTION - Get-DbaDbRecoveryModel displays the Recovery Model for all databases. This is the default, you can filter using -Database, -ExcludeDatabase, -RecoveryModel + Displays the Recovery Model for all databases. This is the default, you can filter using -Database, -ExcludeDatabase, -RecoveryModel .PARAMETER SqlInstance The target SQL Server instance or instances. @@ -34,7 +34,7 @@ function Get-DbaDbRecoveryModel { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Recovery, RecoveryModel, Simple, Full, Bulk, BulkLogged + Tags: Recovery, RecoveryModel, Backup Author: Viorel Ciucu (@viorelciucu), https://www.cviorel.com Website: https://dbatools.io diff --git a/functions/Get-DbaDbRole.ps1 b/functions/Get-DbaDbRole.ps1 index e914ec29ef..56711f6309 100644 --- a/functions/Get-DbaDbRole.ps1 +++ b/functions/Get-DbaDbRole.ps1 @@ -40,7 +40,7 @@ function Get-DbaDbRole { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Role, Database, Security, Login + Tags: Role, User Author: Ben Miller (@DBAduck) Website: https://dbatools.io diff --git a/functions/Get-DbaDbRoleMember.ps1 b/functions/Get-DbaDbRoleMember.ps1 index 4b8af8c209..95d85e0b70 100644 --- a/functions/Get-DbaDbRoleMember.ps1 +++ b/functions/Get-DbaDbRoleMember.ps1 @@ -43,7 +43,7 @@ function Get-DbaDbRoleMember { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Role, Database, Security, Login + Tags: Role, User Author: Klaas Vandenberghe (@PowerDBAKlaas) Website: https://dbatools.io diff --git a/functions/Get-DbaDbSchema.ps1 b/functions/Get-DbaDbSchema.ps1 index 88a88179a0..abce174725 100644 --- a/functions/Get-DbaDbSchema.ps1 +++ b/functions/Get-DbaDbSchema.ps1 @@ -47,7 +47,7 @@ function Get-DbaDbSchema { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Data, Database, Migration, Permission, Security, Schema, Table, User + Tags: Database, Schema Author: Adam Lancaster https://github.com/lancasteradam dbatools PowerShell module (https://dbatools.io) diff --git a/functions/Get-DbaDbServiceBrokerService.ps1 b/functions/Get-DbaDbServiceBrokerService.ps1 index 28820231c7..f6180c0b43 100644 --- a/functions/Get-DbaDbServiceBrokerService.ps1 +++ b/functions/Get-DbaDbServiceBrokerService.ps1 @@ -4,7 +4,7 @@ function Get-DbaDbServiceBrokerService { Gets database service broker services .DESCRIPTION - Gets database Sservice broker services + Gets database Service broker services .PARAMETER SqlInstance The target SQL Server instance or instances @@ -31,7 +31,7 @@ function Get-DbaDbServiceBrokerService { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Database, ServiceBroker, Service + Tags: Service, ServiceBroker Author: Ant Green (@ant_green) Website: https://dbatools.io diff --git a/functions/Get-DbaDbSynonym.ps1 b/functions/Get-DbaDbSynonym.ps1 index 0fb0436650..f624776bbe 100644 --- a/functions/Get-DbaDbSynonym.ps1 +++ b/functions/Get-DbaDbSynonym.ps1 @@ -49,7 +49,7 @@ function Get-DbaDbSynonym { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Synonym, Database + Tags: Database, Synonym Author: Mikey Bronowski (@MikeyBronowski), https://bronowski.it Website: https://dbatools.io diff --git a/functions/Get-DbaDbUdf.ps1 b/functions/Get-DbaDbUdf.ps1 index 9463b011f3..b6c06b8984 100644 --- a/functions/Get-DbaDbUdf.ps1 +++ b/functions/Get-DbaDbUdf.ps1 @@ -43,7 +43,7 @@ function Get-DbaDbUdf { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Security, Database + Tags: Udf, Database Author: Klaas Vandenberghe (@PowerDbaKlaas) Website: https://dbatools.io diff --git a/functions/Get-DbaDbUser.ps1 b/functions/Get-DbaDbUser.ps1 index 9098f99c58..c3c1ac23a5 100644 --- a/functions/Get-DbaDbUser.ps1 +++ b/functions/Get-DbaDbUser.ps1 @@ -37,7 +37,7 @@ function Get-DbaDbUser { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Security, Database + Tags: User, Database Author: Klaas Vandenberghe (@PowerDbaKlaas) Website: https://dbatools.io diff --git a/functions/Get-DbaDbUserDefinedTableType.ps1 b/functions/Get-DbaDbUserDefinedTableType.ps1 index af16acc62d..cf5d9494da 100644 --- a/functions/Get-DbaDbUserDefinedTableType.ps1 +++ b/functions/Get-DbaDbUserDefinedTableType.ps1 @@ -4,7 +4,7 @@ function Get-DbaDbUserDefinedTableType { Gets database user defined table types .DESCRIPTION - Gets database user defined table tpes + Gets database user defined table types .PARAMETER SqlInstance The target SQL Server instance or instances diff --git a/functions/Get-DbaDbView.ps1 b/functions/Get-DbaDbView.ps1 index 060cf46d64..9780cbbe48 100644 --- a/functions/Get-DbaDbView.ps1 +++ b/functions/Get-DbaDbView.ps1 @@ -37,7 +37,7 @@ function Get-DbaDbView { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Security, Database + Tags: View, Database Author: Klaas Vandenberghe (@PowerDbaKlaas) Website: https://dbatools.io diff --git a/functions/Get-DbaDbVirtualLogFile.ps1 b/functions/Get-DbaDbVirtualLogFile.ps1 index 1cbf450e56..d603d69c93 100644 --- a/functions/Get-DbaDbVirtualLogFile.ps1 +++ b/functions/Get-DbaDbVirtualLogFile.ps1 @@ -40,7 +40,7 @@ function Get-DbaDbVirtualLogFile { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: VLF, Database, LogFile + Tags: Diagnostic, VLF, Database, LogFile Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaDefaultPath.ps1 b/functions/Get-DbaDefaultPath.ps1 index 143e44f27e..54176b3807 100644 --- a/functions/Get-DbaDefaultPath.ps1 +++ b/functions/Get-DbaDefaultPath.ps1 @@ -22,7 +22,7 @@ function Get-DbaDefaultPath { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Config + Tags: Storage, Data, Log, Backup Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaDependency.ps1 b/functions/Get-DbaDependency.ps1 index 44e701d19e..a626fae49e 100644 --- a/functions/Get-DbaDependency.ps1 +++ b/functions/Get-DbaDependency.ps1 @@ -32,7 +32,7 @@ function Get-DbaDependency { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Database, Dependent, Dependency, Object + Tags: Dependency, Utility Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaDeprecatedFeature.ps1 b/functions/Get-DbaDeprecatedFeature.ps1 index a603bca935..9c9572e20d 100644 --- a/functions/Get-DbaDeprecatedFeature.ps1 +++ b/functions/Get-DbaDeprecatedFeature.ps1 @@ -22,7 +22,7 @@ function Get-DbaDeprecatedFeature { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Deprecated + Tags: Deprecated, General Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaDiskSpace.ps1 b/functions/Get-DbaDiskSpace.ps1 index cc0fe908b2..fae518850c 100644 --- a/functions/Get-DbaDiskSpace.ps1 +++ b/functions/Get-DbaDiskSpace.ps1 @@ -51,7 +51,7 @@ function Get-DbaDiskSpace { If this switch is enabled, you will be prompted for confirmation before executing any operations that change state. .NOTES - Tags: Server, Management, Space + Tags: Storage, Disk, Space, OS Author: Chrissy LeMaire (@cl), netnerds.net | Jakob Bindslet Website: https://dbatools.io diff --git a/functions/Get-DbaDump.ps1 b/functions/Get-DbaDump.ps1 index 80af6de73b..238d8883f4 100644 --- a/functions/Get-DbaDump.ps1 +++ b/functions/Get-DbaDump.ps1 @@ -22,7 +22,7 @@ function Get-DbaDump { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Engine, Corruption + Tags: Diagnostic, Engine, Corruption Author: Garry Bargsley (@gbargsley), http://blog.garrybargsley.com Website: https://dbatools.io diff --git a/functions/Get-DbaErrorLog.ps1 b/functions/Get-DbaErrorLog.ps1 index 5011ff2ead..16a7022e2d 100644 --- a/functions/Get-DbaErrorLog.ps1 +++ b/functions/Get-DbaErrorLog.ps1 @@ -40,7 +40,7 @@ function Get-DbaErrorLog { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Instance, ErrorLog + Tags: Logging, Instance, ErrorLog Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaErrorLogConfig.ps1 b/functions/Get-DbaErrorLogConfig.ps1 index 0c9eb8f477..cf7ccb0cf7 100644 --- a/functions/Get-DbaErrorLogConfig.ps1 +++ b/functions/Get-DbaErrorLogConfig.ps1 @@ -24,7 +24,7 @@ function Get-DbaErrorLogConfig { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Instance, ErrorLog + Tags: Instance, ErrorLog, Logging Author: Shawn Melton (@wsmelton), https://wsmelton.github.io Website: https://dbatools.io diff --git a/functions/Get-DbaEstimatedCompletionTime.ps1 b/functions/Get-DbaEstimatedCompletionTime.ps1 index 71454872ab..869f3c5ca8 100644 --- a/functions/Get-DbaEstimatedCompletionTime.ps1 +++ b/functions/Get-DbaEstimatedCompletionTime.ps1 @@ -46,7 +46,7 @@ function Get-DbaEstimatedCompletionTime { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Database + Tags: Diagnostic, Query Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaExtendedProperty.ps1 b/functions/Get-DbaExtendedProperty.ps1 index d1b2a05081..7713895d23 100644 --- a/functions/Get-DbaExtendedProperty.ps1 +++ b/functions/Get-DbaExtendedProperty.ps1 @@ -64,7 +64,7 @@ function Get-DbaExtendedProperty { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: extended properties + Tags: General, ExtendedProperty Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaExternalProcess.ps1 b/functions/Get-DbaExternalProcess.ps1 index d9c1094416..f92e0711df 100644 --- a/functions/Get-DbaExternalProcess.ps1 +++ b/functions/Get-DbaExternalProcess.ps1 @@ -22,7 +22,7 @@ function Get-DbaExternalProcess { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Process + Tags: Diagnostic, Process Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaFeature.ps1 b/functions/Get-DbaFeature.ps1 index ac4bcc34fb..0aef58df81 100644 --- a/functions/Get-DbaFeature.ps1 +++ b/functions/Get-DbaFeature.ps1 @@ -33,7 +33,7 @@ function Get-DbaFeature { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Feature, Component + Tags: Feature, Component, General Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaFile.ps1 b/functions/Get-DbaFile.ps1 index bc2717a9ba..7c66f2ba8d 100644 --- a/functions/Get-DbaFile.ps1 +++ b/functions/Get-DbaFile.ps1 @@ -31,7 +31,7 @@ function Get-DbaFile { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Discovery + Tags: Storage, File, Path Author: Brandon Abshire, netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaFirewallRule.ps1 b/functions/Get-DbaFirewallRule.ps1 index 14b0a77704..14a1ae9fb7 100644 --- a/functions/Get-DbaFirewallRule.ps1 +++ b/functions/Get-DbaFirewallRule.ps1 @@ -38,7 +38,7 @@ function Get-DbaFirewallRule { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Firewall, Network + Tags: Network, Connection, Firewall Author: Andreas Jordan (@JordanOrdix), ordix.de Website: https://dbatools.io @@ -52,7 +52,7 @@ function Get-DbaFirewallRule { PS C:\> Get-DbaFirewallRule -SqlInstance SRV1 Returns the firewall rule for the default instance on SRV1. - In case the instance is not listening on port 1433, it also returnes the firewall rule for the SQL Server Browser. + In case the instance is not listening on port 1433, it also returns the firewall rule for the SQL Server Browser. .EXAMPLE PS C:\> Get-DbaFirewallRule -SqlInstance SRV1\SQL2016 -Type Engine diff --git a/functions/Get-DbaForceNetworkEncryption.ps1 b/functions/Get-DbaForceNetworkEncryption.ps1 index 6734161b8b..fe871b6869 100644 --- a/functions/Get-DbaForceNetworkEncryption.ps1 +++ b/functions/Get-DbaForceNetworkEncryption.ps1 @@ -9,7 +9,7 @@ function Get-DbaForceNetworkEncryption { This setting is found in Configuration Manager. .PARAMETER SqlInstance - The target SQL Server instance or instances. Defaults to localhost. + The target SQL Server instance or instances. Defaults to localhost. .PARAMETER Credential Allows you to login to the computer (not sql instance) using alternative Windows credentials @@ -20,7 +20,7 @@ function Get-DbaForceNetworkEncryption { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Certificate + Tags: Certificate, Security Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaHelpIndex.ps1 b/functions/Get-DbaHelpIndex.ps1 index 19dd321f21..9c9e7bda5e 100644 --- a/functions/Get-DbaHelpIndex.ps1 +++ b/functions/Get-DbaHelpIndex.ps1 @@ -66,7 +66,7 @@ function Get-DbaHelpIndex { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Index + Tags: Database, Index Author: Nic Cain, https://sirsql.net/ Website: https://dbatools.io diff --git a/functions/Get-DbaInstalledPatch.ps1 b/functions/Get-DbaInstalledPatch.ps1 index 647a3d1b61..8bbc45a509 100644 --- a/functions/Get-DbaInstalledPatch.ps1 +++ b/functions/Get-DbaInstalledPatch.ps1 @@ -20,7 +20,7 @@ function Get-DbaInstalledPatch { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Updates, Patches + Tags: Deployment, Updates, Patches Author: Hiram Fleitas, @hiramfleitas, fleitasarts.com Website: https://dbatools.io Copyright: (c) 2021 by dbatools, licensed under MIT @@ -68,7 +68,7 @@ function Get-DbaInstalledPatch { ComputerName = $computer Name = $patch.DisplayName Version = $patch.DisplayVersion - InstallDate = [dbadate][datetime]::ParseExact($patch.InstallDate, 'yyyyMMdd', $null) + InstallDate = [DbaDate][datetime]::ParseExact($patch.InstallDate, 'yyyyMMdd', $null) } } } diff --git a/functions/Get-DbaInstanceInstallDate.ps1 b/functions/Get-DbaInstanceInstallDate.ps1 index 9d2fd9a086..461bb5f8b2 100644 --- a/functions/Get-DbaInstanceInstallDate.ps1 +++ b/functions/Get-DbaInstanceInstallDate.ps1 @@ -30,7 +30,7 @@ function Get-DbaInstanceInstallDate { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Install + Tags: Install, Instance, Utility Author: Mitchell Hamann (@SirCaptainMitch), mitchellhamann.com Website: https://dbatools.io diff --git a/functions/Get-DbaInstanceProperty.ps1 b/functions/Get-DbaInstanceProperty.ps1 index 2f550ba4f1..04688d1afd 100644 --- a/functions/Get-DbaInstanceProperty.ps1 +++ b/functions/Get-DbaInstanceProperty.ps1 @@ -28,7 +28,7 @@ function Get-DbaInstanceProperty { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Instance, Configure, Configuration + Tags: Instance, Configure, Configuration, General Author: Klaas Vandenberghe (@powerdbaklaas) Website: https://dbatools.io diff --git a/functions/Get-DbaInstanceProtocol.ps1 b/functions/Get-DbaInstanceProtocol.ps1 index eccb79b769..2444a54f71 100644 --- a/functions/Get-DbaInstanceProtocol.ps1 +++ b/functions/Get-DbaInstanceProtocol.ps1 @@ -21,7 +21,7 @@ function Get-DbaInstanceProtocol { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Server, Management, Protocol + Tags: Management, Protocol, OS Author: Klaas Vandenberghe ( @PowerDBAKlaas ) Website: https://dbatools.io diff --git a/functions/Get-DbaInstanceTrigger.ps1 b/functions/Get-DbaInstanceTrigger.ps1 index 6f2ef42a87..80fc865397 100644 --- a/functions/Get-DbaInstanceTrigger.ps1 +++ b/functions/Get-DbaInstanceTrigger.ps1 @@ -22,7 +22,7 @@ function Get-DbaInstanceTrigger { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Database, Trigger + Tags: Database, Trigger, General Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaInstanceUserOption.ps1 b/functions/Get-DbaInstanceUserOption.ps1 index abb75335a3..9605590af6 100644 --- a/functions/Get-DbaInstanceUserOption.ps1 +++ b/functions/Get-DbaInstanceUserOption.ps1 @@ -23,7 +23,7 @@ function Get-DbaInstanceUserOption { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Instance, Configure, UserOption + Tags: Instance, Configure, UserOption, General Author: Klaas Vandenberghe (@powerdbaklaas) Website: https://dbatools.io diff --git a/functions/Get-DbaIoLatency.ps1 b/functions/Get-DbaIoLatency.ps1 index 81c7e3c9d3..0215284c49 100644 --- a/functions/Get-DbaIoLatency.ps1 +++ b/functions/Get-DbaIoLatency.ps1 @@ -27,7 +27,7 @@ function Get-DbaIoLatency { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: IOLatency + Tags: Diagnostic, IOLatency Author: Patrick Flynn (@sqllensman) Website: https://dbatools.io diff --git a/functions/Get-DbaKbUpdate.ps1 b/functions/Get-DbaKbUpdate.ps1 index a88264edf9..d85f1d5836 100644 --- a/functions/Get-DbaKbUpdate.ps1 +++ b/functions/Get-DbaKbUpdate.ps1 @@ -24,7 +24,7 @@ function Get-DbaKbUpdate { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Update + Tags: Deployment, Install, Patch, Update Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaLastGoodCheckDb.ps1 b/functions/Get-DbaLastGoodCheckDb.ps1 index bc7c80c109..80b6aa0c9f 100644 --- a/functions/Get-DbaLastGoodCheckDb.ps1 +++ b/functions/Get-DbaLastGoodCheckDb.ps1 @@ -45,7 +45,7 @@ function Get-DbaLastGoodCheckDb { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: CHECKDB, Database + Tags: CHECKDB, Database, Utility Author: Jakob Bindslet (jakob@bindslet.dk) Website: https://dbatools.io diff --git a/functions/Get-DbaLinkedServerLogin.ps1 b/functions/Get-DbaLinkedServerLogin.ps1 index 0182ad6ff7..5dd40686d8 100644 --- a/functions/Get-DbaLinkedServerLogin.ps1 +++ b/functions/Get-DbaLinkedServerLogin.ps1 @@ -41,7 +41,7 @@ function Get-DbaLinkedServerLogin { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Security, Server + Tags: LinkedServer, Login Author: Adam Lancaster https://github.com/lancasteradam dbatools PowerShell module (https://dbatools.io) diff --git a/functions/Get-DbaLocaleSetting.ps1 b/functions/Get-DbaLocaleSetting.ps1 index edbf6943e1..57685d822d 100644 --- a/functions/Get-DbaLocaleSetting.ps1 +++ b/functions/Get-DbaLocaleSetting.ps1 @@ -20,7 +20,7 @@ function Get-DbaLocaleSetting { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Server, Management + Tags: Management, Locale, OS Author: Klaas Vandenberghe (@PowerDBAKlaas) Website: https://dbatools.io diff --git a/functions/Get-DbaLogin.ps1 b/functions/Get-DbaLogin.ps1 index 718a62044b..70a1d2bbec 100644 --- a/functions/Get-DbaLogin.ps1 +++ b/functions/Get-DbaLogin.ps1 @@ -62,7 +62,7 @@ function Get-DbaLogin { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Login, Security + Tags: Login Author: Mitchell Hamann (@SirCaptainMitch) | Rob Sewell (@SQLDBaWithBeard) Website: https://dbatools.io diff --git a/functions/Get-DbaManagementObject.ps1 b/functions/Get-DbaManagementObject.ps1 index 744dd0910b..cd2df71423 100644 --- a/functions/Get-DbaManagementObject.ps1 +++ b/functions/Get-DbaManagementObject.ps1 @@ -1,7 +1,7 @@ function Get-DbaManagementObject { <# .SYNOPSIS - Gets SQL Mangaement Object versions installed on the machine. + Gets SQL Management Object versions installed on the machine. .DESCRIPTION The Get-DbaManagementObject returns an object with the Version and the diff --git a/functions/Get-DbaMemoryCondition.ps1 b/functions/Get-DbaMemoryCondition.ps1 index 82a58652cb..b9af921fb5 100644 --- a/functions/Get-DbaMemoryCondition.ps1 +++ b/functions/Get-DbaMemoryCondition.ps1 @@ -25,8 +25,9 @@ function Get-DbaMemoryCondition { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Memory + Tags: Memory, General Author: IJeb Reitsma + Website: https://dbatools.io Copyright: (c) 2018 by dbatools, licensed under MIT License: MIT https://opensource.org/licenses/MIT diff --git a/functions/Get-DbaMemoryUsage.ps1 b/functions/Get-DbaMemoryUsage.ps1 index c9dbb6147c..c8e539d264 100644 --- a/functions/Get-DbaMemoryUsage.ps1 +++ b/functions/Get-DbaMemoryUsage.ps1 @@ -27,7 +27,7 @@ function Get-DbaMemoryUsage { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Memory + Tags: Management, OS, Memory Author: Klaas Vandenberghe (@PowerDBAKlaas) Website: https://dbatools.io diff --git a/functions/Get-DbaModule.ps1 b/functions/Get-DbaModule.ps1 index cb790334d3..195dfa2110 100644 --- a/functions/Get-DbaModule.ps1 +++ b/functions/Get-DbaModule.ps1 @@ -44,7 +44,7 @@ function Get-DbaModule { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: StoredProcedure, Trigger + Tags: General, Object, StoredProcedure, View, Table, Trigger Author: Brandon Abshire, netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaMsdtc.ps1 b/functions/Get-DbaMsdtc.ps1 index c2b9fcd874..9d58b0a67f 100644 --- a/functions/Get-DbaMsdtc.ps1 +++ b/functions/Get-DbaMsdtc.ps1 @@ -21,7 +21,7 @@ function Get-DbaMsdtc { Using this switch turns our "nice by default" feature on which makes errors into pretty warnings. .NOTES - Tags: Msdtc, dtc + Tags: Msdtc, dtc, General Author: Klaas Vandenberghe (@powerdbaklaas) Website: https://dbatools.io diff --git a/functions/Get-DbaNetworkCertificate.ps1 b/functions/Get-DbaNetworkCertificate.ps1 index daa28e4ac4..45dd2bdde5 100644 --- a/functions/Get-DbaNetworkCertificate.ps1 +++ b/functions/Get-DbaNetworkCertificate.ps1 @@ -18,7 +18,7 @@ function Get-DbaNetworkCertificate { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Certificate, Encryption + Tags: Certificate, Encryption, Security Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaNetworkConfiguration.ps1 b/functions/Get-DbaNetworkConfiguration.ps1 index 9b646005da..4193e8bba3 100644 --- a/functions/Get-DbaNetworkConfiguration.ps1 +++ b/functions/Get-DbaNetworkConfiguration.ps1 @@ -8,7 +8,7 @@ function Get-DbaNetworkConfiguration { As we get information from SQL WMI and also from the registry, we use PS Remoting to run the core code on the target machine. - For a detailed explenation of the different properties see the documentation at: + For a detailed explanation of the different properties see the documentation at: https://docs.microsoft.com/en-us/sql/tools/configuration-manager/sql-server-network-configuration .PARAMETER SqlInstance @@ -23,7 +23,7 @@ function Get-DbaNetworkConfiguration { Full returns one object per SqlInstance with information about the server protocols and nested objects with information about TCP/IP properties and TCP/IP addresses. - It also outputs advanded properties including information about the used certificate. + It also outputs advanced properties including information about the used certificate. ServerProtocols returns one object per SqlInstance with information about the server protocols only. @@ -42,7 +42,7 @@ function Get-DbaNetworkConfiguration { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: SQLWMI + Tags: Connection, SQLWMI Author: Andreas Jordan (@JordanOrdix), ordix.de Website: https://dbatools.io diff --git a/functions/Get-DbaOleDbProvider.ps1 b/functions/Get-DbaOleDbProvider.ps1 index 97c41e3697..aee064f3bd 100644 --- a/functions/Get-DbaOleDbProvider.ps1 +++ b/functions/Get-DbaOleDbProvider.ps1 @@ -25,7 +25,7 @@ function Get-DbaOleDbProvider { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: OLEDB + Tags: General, OLEDB Author: Chrissy LeMaire (@cl) Website: https://dbatools.io diff --git a/functions/Get-DbaOpenTransaction.ps1 b/functions/Get-DbaOpenTransaction.ps1 index 1e6622f12b..554fb3ea23 100644 --- a/functions/Get-DbaOpenTransaction.ps1 +++ b/functions/Get-DbaOpenTransaction.ps1 @@ -23,7 +23,7 @@ function Get-DbaOpenTransaction { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Database, Process, Session, ActivityMonitor + Tags: Diagnostic, Process, Session, ActivityMonitor Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaOperatingSystem.ps1 b/functions/Get-DbaOperatingSystem.ps1 index adf385d457..63c466a93e 100644 --- a/functions/Get-DbaOperatingSystem.ps1 +++ b/functions/Get-DbaOperatingSystem.ps1 @@ -18,7 +18,7 @@ function Get-DbaOperatingSystem { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Server, Management, OperatingSystem + Tags: Management, OS, OperatingSystem Author: Shawn Melton (@wsmelton), https://wsmelton.github.io Website: https://dbatools.io diff --git a/functions/Get-DbaPageFileSetting.ps1 b/functions/Get-DbaPageFileSetting.ps1 index 788183a2c8..09c56b17d9 100644 --- a/functions/Get-DbaPageFileSetting.ps1 +++ b/functions/Get-DbaPageFileSetting.ps1 @@ -22,7 +22,7 @@ function Get-DbaPageFileSetting { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Server, Management, PageFile + Tags: Management, OS, PageFile Author: Klaas Vandenberghe (@PowerDBAKlaas) dbatools PowerShell module (https://dbatools.io) diff --git a/functions/Get-DbaPermission.ps1 b/functions/Get-DbaPermission.ps1 index a282241d8c..3237e50d89 100644 --- a/functions/Get-DbaPermission.ps1 +++ b/functions/Get-DbaPermission.ps1 @@ -42,7 +42,7 @@ function Get-DbaPermission { If this switch is enabled exceptions will be thrown to the caller, which will need to perform its own exception processing. Otherwise, the function will try to catch the exception, interpret it and provide a friendly error message. .NOTES - Tags: Permissions, Databases + Tags: Permissions, Instance, Database, Security Author: Klaas Vandenberghe (@PowerDBAKlaas) Website: https://dbatools.io diff --git a/functions/Get-DbaPlanCache.ps1 b/functions/Get-DbaPlanCache.ps1 index bb8c5391af..8fd5f9f4ac 100644 --- a/functions/Get-DbaPlanCache.ps1 +++ b/functions/Get-DbaPlanCache.ps1 @@ -26,7 +26,7 @@ function Get-DbaPlanCache { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Memory + Tags: Diagnostic, Cache, Memory Author: Tracy Boggiano, databasesuperhero.com Website: https://dbatools.io diff --git a/functions/Get-DbaPowerPlan.ps1 b/functions/Get-DbaPowerPlan.ps1 index cc8850c543..0934596adb 100644 --- a/functions/Get-DbaPowerPlan.ps1 +++ b/functions/Get-DbaPowerPlan.ps1 @@ -22,7 +22,7 @@ function Get-DbaPowerPlan { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: PowerPlan + Tags: PowerPlan, Utility Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaPrivilege.ps1 b/functions/Get-DbaPrivilege.ps1 index e89f99be41..ff8ed9e496 100644 --- a/functions/Get-DbaPrivilege.ps1 +++ b/functions/Get-DbaPrivilege.ps1 @@ -20,7 +20,7 @@ function Get-DbaPrivilege { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Privilege + Tags: Privilege, OS, Security Author: Klaas Vandenberghe (@PowerDBAKlaas) Website: https://dbatools.io diff --git a/functions/Get-DbaProcess.ps1 b/functions/Get-DbaProcess.ps1 index 171e40ed2a..d628c379e7 100644 --- a/functions/Get-DbaProcess.ps1 +++ b/functions/Get-DbaProcess.ps1 @@ -47,7 +47,7 @@ function Get-DbaProcess { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Process, Session, ActivityMonitor + Tags: Diagnostic, Process, Session, ActivityMonitor Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaProductKey.ps1 b/functions/Get-DbaProductKey.ps1 index 598d11256e..b39f59c857 100644 --- a/functions/Get-DbaProductKey.ps1 +++ b/functions/Get-DbaProductKey.ps1 @@ -23,7 +23,7 @@ function Get-DbaProductKey { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: ProductKey + Tags: ProductKey, Utility Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaQueryExecutionTime.ps1 b/functions/Get-DbaQueryExecutionTime.ps1 index f950d39a0a..9c8a0bed0b 100644 --- a/functions/Get-DbaQueryExecutionTime.ps1 +++ b/functions/Get-DbaQueryExecutionTime.ps1 @@ -40,7 +40,7 @@ function Get-DbaQueryExecutionTime { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Query, Performance + Tags: Diagnostic, Performance, Query Author: Brandon Abshire, netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaRegistryRoot.ps1 b/functions/Get-DbaRegistryRoot.ps1 index d6758c9eca..4ec4849263 100644 --- a/functions/Get-DbaRegistryRoot.ps1 +++ b/functions/Get-DbaRegistryRoot.ps1 @@ -18,7 +18,7 @@ function Get-DbaRegistryRoot { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Server, Management, Registry + Tags: Management, OS, Registry Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io @@ -26,7 +26,7 @@ function Get-DbaRegistryRoot { License: MIT https://opensource.org/licenses/MIT .LINK - https://dbatools.io/Get-DbaRegistryRoot + https://dbatools.io/Get-DbaRegistryRoot .EXAMPLE PS C:\> Get-DbaRegistryRoot @@ -49,15 +49,15 @@ function Get-DbaRegistryRoot { process { foreach ($computer in $computername) { try { - $sqlwmis = Invoke-ManagedComputerCommand -ComputerName $computer.ComputerName -ScriptBlock { $wmi.Services } -Credential $Credential -ErrorAction Stop | Where-Object DisplayName -match "SQL Server \(" + $sqlwmis = Invoke-ManagedComputerCommand -ComputerName $computer.ComputerName -ScriptBlock { $wmi.Services } -Credential $Credential -ErrorAction Stop | Where-Object DisplayName -Match "SQL Server \(" } catch { Stop-Function -Message $_ -Target $sqlwmi -Continue } foreach ($sqlwmi in $sqlwmis) { - $regRoot = ($sqlwmi.AdvancedProperties | Where-Object Name -eq REGROOT).Value - $vsname = ($sqlwmi.AdvancedProperties | Where-Object Name -eq VSNAME).Value + $regRoot = ($sqlwmi.AdvancedProperties | Where-Object Name -EQ REGROOT).Value + $vsname = ($sqlwmi.AdvancedProperties | Where-Object Name -EQ VSNAME).Value $instanceName = $sqlwmi.DisplayName.Replace('SQL Server (', '').Replace(')', '') # Don't clown, I don't know regex :( if ([System.String]::IsNullOrEmpty($regRoot)) { diff --git a/functions/Get-DbaSchemaChangeHistory.ps1 b/functions/Get-DbaSchemaChangeHistory.ps1 index aa37ccbb99..66cd8476bc 100644 --- a/functions/Get-DbaSchemaChangeHistory.ps1 +++ b/functions/Get-DbaSchemaChangeHistory.ps1 @@ -35,7 +35,7 @@ function Get-DbaSchemaChangeHistory { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Migration, Backup, Database + Tags: Trace, Changes, Database, Utility Author: Stuart Moore (@napalmgram - http://stuart-moore.com) Website: https://dbatools.io diff --git a/functions/Get-DbaServerRole.ps1 b/functions/Get-DbaServerRole.ps1 index 777c37bf7f..23438c84b0 100644 --- a/functions/Get-DbaServerRole.ps1 +++ b/functions/Get-DbaServerRole.ps1 @@ -29,7 +29,7 @@ function Get-DbaServerRole { By default, when something goes wrong we try to catch it, interpret it and give you a friendly warning message. This avoids overwhelming you with "sea of red" exceptions, but is inconvenient because it basically disables advanced scripting. Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: ServerRole, Security + Tags: Role Author: Shawn Melton (@wsmelton) Website: https://dbatools.io diff --git a/functions/Get-DbaServerRoleMember.ps1 b/functions/Get-DbaServerRoleMember.ps1 index ee89c653cd..3de3a92881 100644 --- a/functions/Get-DbaServerRoleMember.ps1 +++ b/functions/Get-DbaServerRoleMember.ps1 @@ -34,7 +34,7 @@ function Get-DbaServerRoleMember { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: ServerRole, Security, Login + Tags: Role, Login Author: Klaas Vandenberghe (@PowerDBAKlaas) Website: https://dbatools.io diff --git a/functions/Get-DbaSpinLockStatistic.ps1 b/functions/Get-DbaSpinLockStatistic.ps1 index 572009a309..13db299155 100644 --- a/functions/Get-DbaSpinLockStatistic.ps1 +++ b/functions/Get-DbaSpinLockStatistic.ps1 @@ -32,7 +32,7 @@ function Get-DbaSpinLockStatistic { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: SpinLockStatistics, Waits + Tags: Diagnostic, SpinLockStatistics, Waits Author: Patrick Flynn (@sqllensman) Website: https://dbatools.io diff --git a/functions/Get-DbaSsisExecutionHistory.ps1 b/functions/Get-DbaSsisExecutionHistory.ps1 index 8eecfc5f48..f27eed32c8 100644 --- a/functions/Get-DbaSsisExecutionHistory.ps1 +++ b/functions/Get-DbaSsisExecutionHistory.ps1 @@ -1,12 +1,12 @@ function Get-DbaSsisExecutionHistory { <# .SYNOPSIS - Get-DbaSsisHistory Retreives SSIS project and package execution History, and environments from one SQL Server to another. + Retrieves SSIS project and package execution History, and environments from one SQL Server to another. .DESCRIPTION - Get-DbaSsisHistory Retreives SSIS project and package execution History, and environments from one SQL Server to another. + Retrieves SSIS project and package execution History, and environments from one SQL Server to another. - This command gets execution history for SSIS executison given one or more instances and can be filtered by Project, Environment,Folder or Status. + This command gets execution history for SSIS execution given one or more instances and can be filtered by Project, Environment,Folder or Status. .PARAMETER SqlInstance The target SQL Server instance or instances. @@ -47,7 +47,7 @@ function Get-DbaSsisExecutionHistory { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Migration, SSIS + Tags: General, SSIS Author: Chris Tucker (@ChrisTuc47368095) Website: https://dbatools.io diff --git a/functions/Get-DbaStartupParameter.ps1 b/functions/Get-DbaStartupParameter.ps1 index 4228f320bf..60b964775f 100644 --- a/functions/Get-DbaStartupParameter.ps1 +++ b/functions/Get-DbaStartupParameter.ps1 @@ -25,7 +25,7 @@ function Get-DbaStartupParameter { If this switch is enabled, exceptions will be thrown to the caller, which will need to perform its own exception processing. Otherwise, the function will try to catch the exception, interpret it and provide a friendly error message. .NOTES - Tags: WSMan, SQLWMI, Memory + Tags: WSMan, SQLWMI, Memory, Startup Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaTcpPort.ps1 b/functions/Get-DbaTcpPort.ps1 index 6d26969a22..afe335e204 100644 --- a/functions/Get-DbaTcpPort.ps1 +++ b/functions/Get-DbaTcpPort.ps1 @@ -33,7 +33,7 @@ function Get-DbaTcpPort { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: SQLWMI, tcp + Tags: Network, Connection, TCP, SQLWMI Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaTopResourceUsage.ps1 b/functions/Get-DbaTopResourceUsage.ps1 index b4abcbe563..40b186e69f 100644 --- a/functions/Get-DbaTopResourceUsage.ps1 +++ b/functions/Get-DbaTopResourceUsage.ps1 @@ -41,7 +41,7 @@ function Get-DbaTopResourceUsage { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Query, Performance + Tags: Diagnostic, Performance, Query Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaTrace.ps1 b/functions/Get-DbaTrace.ps1 index 31788140e8..f89e14e020 100644 --- a/functions/Get-DbaTrace.ps1 +++ b/functions/Get-DbaTrace.ps1 @@ -28,7 +28,7 @@ function Get-DbaTrace { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Security, Trace + Tags: Trace Author: Garry Bargsley (@gbargsley), http://blog.garrybargsley.com Website: https://dbatools.io diff --git a/functions/Get-DbaTraceFlag.ps1 b/functions/Get-DbaTraceFlag.ps1 index f770d8f4cd..5a936f3c0a 100644 --- a/functions/Get-DbaTraceFlag.ps1 +++ b/functions/Get-DbaTraceFlag.ps1 @@ -25,7 +25,7 @@ function Get-DbaTraceFlag { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: TraceFlag, DBCC + Tags: Diagnostic, TraceFlag, DBCC Author: Kevin Bullen (@sqlpadawan) Website: https://dbatools.io diff --git a/functions/Get-DbaUptime.ps1 b/functions/Get-DbaUptime.ps1 index ee90aef1e5..79954a64b6 100644 --- a/functions/Get-DbaUptime.ps1 +++ b/functions/Get-DbaUptime.ps1 @@ -27,7 +27,7 @@ function Get-DbaUptime { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: CIM + Tags: CIM, Instance, Utility Author: Stuart Moore (@napalmgram), stuart-moore.com Website: https://dbatools.io diff --git a/functions/Get-DbaUserPermission.ps1 b/functions/Get-DbaUserPermission.ps1 index 4e72e28508..12f001c9f4 100644 --- a/functions/Get-DbaUserPermission.ps1 +++ b/functions/Get-DbaUserPermission.ps1 @@ -6,7 +6,7 @@ function Get-DbaUserPermission { .DESCRIPTION This command will display all server logins, server level securables, database logins and database securables. - DISA STIG implementators will find this command useful as it uses Permissions.sql provided by DISA. + DISA STIG implementors will find this command useful as it uses Permissions.sql provided by DISA. Note that if you Ctrl-C out of this command and end it prematurely, it will leave behind a STIG schema in tempdb. @@ -41,7 +41,7 @@ function Get-DbaUserPermission { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Discovery, Permissions, Security + Tags: Security, User Author: Brandon Abshire, netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaWaitResource.ps1 b/functions/Get-DbaWaitResource.ps1 index fd57bdf1f6..124846ba9b 100644 --- a/functions/Get-DbaWaitResource.ps1 +++ b/functions/Get-DbaWaitResource.ps1 @@ -29,7 +29,7 @@ function Get-DbaWaitResource { Use this if you want the function to throw terminating errors you want to catch. .NOTES - Tags: Pages, DBCC + Tags: Diagnostic, Pages, DBCC Author: Stuart Moore (@napalmgram), stuart-moore.com Website: https://dbatools.io diff --git a/functions/Get-DbaWaitStatistic.ps1 b/functions/Get-DbaWaitStatistic.ps1 index 15b1ddcd40..4806f2eedd 100644 --- a/functions/Get-DbaWaitStatistic.ps1 +++ b/functions/Get-DbaWaitStatistic.ps1 @@ -43,7 +43,7 @@ function Get-DbaWaitStatistic { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: WaitStatistic + Tags: Diagnostic, Waits, WaitStats Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Get-DbaWaitingTask.ps1 b/functions/Get-DbaWaitingTask.ps1 index 33d9766523..122e6e9987 100644 --- a/functions/Get-DbaWaitingTask.ps1 +++ b/functions/Get-DbaWaitingTask.ps1 @@ -29,7 +29,7 @@ function Get-DbaWaitingTask { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Waits,Task,WaitTask + Tags: Diagnostic, Waits, Task Author: Shawn Melton (@wsmelton), https://wsmelton.github.io Website: https://dbatools.io diff --git a/functions/Get-DbaWindowsLog.ps1 b/functions/Get-DbaWindowsLog.ps1 index 41216d38ef..2ac07b0a1f 100644 --- a/functions/Get-DbaWindowsLog.ps1 +++ b/functions/Get-DbaWindowsLog.ps1 @@ -37,7 +37,7 @@ function Get-DbaWindowsLog { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Logging + Tags: Logging, OS Author: Drew Furgiuele | Friedrich Weinmann (@FredWeinmann) Website: https://dbatools.io diff --git a/functions/Grant-DbaAgPermission.ps1 b/functions/Grant-DbaAgPermission.ps1 index af5f00b8d2..4d95410ac2 100644 --- a/functions/Grant-DbaAgPermission.ps1 +++ b/functions/Grant-DbaAgPermission.ps1 @@ -64,7 +64,7 @@ function Grant-DbaAgPermission { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: AvailabilityGroup, HA, AG + Tags: AG, HA Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Import-DbaCsv.ps1 b/functions/Import-DbaCsv.ps1 index 85e28a05ff..827cf819cf 100644 --- a/functions/Import-DbaCsv.ps1 +++ b/functions/Import-DbaCsv.ps1 @@ -157,7 +157,7 @@ function Import-DbaCsv { The value which denotes a DbNull-value. .PARAMETER MaxQuotedFieldLength - The maxmimum length (in bytes) for any quoted field. + The maximum length (in bytes) for any quoted field. .PARAMETER SkipEmptyLine Skip empty lines. @@ -183,7 +183,7 @@ function Import-DbaCsv { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Migration, Import + Tags: Import, Data, Utility Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Install-DbaInstance.ps1 b/functions/Install-DbaInstance.ps1 index 0a8a387f71..2d206d143d 100644 --- a/functions/Install-DbaInstance.ps1 +++ b/functions/Install-DbaInstance.ps1 @@ -61,8 +61,7 @@ function Install-DbaInstance { If the protocol fails to establish a connection Defaults: - * CredSSP when -Credential is specified - due to the fact that repository Path is usually a network share and credentials need to be passed to the remote host - to avoid the double-hop issue. + * CredSSP when -Credential is specified - due to the fact that repository Path is usually a network share and credentials need to be passed to the remote host to avoid the double-hop issue. * Default when -Credential is not specified. Will likely fail if a network path is specified. .PARAMETER Version @@ -195,8 +194,9 @@ function Install-DbaInstance { Prompts you for confirmation before executing any changing operations within the command. .NOTES - Tags: Install + Tags: Deployment, Install Author: Reitse Eskens (@2meterDBA), Kirill Kravtsov (@nvarscar) + Website: https://dbatools.io Copyright: (c) 2018 by dbatools, licensed under MIT License: MIT https://opensource.org/licenses/MIT diff --git a/functions/Invoke-DbaAdvancedInstall.ps1 b/functions/Invoke-DbaAdvancedInstall.ps1 index a20c2ec9a7..8d15ee880a 100644 --- a/functions/Invoke-DbaAdvancedInstall.ps1 +++ b/functions/Invoke-DbaAdvancedInstall.ps1 @@ -48,8 +48,7 @@ function Invoke-DbaAdvancedInstall { If the protocol fails to establish a connection Defaults: - * CredSSP when -Credential is specified - due to the fact that repository Path is usually a network share and credentials need to be passed to the remote host - to avoid the double-hop issue. + * CredSSP when -Credential is specified - due to the fact that repository Path is usually a network share and credentials need to be passed to the remote host to avoid the double-hop issue. * Default when -Credential is not specified. Will likely fail if a network path is specified. .PARAMETER PerformVolumeMaintenanceTasks @@ -76,7 +75,9 @@ function Invoke-DbaAdvancedInstall { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Instance, Update + Tags: Deployment, Install, Patching + Author: Chrissy LeMaire (@cl), netnerds.net + Website: https://dbatools.io Copyright: (c) 2018 by dbatools, licensed under MIT License: MIT https://opensource.org/licenses/MIT diff --git a/functions/Invoke-DbaAdvancedUpdate.ps1 b/functions/Invoke-DbaAdvancedUpdate.ps1 index a47512372c..2b2a84d464 100644 --- a/functions/Invoke-DbaAdvancedUpdate.ps1 +++ b/functions/Invoke-DbaAdvancedUpdate.ps1 @@ -25,8 +25,7 @@ Function Invoke-DbaAdvancedUpdate { If the protocol fails to establish a connection Defaults: - * CredSSP when -Credential is specified - due to the fact that repository Path is usually a network share and credentials need to be passed to the remote host - to avoid the double-hop issue. + * CredSSP when -Credential is specified - due to the fact that repository Path is usually a network share and credentials need to be passed to the remote host to avoid the double-hop issue. * Default when -Credential is not specified. Will likely fail if a network path is specified. .PARAMETER ExtractPath @@ -51,7 +50,9 @@ Function Invoke-DbaAdvancedUpdate { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Instance, Update + Tags: Deployment, Install, Patching, Update + Author: Kirill Kravtsov (@nvarscar) + Website: https://dbatools.io Copyright: (c) 2018 by dbatools, licensed under MIT License: MIT https://opensource.org/licenses/MIT diff --git a/functions/Invoke-DbaAgFailover.ps1 b/functions/Invoke-DbaAgFailover.ps1 index 3c56640c9c..f5a27b3a55 100644 --- a/functions/Invoke-DbaAgFailover.ps1 +++ b/functions/Invoke-DbaAgFailover.ps1 @@ -37,7 +37,7 @@ function Invoke-DbaAgFailover { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: AvailabilityGroup, HA, AG + Tags: AG, HA Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Invoke-DbaBalanceDataFiles.ps1 b/functions/Invoke-DbaBalanceDataFiles.ps1 index 25ba2ce6d8..a27abef242 100644 --- a/functions/Invoke-DbaBalanceDataFiles.ps1 +++ b/functions/Invoke-DbaBalanceDataFiles.ps1 @@ -15,7 +15,7 @@ function Invoke-DbaBalanceDataFiles { The function does NOT yet support heaps. The function will also check if the file groups are subject to balance out. - A file group whould have at least have 2 data files and should be writable. + A file group would have at least have 2 data files and should be writable. If a table is within such a file group it will be subject for processing. If not the table will be skipped. .PARAMETER SqlInstance @@ -39,14 +39,10 @@ function Invoke-DbaBalanceDataFiles { This option is also needed when the server version is below 2005. .PARAMETER WhatIf - Shows what would happen if the command were to run + Shows what would happen if the command were to run. No actions are actually performed. .PARAMETER Confirm - Prompts for confirmation of every step. For example: - - The server does not support online rebuilds of indexes. - Do you want to rebuild the indexes offline? - [Y] Yes [N] No [?] Help (default is "Y"): + Prompts you for confirmation before executing any changing operations within the command. .PARAMETER EnableException By default, when something goes wrong we try to catch it, interpret it and give you a friendly warning message. @@ -58,7 +54,7 @@ function Invoke-DbaBalanceDataFiles { Use this with caution!! .NOTES - Tags: Database, FileManagement, File, Space + Tags: Database, FileManagement, File, Utility Author: Sander Stad (@sqlstad), sqlstad.nl Website: https://dbatools.io diff --git a/functions/Invoke-DbaCycleErrorLog.ps1 b/functions/Invoke-DbaCycleErrorLog.ps1 index cdb7e5195e..140430e1f2 100644 --- a/functions/Invoke-DbaCycleErrorLog.ps1 +++ b/functions/Invoke-DbaCycleErrorLog.ps1 @@ -32,7 +32,7 @@ function Invoke-DbaCycleErrorLog { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Log, Cycle + Tags: Instance, ErrorLog, Logging Author: Shawn Melton (@wsmelton), https://wsmelton.github.io Website: https://dbatools.io diff --git a/functions/Invoke-DbaDbDataGenerator.ps1 b/functions/Invoke-DbaDbDataGenerator.ps1 index 8c611034e0..683209507b 100644 --- a/functions/Invoke-DbaDbDataGenerator.ps1 +++ b/functions/Invoke-DbaDbDataGenerator.ps1 @@ -67,7 +67,7 @@ function Invoke-DbaDbDataGenerator { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: DataGeneration, Database + Tags: DataGeneration Author: Sander Stad (@sqlstad, sqlstad.nl) Website: https://dbatools.io diff --git a/functions/Invoke-DbaDbDecryptObject.ps1 b/functions/Invoke-DbaDbDecryptObject.ps1 index 45d5a9e803..33d2afcbe8 100644 --- a/functions/Invoke-DbaDbDecryptObject.ps1 +++ b/functions/Invoke-DbaDbDecryptObject.ps1 @@ -1,7 +1,7 @@ function Invoke-DbaDbDecryptObject { <# .SYNOPSIS - Invoke-DbaDbDecryptObject returns the decrypted version of an object + Returns the decrypted version of an object .DESCRIPTION SQL Server provides an option to encrypt the code used in various types of objects. @@ -52,7 +52,7 @@ function Invoke-DbaDbDecryptObject { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Encryption, Decrypt, Database + Tags: Encryption, Decrypt, Utility Author: Sander Stad (@sqlstad), sqlstad.nl Website: https://dbatools.io diff --git a/functions/Invoke-DbaDbPiiScan.ps1 b/functions/Invoke-DbaDbPiiScan.ps1 index 0c78de95c1..a014222991 100644 --- a/functions/Invoke-DbaDbPiiScan.ps1 +++ b/functions/Invoke-DbaDbPiiScan.ps1 @@ -70,7 +70,7 @@ function Invoke-DbaDbPiiScan { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Data Masking, Database, Personal Information, GDPR, Policy Compliance + Tags: DataMasking, GDPR, PII Author: Sander Stad (@sqlstad, sqlstad.nl) Website: https://dbatools.io diff --git a/functions/Invoke-DbaDbTransfer.ps1 b/functions/Invoke-DbaDbTransfer.ps1 index f6287f8959..034582de86 100644 --- a/functions/Invoke-DbaDbTransfer.ps1 +++ b/functions/Invoke-DbaDbTransfer.ps1 @@ -102,7 +102,7 @@ function Invoke-DbaDbTransfer { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Migration + Tags: General, Object Author: Kirill Kravtsov (@nvarscar) Website: https://dbatools.io @@ -142,67 +142,27 @@ function Invoke-DbaDbTransfer { [CmdletBinding(DefaultParameterSetName = "Default", SupportsShouldProcess)] Param ( [DbaInstanceParameter]$SqlInstance, - [PSCredential]$SqlCredential, - [DbaInstanceParameter]$DestinationSqlInstance, - [PSCredential]$DestinationSqlCredential, - [string]$Database, - [string]$DestinationDatabase = $Database, - [int]$BatchSize = 50000, - [int]$BulkCopyTimeOut = 5000, - [Microsoft.SqlServer.Management.Smo.ScriptingOptions]$ScriptingOption, - [Parameter(ValueFromPipeline)] [Microsoft.SqlServer.Management.Smo.Transfer]$InputObject, - [switch]$CopyAllObjects, - - [ValidateSet( - 'FullTextCatalogs', - 'FullTextStopLists', - 'SearchPropertyLists', - 'Tables', - 'Views', - 'StoredProcedures', - 'UserDefinedFunctions', - 'UserDefinedDataTypes', - 'UserDefinedTableTypes', - 'PlanGuides', - 'Rules', - 'Defaults', - 'Users', - 'Roles', - 'PartitionSchemes', - 'PartitionFunctions', - 'XmlSchemaCollections', - 'SqlAssemblies', - 'UserDefinedAggregates', - 'UserDefinedTypes', - 'Schemas', - 'Synonyms', - 'Sequences', - 'DatabaseTriggers', - 'DatabaseScopedCredentials', - 'ExternalFileFormats', - 'ExternalDataSources', - 'Logins', - 'ExternalLibraries' - )] + [ValidateSet('FullTextCatalogs', 'FullTextStopLists', 'SearchPropertyLists', + 'Tables', 'Views', 'StoredProcedures', 'UserDefinedFunctions', 'UserDefinedDataTypes', + 'UserDefinedTableTypes', 'PlanGuides', 'Rules', 'Defaults', 'Users', 'Roles', 'PartitionSchemes', + 'PartitionFunctions', 'XmlSchemaCollections', 'SqlAssemblies', 'UserDefinedAggregates', + 'UserDefinedTypes', 'Schemas', 'Synonyms', 'Sequences', 'DatabaseTriggers', 'DatabaseScopedCredentials', + 'ExternalFileFormats', 'ExternalDataSources', 'Logins', 'ExternalLibraries')] [string[]]$CopyAll, - [switch]$SchemaOnly, - [switch]$DataOnly, - [switch]$ScriptOnly, - [switch]$EnableException ) begin { diff --git a/functions/Invoke-DbaQuery.ps1 b/functions/Invoke-DbaQuery.ps1 index bfb8caeac3..ffd562163c 100644 --- a/functions/Invoke-DbaQuery.ps1 +++ b/functions/Invoke-DbaQuery.ps1 @@ -62,7 +62,7 @@ function Invoke-DbaQuery { Default is 'Text'. Further information: https://docs.microsoft.com/en-us/dotnet/api/system.data.sqlclient.sqlcommand.commandtype .NOTES - Tags: Database, Query + Tags: Database, Query, Utility Author: Friedrich Weinmann (@FredWeinmann) Website: https://dbatools.io diff --git a/functions/Join-DbaAvailabilityGroup.ps1 b/functions/Join-DbaAvailabilityGroup.ps1 index 893fff21e6..934ca66f6a 100644 --- a/functions/Join-DbaAvailabilityGroup.ps1 +++ b/functions/Join-DbaAvailabilityGroup.ps1 @@ -38,7 +38,7 @@ function Join-DbaAvailabilityGroup { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: AvailabilityGroup, HA, AG + Tags: AG, HA Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/internal/functions/utility/Join-DbaPath.ps1 b/functions/Join-DbaPath.ps1 similarity index 83% rename from internal/functions/utility/Join-DbaPath.ps1 rename to functions/Join-DbaPath.ps1 index 07be2f2b98..21a3cf6706 100644 --- a/internal/functions/utility/Join-DbaPath.ps1 +++ b/functions/Join-DbaPath.ps1 @@ -15,6 +15,17 @@ function Join-DbaPath { .PARAMETER Child Any number of child paths to add. + .NOTES + Tags: Path, Utility + Author: Friedrich Weinmann (@FredWeinmann) + + Website: https://dbatools.io + Copyright: (c) 2018 by dbatools, licensed under MIT + License: MIT https://opensource.org/licenses/MIT + + .LINK + https://dbatools.io/Join-DbaPath + .EXAMPLE PS C:\> Join-DbaPath -Path 'C:\temp' 'Foo' 'Bar' @@ -25,7 +36,7 @@ function Join-DbaPath { param ( [Parameter(Mandatory, Position = 0)] [string]$Path, - [dbainstanceparameter]$SqlInstance, + [DbaInstanceParameter]$SqlInstance, [Parameter(ValueFromRemainingArguments)] [Alias("ChildPath")] [string[]]$Child diff --git a/functions/Measure-DbaDbVirtualLogFile.ps1 b/functions/Measure-DbaDbVirtualLogFile.ps1 index 290b59eca7..5260bef4f8 100644 --- a/functions/Measure-DbaDbVirtualLogFile.ps1 +++ b/functions/Measure-DbaDbVirtualLogFile.ps1 @@ -39,7 +39,7 @@ function Measure-DbaDbVirtualLogFile { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: VLF, Database + Tags: Diagnostic, VLF, LogFile Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Measure-DbaDiskSpaceRequirement.ps1 b/functions/Measure-DbaDiskSpaceRequirement.ps1 index efb11ae2e8..c9cb7a7976 100644 --- a/functions/Measure-DbaDiskSpaceRequirement.ps1 +++ b/functions/Measure-DbaDiskSpaceRequirement.ps1 @@ -43,7 +43,7 @@ function Measure-DbaDiskSpaceRequirement { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Server, Management, Space, Database + Tags: Diagnostic, Storage, Space, Database Author: Pollus Brodeur (@pollusb) Website: https://dbatools.io diff --git a/functions/Mount-DbaDatabase.ps1 b/functions/Mount-DbaDatabase.ps1 index 7d30405a3a..472deebc4b 100644 --- a/functions/Mount-DbaDatabase.ps1 +++ b/functions/Mount-DbaDatabase.ps1 @@ -40,7 +40,7 @@ function Mount-DbaDatabase { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Database + Tags: Attach, Database Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/New-DbaAvailabilityGroup.ps1 b/functions/New-DbaAvailabilityGroup.ps1 index 63f0477022..4c58ab7026 100644 --- a/functions/New-DbaAvailabilityGroup.ps1 +++ b/functions/New-DbaAvailabilityGroup.ps1 @@ -94,7 +94,7 @@ function New-DbaAvailabilityGroup { Defaults to 30000 (30 seconds). .PARAMETER Basic - Indicates whether the availability group is basic. Basic availability groups like pumpkin spice and uggs. + Indicates whether the availability group is Basic Availability Group. https://docs.microsoft.com/en-us/sql/database-engine/availability-groups/windows/basic-availability-groups-always-on-availability-groups @@ -197,7 +197,7 @@ function New-DbaAvailabilityGroup { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: AvailabilityGroup, HA, AG + Tags: AG, HA Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/New-DbaClientAlias.ps1 b/functions/New-DbaClientAlias.ps1 index 3e8db1d4e6..9fb935cf20 100644 --- a/functions/New-DbaClientAlias.ps1 +++ b/functions/New-DbaClientAlias.ps1 @@ -33,7 +33,7 @@ function New-DbaClientAlias { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Alias + Tags: SqlClient, Alias Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/New-DbaComputerCertificate.ps1 b/functions/New-DbaComputerCertificate.ps1 index 1bc3f3966d..f299ed198b 100644 --- a/functions/New-DbaComputerCertificate.ps1 +++ b/functions/New-DbaComputerCertificate.ps1 @@ -20,7 +20,7 @@ function New-DbaComputerCertificate { The certificate is generated using AD's webserver SSL template on the client machine and pushed to the remote machine. .PARAMETER ComputerName - The target SQL Server instance or instances. Defaults to localhost. If target is a cluster, you must also specify ClusterInstanceName (see below) + The target SQL Server instance or instances. Defaults to localhost. If target is a cluster, you must also specify ClusterInstanceName (see below) .PARAMETER Credential Allows you to login to $ComputerName using alternative credentials. @@ -70,7 +70,7 @@ function New-DbaComputerCertificate { Prompts you for confirmation before executing any changing operations within the command. .NOTES - Tags: Certificate + Tags: Certificate, Security Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/New-DbaComputerCertificateSigningRequest.ps1 b/functions/New-DbaComputerCertificateSigningRequest.ps1 index de7cb0a20a..be0e2447ce 100644 --- a/functions/New-DbaComputerCertificateSigningRequest.ps1 +++ b/functions/New-DbaComputerCertificateSigningRequest.ps1 @@ -9,7 +9,7 @@ function New-DbaComputerCertificateSigningRequest { By default, a key with a length of 1024 and a friendly name of the machines FQDN is generated. .PARAMETER ComputerName - The target SQL Server instance or instances. Defaults to localhost. If target is a cluster, you must also specify ClusterInstanceName (see below) + The target SQL Server instance or instances. Defaults to localhost. If target is a cluster, you must also specify ClusterInstanceName (see below) .PARAMETER Credential Allows you to login to $ComputerName using alternative credentials. @@ -41,7 +41,7 @@ function New-DbaComputerCertificateSigningRequest { Prompts you for confirmation before executing any changing operations within the command. .NOTES - Tags: Certificate + Tags: Certificate, Security Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io @@ -52,25 +52,24 @@ function New-DbaComputerCertificateSigningRequest { https://dbatools.io/New-DbaComputerCertificateSigningRequest .EXAMPLE - PS C:\> New-DbaComputerCertificate + PS C:\> New-DbaComputerCertificateSigningRequest Creates a computer certificate signing request for the local machine with the keylength of 1024. .EXAMPLE - PS C:\> New-DbaComputerCertificate -ComputerName Server1 + PS C:\> New-DbaComputerCertificateSigningRequest -ComputerName Server1 Creates a computer certificate signing request for server1 with the keylength of 1024. .EXAMPLE - PS C:\> New-DbaComputerCertificate -ComputerName sqla, sqlb -ClusterInstanceName sqlcluster -KeyLength 4096 + PS C:\> New-DbaComputerCertificateSigningRequest -ComputerName sqla, sqlb -ClusterInstanceName sqlcluster -KeyLength 4096 Creates a computer certificate signing request for sqlcluster with the keylength of 4096. .EXAMPLE - PS C:\> New-DbaComputerCertificate -ComputerName Server1 -WhatIf + PS C:\> New-DbaComputerCertificateSigningRequest -ComputerName Server1 -WhatIf Shows what would happen if the command were run - #> [CmdletBinding(SupportsShouldProcess, ConfirmImpact = "Low")] [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSUseOutputTypeCorrectly", "", Justification = "PSSA Rule Ignored by BOH")] diff --git a/functions/New-DbaCredential.ps1 b/functions/New-DbaCredential.ps1 index d4712e20e4..bea57310c9 100644 --- a/functions/New-DbaCredential.ps1 +++ b/functions/New-DbaCredential.ps1 @@ -46,7 +46,7 @@ function New-DbaCredential { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Certificate, Credential + Tags: Certificate, Credential, Security Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/New-DbaCustomError.ps1 b/functions/New-DbaCustomError.ps1 index 745f06ed38..6b33d4d403 100644 --- a/functions/New-DbaCustomError.ps1 +++ b/functions/New-DbaCustomError.ps1 @@ -44,7 +44,7 @@ function New-DbaCustomError { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Error, CustomError + Tags: General, Error Author: Adam Lancaster https://github.com/lancasteradam Website: https://dbatools.io diff --git a/functions/New-DbaDacOption.ps1 b/functions/New-DbaDacOption.ps1 index 94e9740d8a..3c82e09a7f 100644 --- a/functions/New-DbaDacOption.ps1 +++ b/functions/New-DbaDacOption.ps1 @@ -32,7 +32,7 @@ function New-DbaDacOption { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Migration, Database, Dacpac + Tags: Deployment, Dacpac Author: Kirill Kravtsov (@nvarscar), nvarscar.wordpress.com Website: https://dbatools.io diff --git a/functions/New-DbaDacProfile.ps1 b/functions/New-DbaDacProfile.ps1 index 3e39c12387..93e422294e 100644 --- a/functions/New-DbaDacProfile.ps1 +++ b/functions/New-DbaDacProfile.ps1 @@ -47,7 +47,7 @@ function New-DbaDacProfile { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Dacpac + Tags: Deployment, Dacpac Author: Richie lee (@richiebzzzt) Website: https://dbatools.io diff --git a/functions/New-DbaDbAsymmetricKey.ps1 b/functions/New-DbaDbAsymmetricKey.ps1 index 7161ec8f8b..24cd1d190c 100644 --- a/functions/New-DbaDbAsymmetricKey.ps1 +++ b/functions/New-DbaDbAsymmetricKey.ps1 @@ -29,12 +29,12 @@ function New-DbaDbAsymmetricKey { Enables piping from Get-DbaDatabase .PARAMETER KeySourceType - The source of external keys loaded in, can be one of Executable, File or Assemnly + The source of external keys loaded in, can be one of Executable, File or Assembly We do not currently support Provider .PARAMETER KeySource The path to the Executable, File or Assembly to be passed in. - The path is parsed by the SQL Server instance, so needs to visiable to the instance + The path is parsed by the SQL Server instance, so needs to be visible to the instance .PARAMETER Algorithm The algorithm used to generate the key. Can be one of RSA512, RSA1024, RSA1024, RSA2048, RSA3072 or RSA4096. If not specified RSA2048 is the default @@ -55,7 +55,7 @@ function New-DbaDbAsymmetricKey { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: asymmetrickey + Tags: Certificate, Security Author: Stuart Moore (@napalmgram), stuart-moore.com Website: https://dbatools.io diff --git a/functions/New-DbaDbCertificate.ps1 b/functions/New-DbaDbCertificate.ps1 index 442bbad08f..cf3f479c47 100644 --- a/functions/New-DbaDbCertificate.ps1 +++ b/functions/New-DbaDbCertificate.ps1 @@ -52,7 +52,7 @@ function New-DbaDbCertificate { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Certificate + Tags: Certificate, Security Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/New-DbaDbFileGroup.ps1 b/functions/New-DbaDbFileGroup.ps1 index b85f28795a..0ad724f412 100644 --- a/functions/New-DbaDbFileGroup.ps1 +++ b/functions/New-DbaDbFileGroup.ps1 @@ -41,7 +41,7 @@ function New-DbaDbFileGroup { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Data, Database, File, FileGroup, Migration, Partitioning, Table + Tags: Storage, Data, File, FileGroup Author: Adam Lancaster https://github.com/lancasteradam dbatools PowerShell module (https://dbatools.io) diff --git a/functions/New-DbaDbMasterKey.ps1 b/functions/New-DbaDbMasterKey.ps1 index 1d9df0acd1..93a7209249 100644 --- a/functions/New-DbaDbMasterKey.ps1 +++ b/functions/New-DbaDbMasterKey.ps1 @@ -40,7 +40,7 @@ function New-DbaDbMasterKey { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Certificate + Tags: Certificate, Security Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/New-DbaDbRole.ps1 b/functions/New-DbaDbRole.ps1 index 2a13516c04..3ada2d4639 100644 --- a/functions/New-DbaDbRole.ps1 +++ b/functions/New-DbaDbRole.ps1 @@ -6,7 +6,7 @@ function New-DbaDbRole { .DESCRIPTION The New-DbaDbRole create new roles on database(s)/ instance(s) of SQL Server. - .PARAMETER SqlInstance + .PARAMETER SqlInstance The target SQL Server instance or instances. .PARAMETER SqlCredential @@ -43,8 +43,8 @@ function New-DbaDbRole { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Role, Database, Security - Author: Cláudio Silva (@ClaudioESSilva), https://claudioessilva.eu + Tags: Role, User + Author: Claudio Silva (@ClaudioESSilva), https://claudioessilva.eu Website: https://dbatools.io Copyright: (c) 2018 by dbatools, licensed under MIT License: MIT https://opensource.org/licenses/MIT diff --git a/functions/New-DbaDbSchema.ps1 b/functions/New-DbaDbSchema.ps1 index a7fa46328e..2c59064781 100644 --- a/functions/New-DbaDbSchema.ps1 +++ b/functions/New-DbaDbSchema.ps1 @@ -41,7 +41,7 @@ function New-DbaDbSchema { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Data, Database, Migration, Permission, Security, Schema, Table, User + Tags: Schema, Database Author: Adam Lancaster https://github.com/lancasteradam dbatools PowerShell module (https://dbatools.io) diff --git a/functions/New-DbaDbTransfer.ps1 b/functions/New-DbaDbTransfer.ps1 index 5a97090a24..b783d67c47 100644 --- a/functions/New-DbaDbTransfer.ps1 +++ b/functions/New-DbaDbTransfer.ps1 @@ -89,7 +89,7 @@ function New-DbaDbTransfer { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Migration + Tags: General, Transfer, Object Author: Kirill Kravtsov (@nvarscar) Website: https://dbatools.io @@ -114,65 +114,26 @@ function New-DbaDbTransfer { [CmdletBinding(DefaultParameterSetName = "Default")] Param ( [DbaInstanceParameter]$SqlInstance, - [PSCredential]$SqlCredential, - [DbaInstanceParameter]$DestinationSqlInstance, - [PSCredential]$DestinationSqlCredential, - [string]$Database, - [string]$DestinationDatabase = $Database, - [int]$BatchSize = 50000, - [int]$BulkCopyTimeOut = 5000, - [Microsoft.SqlServer.Management.Smo.ScriptingOptions]$ScriptingOption, - [Parameter(ValueFromPipeline)] [Microsoft.SqlServer.Management.Smo.NamedSmoObject[]]$InputObject, - [switch]$CopyAllObjects, - - [ValidateSet( - 'FullTextCatalogs', - 'FullTextStopLists', - 'SearchPropertyLists', - 'Tables', - 'Views', - 'StoredProcedures', - 'UserDefinedFunctions', - 'UserDefinedDataTypes', - 'UserDefinedTableTypes', - 'PlanGuides', - 'Rules', - 'Defaults', - 'Users', - 'Roles', - 'PartitionSchemes', - 'PartitionFunctions', - 'XmlSchemaCollections', - 'SqlAssemblies', - 'UserDefinedAggregates', - 'UserDefinedTypes', - 'Schemas', - 'Synonyms', - 'Sequences', - 'DatabaseTriggers', - 'DatabaseScopedCredentials', - 'ExternalFileFormats', - 'ExternalDataSources', - 'Logins', - 'ExternalLibraries' - )] + [ValidateSet('FullTextCatalogs', 'FullTextStopLists', 'SearchPropertyLists', 'Tables', + 'Views', 'StoredProcedures', 'UserDefinedFunctions', 'UserDefinedDataTypes', 'UserDefinedTableTypes', + 'PlanGuides', 'Rules', 'Defaults', 'Users', 'Roles', 'PartitionSchemes', 'PartitionFunctions', + 'XmlSchemaCollections', 'SqlAssemblies', 'UserDefinedAggregates', 'UserDefinedTypes', 'Schemas', + 'Synonyms', 'Sequences', 'DatabaseTriggers', 'DatabaseScopedCredentials', 'ExternalFileFormats', + 'ExternalDataSources', 'Logins', 'ExternalLibraries')] [string[]]$CopyAll, - [switch]$SchemaOnly, - [switch]$DataOnly, - [switch]$EnableException ) begin { diff --git a/functions/New-DbaDirectory.ps1 b/functions/New-DbaDirectory.ps1 index 78660a9d4e..2f96917c30 100644 --- a/functions/New-DbaDirectory.ps1 +++ b/functions/New-DbaDirectory.ps1 @@ -32,7 +32,7 @@ function New-DbaDirectory { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Path, Directory, Folder + Tags: Storage, Path, Directory, Folder Author: Stuart Moore Website: https://dbatools.io diff --git a/functions/New-DbaFirewallRule.ps1 b/functions/New-DbaFirewallRule.ps1 index 2aea3dc3e2..3e3c15a123 100644 --- a/functions/New-DbaFirewallRule.ps1 +++ b/functions/New-DbaFirewallRule.ps1 @@ -75,7 +75,7 @@ function New-DbaFirewallRule { If this switch is enabled, you will be prompted for confirmation before executing any operations that change state. .NOTES - Tags: Firewall, Network + Tags: Network, Connection, Firewall Author: Andreas Jordan (@JordanOrdix), ordix.de Website: https://dbatools.io diff --git a/functions/New-DbaLinkedServer.ps1 b/functions/New-DbaLinkedServer.ps1 index 3428d2c77f..0a5b8ad50a 100644 --- a/functions/New-DbaLinkedServer.ps1 +++ b/functions/New-DbaLinkedServer.ps1 @@ -53,7 +53,7 @@ function New-DbaLinkedServer { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Security, Server + Tags: LinkedServer, Server Author: Adam Lancaster https://github.com/lancasteradam dbatools PowerShell module (https://dbatools.io) diff --git a/functions/New-DbaLinkedServerLogin.ps1 b/functions/New-DbaLinkedServerLogin.ps1 index 1b7cd3d5f0..28395a3ab9 100644 --- a/functions/New-DbaLinkedServerLogin.ps1 +++ b/functions/New-DbaLinkedServerLogin.ps1 @@ -47,7 +47,7 @@ function New-DbaLinkedServerLogin { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Security, Server + Tags: LinkedServer, Server Author: Adam Lancaster https://github.com/lancasteradam dbatools PowerShell module (https://dbatools.io) diff --git a/functions/New-DbaLogin.ps1 b/functions/New-DbaLogin.ps1 index 983d65d621..d8403a144d 100644 --- a/functions/New-DbaLogin.ps1 +++ b/functions/New-DbaLogin.ps1 @@ -83,7 +83,7 @@ function New-DbaLogin { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Login, Security + Tags: Login Author: Kirill Kravtsov (@nvarscar) Website: https://dbatools.io diff --git a/functions/New-DbaScriptingOption.ps1 b/functions/New-DbaScriptingOption.ps1 index f0516a9888..1391155412 100644 --- a/functions/New-DbaScriptingOption.ps1 +++ b/functions/New-DbaScriptingOption.ps1 @@ -9,7 +9,7 @@ function New-DbaScriptingOption { See https://msdn.microsoft.com/en-us/library/microsoft.sqlserver.management.smo.scriptingoptions.aspx for more information .NOTES - Tags: Migration, Backup, DR + Tags: General, Script, Object Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/New-DbaServerRole.ps1 b/functions/New-DbaServerRole.ps1 index 869f92593c..e89dd0d38e 100644 --- a/functions/New-DbaServerRole.ps1 +++ b/functions/New-DbaServerRole.ps1 @@ -6,7 +6,7 @@ function New-DbaServerRole { .DESCRIPTION The New-DbaServerRole create new roles on instance(s) of SQL Server. - .PARAMETER SqlInstance + .PARAMETER SqlInstance The target SQL Server instance or instances. .PARAMETER SqlCredential @@ -37,8 +37,8 @@ function New-DbaServerRole { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Role, Database, Security - Author: Cláudio Silva (@ClaudioESSilva), https://claudioessilva.eu + Tags: Role + Author: Claudio Silva (@ClaudioESSilva), https://claudioessilva.eu Website: https://dbatools.io Copyright: (c) 2018 by dbatools, licensed under MIT License: MIT https://opensource.org/licenses/MIT diff --git a/functions/New-DbaServiceMasterKey.ps1 b/functions/New-DbaServiceMasterKey.ps1 index b467057643..a4006e24c3 100644 --- a/functions/New-DbaServiceMasterKey.ps1 +++ b/functions/New-DbaServiceMasterKey.ps1 @@ -34,7 +34,7 @@ function New-DbaServiceMasterKey { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Certificate + Tags: Certificate, Security Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/New-DbaSqlParameter.ps1 b/functions/New-DbaSqlParameter.ps1 index 291e169b1e..6a8449effd 100644 --- a/functions/New-DbaSqlParameter.ps1 +++ b/functions/New-DbaSqlParameter.ps1 @@ -75,7 +75,7 @@ function New-DbaSqlParameter { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Query + Tags: Utility, Query Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io Copyright: (c) 2021 by dbatools, licensed under MIT diff --git a/functions/Publish-DbaDacPackage.ps1 b/functions/Publish-DbaDacPackage.ps1 index fba35199e6..19c97fc1bb 100644 --- a/functions/Publish-DbaDacPackage.ps1 +++ b/functions/Publish-DbaDacPackage.ps1 @@ -59,7 +59,7 @@ function Publish-DbaDacPackage { Path to the dac dll. If this is omitted, then the version of dac dll which is packaged with dbatools is used. .NOTES - Tags: Migration, Database, Dacpac, Bacpac + Tags: Deployment, Dacpac, Bacpac Author: Richie lee (@richiebzzzt) Website: https://dbatools.io diff --git a/functions/Read-DbaAuditFile.ps1 b/functions/Read-DbaAuditFile.ps1 index 63dfd7c09d..2ceb5db5e0 100644 --- a/functions/Read-DbaAuditFile.ps1 +++ b/functions/Read-DbaAuditFile.ps1 @@ -18,7 +18,7 @@ function Read-DbaAuditFile { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: ExtendedEvent, Audit + Tags: XE, Audit, Security Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Read-DbaTraceFile.ps1 b/functions/Read-DbaTraceFile.ps1 index b0c7f380e2..f70c18f110 100644 --- a/functions/Read-DbaTraceFile.ps1 +++ b/functions/Read-DbaTraceFile.ps1 @@ -127,7 +127,7 @@ function Read-DbaTraceFile { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Security, Trace + Tags: Trace Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Read-DbaTransactionLog.ps1 b/functions/Read-DbaTransactionLog.ps1 index 2969f87ac9..8c22305a36 100644 --- a/functions/Read-DbaTransactionLog.ps1 +++ b/functions/Read-DbaTransactionLog.ps1 @@ -37,7 +37,7 @@ function Read-DbaTransactionLog { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Database, Log, LogFile + Tags: Log, LogFile, Utility Author: Stuart Moore (@napalmgram), stuart-moore.com Website: https://dbatools.io diff --git a/functions/Remove-DbaAgDatabase.ps1 b/functions/Remove-DbaAgDatabase.ps1 index 89bbb5a648..83e4d1e43d 100644 --- a/functions/Remove-DbaAgDatabase.ps1 +++ b/functions/Remove-DbaAgDatabase.ps1 @@ -37,7 +37,7 @@ function Remove-DbaAgDatabase { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: AvailabilityGroup, HA, AG + Tags: AG, HA Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Remove-DbaAgListener.ps1 b/functions/Remove-DbaAgListener.ps1 index 4652949eb1..e5043a0693 100644 --- a/functions/Remove-DbaAgListener.ps1 +++ b/functions/Remove-DbaAgListener.ps1 @@ -37,7 +37,7 @@ function Remove-DbaAgListener { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: AvailabilityGroup, HA, AG + Tags: AG, HA Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Remove-DbaAgReplica.ps1 b/functions/Remove-DbaAgReplica.ps1 index de1b0034cc..ae5706f58c 100644 --- a/functions/Remove-DbaAgReplica.ps1 +++ b/functions/Remove-DbaAgReplica.ps1 @@ -37,7 +37,7 @@ function Remove-DbaAgReplica { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: AvailabilityGroup, HA, AG + Tags: AG, HA Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Remove-DbaAgentAlert.ps1 b/functions/Remove-DbaAgentAlert.ps1 index 42ce1cff0e..b3cdfec068 100644 --- a/functions/Remove-DbaAgentAlert.ps1 +++ b/functions/Remove-DbaAgentAlert.ps1 @@ -38,7 +38,7 @@ function Remove-DbaAgentAlert { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Agent, Alert, SMO + Tags: Agent, Alert Author: Mikey Bronowski (@MikeyBronowski), https://bronowski.it dbatools PowerShell module (https://dbatools.io) Copyright: (c) 2021 by dbatools, licensed under MIT diff --git a/functions/Remove-DbaAgentProxy.ps1 b/functions/Remove-DbaAgentProxy.ps1 index d2a7a581b2..a256e93d97 100644 --- a/functions/Remove-DbaAgentProxy.ps1 +++ b/functions/Remove-DbaAgentProxy.ps1 @@ -38,7 +38,7 @@ function Remove-DbaAgentProxy { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Agent, Proxy, SMO + Tags: Agent, Proxy Author: Mikey Bronowski (@MikeyBronowski), https://bronowski.it dbatools PowerShell module (https://dbatools.io) Copyright: (c) 2021 by dbatools, licensed under MIT diff --git a/functions/Remove-DbaAvailabilityGroup.ps1 b/functions/Remove-DbaAvailabilityGroup.ps1 index be44cf4c82..ea95190459 100644 --- a/functions/Remove-DbaAvailabilityGroup.ps1 +++ b/functions/Remove-DbaAvailabilityGroup.ps1 @@ -47,7 +47,7 @@ function Remove-DbaAvailabilityGroup { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: AvailabilityGroup, HA, AG + Tags: AG, HA Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Remove-DbaBackup.ps1 b/functions/Remove-DbaBackup.ps1 index 5f6e15c120..e71a39c8d2 100644 --- a/functions/Remove-DbaBackup.ps1 +++ b/functions/Remove-DbaBackup.ps1 @@ -52,7 +52,7 @@ function Remove-DbaBackup { If this switch is enabled, you will be prompted for confirmation before executing any operations that change state.i .NOTES - Tags: Storage, DisasterRecovery, Backup + Tags: Backup, DisasterRecovery Author: Chris Sommer (@cjsommer), www.cjsommer.com Website: https://dbatools.io diff --git a/functions/Remove-DbaClientAlias.ps1 b/functions/Remove-DbaClientAlias.ps1 index 958bc29da9..cbee975c6e 100644 --- a/functions/Remove-DbaClientAlias.ps1 +++ b/functions/Remove-DbaClientAlias.ps1 @@ -27,7 +27,7 @@ function Remove-DbaClientAlias { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Alias + Tags: SqlClient, Alias Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io @@ -38,15 +38,14 @@ function Remove-DbaClientAlias { https://dbatools.io/Remove-DbaClientAlias .EXAMPLE - PS C:\> Remove-DbaClientAlias -ComputerName workstationx -Alias sqlps + PS C:\> Remove-DbaClientAlias -ComputerName workstationX -Alias sqlps - Removes the sqlps SQL client alias on workstationx + Removes the sqlps SQL Client alias on workstationX .EXAMPLE PS C:\> Get-DbaClientAlias | Remove-DbaClientAlias Removes all SQL Server client aliases on the local computer - #> [CmdletBinding(SupportsShouldProcess)] param ( @@ -58,7 +57,6 @@ function Remove-DbaClientAlias { [string[]]$Alias, [switch]$EnableException ) - begin { $scriptBlock = { $Alias = $args @@ -97,7 +95,6 @@ function Remove-DbaClientAlias { } } } - process { foreach ($computer in $ComputerName) { $null = Test-ElevationRequirement -ComputerName $computer -Continue diff --git a/functions/Remove-DbaComputerCertificate.ps1 b/functions/Remove-DbaComputerCertificate.ps1 index c90beee9bb..2899e9a391 100644 --- a/functions/Remove-DbaComputerCertificate.ps1 +++ b/functions/Remove-DbaComputerCertificate.ps1 @@ -4,7 +4,7 @@ function Remove-DbaComputerCertificate { Removes a computer certificate - useful for removing easily certs from remote computers .DESCRIPTION - Removes a computer certificate from a local or remote compuer + Removes a computer certificate from a local or remote computer .PARAMETER ComputerName The target computer. Defaults to localhost. @@ -33,7 +33,7 @@ function Remove-DbaComputerCertificate { Prompts you for confirmation before executing any changing operations within the command. .NOTES - Tags: Certificate + Tags: Certificate, Security Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io Copyright: (c) 2018 by dbatools, licensed under MIT diff --git a/functions/Remove-DbaCredential.ps1 b/functions/Remove-DbaCredential.ps1 index 4ad382b7f0..425cd91832 100644 --- a/functions/Remove-DbaCredential.ps1 +++ b/functions/Remove-DbaCredential.ps1 @@ -45,7 +45,7 @@ function Remove-DbaCredential { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Credential + Tags: Security, Credential Author: Mikey Bronowski (@MikeyBronowski), https://bronowski.it dbatools PowerShell module (https://dbatools.io) Copyright: (c) 2021 by dbatools, licensed under MIT diff --git a/functions/Remove-DbaCustomError.ps1 b/functions/Remove-DbaCustomError.ps1 index ac6369a9a8..5f6416df07 100644 --- a/functions/Remove-DbaCustomError.ps1 +++ b/functions/Remove-DbaCustomError.ps1 @@ -33,7 +33,7 @@ function Remove-DbaCustomError { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Error, CustomError + Tags: General, Error Author: Adam Lancaster https://github.com/lancasteradam Website: https://dbatools.io diff --git a/functions/Remove-DbaDatabase.ps1 b/functions/Remove-DbaDatabase.ps1 index 5c9d830384..788755be17 100644 --- a/functions/Remove-DbaDatabase.ps1 +++ b/functions/Remove-DbaDatabase.ps1 @@ -34,7 +34,7 @@ function Remove-DbaDatabase { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Delete, Databases + Tags: Delete, Database Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Remove-DbaDatabaseSafely.ps1 b/functions/Remove-DbaDatabaseSafely.ps1 index 029d189229..481d2e9ee9 100644 --- a/functions/Remove-DbaDatabaseSafely.ps1 +++ b/functions/Remove-DbaDatabaseSafely.ps1 @@ -72,7 +72,7 @@ function Remove-DbaDatabaseSafely { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Database, Remove + Tags: Database, Delete Author: Rob Sewell (@SQLDBAWithBeard), sqldbawithabeard.com Website: https://dbatools.io diff --git a/functions/Remove-DbaDbAsymmetricKey.ps1 b/functions/Remove-DbaDbAsymmetricKey.ps1 index 9403e4d4b5..6556273b2e 100644 --- a/functions/Remove-DbaDbAsymmetricKey.ps1 +++ b/functions/Remove-DbaDbAsymmetricKey.ps1 @@ -37,7 +37,7 @@ function Remove-DbaDbAsymmetricKey { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: asymmetrickey + Tags: Security, Key Author: Stuart Moore (@napalmgram), stuart-moore.com Website: https://dbatools.io diff --git a/functions/Remove-DbaDbCertificate.ps1 b/functions/Remove-DbaDbCertificate.ps1 index 09ab40910d..0d6c4d7f43 100644 --- a/functions/Remove-DbaDbCertificate.ps1 +++ b/functions/Remove-DbaDbCertificate.ps1 @@ -37,7 +37,7 @@ function Remove-DbaDbCertificate { Piped certificate objects .NOTES - Tags: Certificate + Tags: Certificate, Security Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Remove-DbaDbData.ps1 b/functions/Remove-DbaDbData.ps1 index 05bf5f4573..e55ac8a99f 100644 --- a/functions/Remove-DbaDbData.ps1 +++ b/functions/Remove-DbaDbData.ps1 @@ -41,7 +41,7 @@ function Remove-DbaDbData { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Role, Database + Tags: Table, Data Author: Jess Pomfret (@jpomfret), jesspomfret.com Website: https://dbatools.io diff --git a/functions/Remove-DbaDbFileGroup.ps1 b/functions/Remove-DbaDbFileGroup.ps1 index f399d2a093..4fb7427f8d 100644 --- a/functions/Remove-DbaDbFileGroup.ps1 +++ b/functions/Remove-DbaDbFileGroup.ps1 @@ -38,7 +38,7 @@ function Remove-DbaDbFileGroup { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Data, Database, File, FileGroup, Migration, Partitioning, Table + Tags: Storage, Data, File, FileGroup Author: Adam Lancaster https://github.com/lancasteradam dbatools PowerShell module (https://dbatools.io) diff --git a/functions/Remove-DbaDbMasterKey.ps1 b/functions/Remove-DbaDbMasterKey.ps1 index 490cc85c37..0df7bee579 100644 --- a/functions/Remove-DbaDbMasterKey.ps1 +++ b/functions/Remove-DbaDbMasterKey.ps1 @@ -40,8 +40,9 @@ function Remove-DbaDbMasterKey { Prompts you for confirmation before executing any changing operations within the command. .NOTES - Tags: Certificate, Masterkey + Tags: Certificate, Security Author: Chrissy LeMaire (@cl), netnerds.net + Website: https://dbatools.io Copyright: (c) 2018 by dbatools, licensed under MIT License: MIT https://opensource.org/licenses/MIT diff --git a/functions/Remove-DbaDbOrphanUser.ps1 b/functions/Remove-DbaDbOrphanUser.ps1 index 3c192f310d..31908c7508 100644 --- a/functions/Remove-DbaDbOrphanUser.ps1 +++ b/functions/Remove-DbaDbOrphanUser.ps1 @@ -51,7 +51,7 @@ function Remove-DbaDbOrphanUser { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Orphan, Database, Security, Login + Tags: User, Orphan, Login Author: Claudio Silva (@ClaudioESSilva) | Simone Bizzotto (@niphlod) Website: https://dbatools.io diff --git a/functions/Remove-DbaDbRole.ps1 b/functions/Remove-DbaDbRole.ps1 index 3aa16d5a09..215776c8dd 100644 --- a/functions/Remove-DbaDbRole.ps1 +++ b/functions/Remove-DbaDbRole.ps1 @@ -46,7 +46,7 @@ function Remove-DbaDbRole { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Role, Database, Security, Login + Tags: Role Author: Ben Miller (@DBAduck) Website: https://dbatools.io diff --git a/functions/Remove-DbaDbRoleMember.ps1 b/functions/Remove-DbaDbRoleMember.ps1 index be44924ed9..c3ff426c4c 100644 --- a/functions/Remove-DbaDbRoleMember.ps1 +++ b/functions/Remove-DbaDbRoleMember.ps1 @@ -40,7 +40,7 @@ function Remove-DbaDbRoleMember { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Role, Database, Security, Login + Tags: Role, User Author: Ben Miller (@DBAduck) Website: https://dbatools.io diff --git a/functions/Remove-DbaDbSchema.ps1 b/functions/Remove-DbaDbSchema.ps1 index 67ea99c1de..6e91171430 100644 --- a/functions/Remove-DbaDbSchema.ps1 +++ b/functions/Remove-DbaDbSchema.ps1 @@ -38,7 +38,7 @@ function Remove-DbaDbSchema { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Data, Database, Migration, Permission, Security, Schema, Table, User + Tags: Schema, Database Author: Adam Lancaster https://github.com/lancasteradam dbatools PowerShell module (https://dbatools.io) diff --git a/functions/Remove-DbaDbTableData.ps1 b/functions/Remove-DbaDbTableData.ps1 index 00178533b7..e7b6e16a24 100644 --- a/functions/Remove-DbaDbTableData.ps1 +++ b/functions/Remove-DbaDbTableData.ps1 @@ -59,7 +59,7 @@ function Remove-DbaDbTableData { Prompts for confirmation before executing any data modification operations. .NOTES - Tags: Data, Database, Delete, LogFile, Performance, Remove, Space, Table + Tags: Table, Data Author: Adam Lancaster https://github.com/lancasteradam Website: https://dbatools.io @@ -74,7 +74,7 @@ function Remove-DbaDbTableData { .EXAMPLE PS C:\> Remove-DbaDbTableData -SqlInstance localhost -Database TestDb -Table dbo.Test -BatchSize 1000000 -LogBackupPath E:\LogBackups -Confirm:$false - Removes all data from the dbo.Test table in the TestDb database on the local SQL instance. The deletes are dones in batches of 1000000 rows each and the log backups are written to E:\LogBackups. + Removes all data from the dbo.Test table in the TestDb database on the local SQL instance. The deletes are done in batches of 1000000 rows each and the log backups are written to E:\LogBackups. .EXAMPLE PS C:\> Remove-DbaDbTableData -SqlInstance localhost -Database TestDb -DeleteSql "DELETE TOP (1000000) deleteFromTable FROM dbo.Test deleteFromTable LEFT JOIN dbo.Test2 b ON deleteFromTable.Id = b.Id" -LogBackupPath E:\LogBackups -Confirm:$false @@ -84,24 +84,24 @@ function Remove-DbaDbTableData { .EXAMPLE PS C:\> Remove-DbaDbTableData -SqlInstance localhost -Database TestDb -Table dbo.Test -DeleteSql "WITH ToDelete AS (SELECT TOP (1000000) Id FROM dbo.Test ORDER BY Id DESC;) DELETE FROM ToDelete;" -LogBackupPath E:\LogBackups -Confirm:$false - Removes data from the dbo.Test table based on the DELETE statement specified in the -DeleteSql. The deletes occur in the TestDb database on the local SQL instance. The deletes are dones in batches of 1000000 rows each and the log backups are written to E:\LogBackups. + Removes data from the dbo.Test table based on the DELETE statement specified in the -DeleteSql. The deletes occur in the TestDb database on the local SQL instance. The deletes are done in batches of 1000000 rows each and the log backups are written to E:\LogBackups. .EXAMPLE PS C:\> Get-DbaDatabase -SqlInstance localhost -Database TestDb1, TestDb2 | Remove-DbaDbTableData -Table dbo.Test -BatchSize 1000000 -LogBackupPath E:\LogBackups -Confirm:$false - Removes data from the dbo.Test table in the TestDb1 and TestDb2 databases on the local SQL instance. The deletes are dones in batches of 1000000 rows each and the log backups are written to E:\LogBackups. + Removes data from the dbo.Test table in the TestDb1 and TestDb2 databases on the local SQL instance. The deletes are done in batches of 1000000 rows each and the log backups are written to E:\LogBackups. .EXAMPLE PS C:\> $server, $server2 | Remove-DbaDbTableData -Database TestDb -Table dbo.Test -BatchSize 1000000 -LogBackupPath E:\LogBackups -Confirm:$false - Removes data from the dbo.Test table in the TestDb database on the SQL instances represented by $server and $server2. The deletes are dones in batches of 1000000 rows each and the log backups are written to E:\LogBackups. + Removes data from the dbo.Test table in the TestDb database on the SQL instances represented by $server and $server2. The deletes are done in batches of 1000000 rows each and the log backups are written to E:\LogBackups. .EXAMPLE PS C:\> $server = Connect-DbaInstance -ConnectionString "Data Source=TCP:yourserver.database.windows.net,1433;MultipleActiveResultSets=False;Connect Timeout=30;Encrypt=True;TrustServerCertificate=False;User Id=dbuser;Password=strongpassword;Database=TestDb" Remove-DbaDbTableData -SqlInstance $server -Database TestDb -Table dbo.Test -BatchSize 1000000 -Confirm:$false - Removes data from the dbo.Test table in the TestDb database on the Azure SQL server yourserver.database.windows.net. The deletes are dones in batches of 1000000 rows. Log backups are managed by Azure SQL. Note: for Azure SQL databases error 40552 could occur for large batch deletions: https://docs.microsoft.com/en-us/azure/azure-sql/database/troubleshoot-common-errors-issues#error-40552-the-session-has-been-terminated-because-of-excessive-transaction-log-space-usage + Removes data from the dbo.Test table in the TestDb database on the Azure SQL server yourserver.database.windows.net. The deletes are done in batches of 1000000 rows. Log backups are managed by Azure SQL. Note: for Azure SQL databases error 40552 could occur for large batch deletions: https://docs.microsoft.com/en-us/azure/azure-sql/database/troubleshoot-common-errors-issues#error-40552-the-session-has-been-terminated-because-of-excessive-transaction-log-space-usage #> [CmdletBinding(SupportsShouldProcess, ConfirmImpact = 'High')] param ( diff --git a/functions/Remove-DbaDbUser.ps1 b/functions/Remove-DbaDbUser.ps1 index bccc00bf81..11d7c74886 100644 --- a/functions/Remove-DbaDbUser.ps1 +++ b/functions/Remove-DbaDbUser.ps1 @@ -45,7 +45,7 @@ function Remove-DbaDbUser { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Database, User, Login, Security + Tags: User Author: Doug Meyers (@dgmyrs) Website: https://dbatools.io diff --git a/functions/Remove-DbaFirewallRule.ps1 b/functions/Remove-DbaFirewallRule.ps1 index 39224672dc..1b2529e4d5 100644 --- a/functions/Remove-DbaFirewallRule.ps1 +++ b/functions/Remove-DbaFirewallRule.ps1 @@ -47,7 +47,7 @@ function Remove-DbaFirewallRule { If this switch is enabled, you will be prompted for confirmation before executing any operations that change state. .NOTES - Tags: Firewall, Network + Tags: Firewall, Network, Connection Author: Andreas Jordan (@JordanOrdix), ordix.de Website: https://dbatools.io diff --git a/functions/Remove-DbaLinkedServer.ps1 b/functions/Remove-DbaLinkedServer.ps1 index 761f412e69..85a7134cdf 100644 --- a/functions/Remove-DbaLinkedServer.ps1 +++ b/functions/Remove-DbaLinkedServer.ps1 @@ -38,7 +38,7 @@ function Remove-DbaLinkedServer { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Security, Server + Tags: LinkedServer, Server Author: Adam Lancaster https://github.com/lancasteradam dbatools PowerShell module (https://dbatools.io) diff --git a/functions/Remove-DbaNetworkCertificate.ps1 b/functions/Remove-DbaNetworkCertificate.ps1 index ec5537d1d1..9f0f63e846 100644 --- a/functions/Remove-DbaNetworkCertificate.ps1 +++ b/functions/Remove-DbaNetworkCertificate.ps1 @@ -8,7 +8,7 @@ function Remove-DbaNetworkCertificate { Removes the network certificate for SQL Server instance. This setting is found in Configuration Manager. .PARAMETER SqlInstance - The target SQL Server instance or instances. Defaults to localhost. If target is a cluster, you must also specify InstanceClusterName (see below) + The target SQL Server instance or instances. Defaults to localhost. If target is a cluster, you must also specify InstanceClusterName (see below) .PARAMETER Credential Allows you to login to the computer (not sql instance) using alternative credentials. @@ -25,7 +25,7 @@ function Remove-DbaNetworkCertificate { Prompts you for confirmation before executing any changing operations within the command. .NOTES - Tags: Certificate + Tags: Certificate, Security Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io Copyright: (c) 2018 by dbatools, licensed under MIT diff --git a/functions/Remove-DbaServerRole.ps1 b/functions/Remove-DbaServerRole.ps1 index 5872c706fe..502bf71482 100644 --- a/functions/Remove-DbaServerRole.ps1 +++ b/functions/Remove-DbaServerRole.ps1 @@ -34,7 +34,7 @@ function Remove-DbaServerRole { Piped server-role objects. .NOTES - Tags: ServerRole, Instance, Security + Tags: Role, Login Author: Claudio Silva (@ClaudioESSilva), https://claudioessilva.com Website: https://dbatools.io Copyright: (c) 2018 by dbatools, licensed under MIT diff --git a/functions/Remove-DbaServerRoleMember.ps1 b/functions/Remove-DbaServerRoleMember.ps1 index 0bf8a908a0..75578a823f 100644 --- a/functions/Remove-DbaServerRoleMember.ps1 +++ b/functions/Remove-DbaServerRoleMember.ps1 @@ -40,7 +40,7 @@ function Remove-DbaServerRoleMember { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Role, Security, Login + Tags: Role, Login Author: Mikey Bronowski (@MikeyBronowski), https://bronowski.it Website: https://dbatools.io diff --git a/functions/Remove-DbaTrace.ps1 b/functions/Remove-DbaTrace.ps1 index f953116a55..db81985fc0 100644 --- a/functions/Remove-DbaTrace.ps1 +++ b/functions/Remove-DbaTrace.ps1 @@ -34,7 +34,7 @@ function Remove-DbaTrace { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Security, Trace + Tags: Trace Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Repair-DbaInstanceName.ps1 b/functions/Repair-DbaInstanceName.ps1 index 27f28fcadf..7343540fd6 100644 --- a/functions/Repair-DbaInstanceName.ps1 +++ b/functions/Repair-DbaInstanceName.ps1 @@ -40,7 +40,7 @@ function Repair-DbaInstanceName { If this switch is enabled, you will be prompted for confirmation before executing any operations that change state. .NOTES - Tags: SPN + Tags: SPN, Instance, Utility Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Reset-DbaAdmin.ps1 b/functions/Reset-DbaAdmin.ps1 index 061eb79241..fbc33d6c4d 100644 --- a/functions/Reset-DbaAdmin.ps1 +++ b/functions/Reset-DbaAdmin.ps1 @@ -55,7 +55,7 @@ function Reset-DbaAdmin { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: WSMan + Tags: WSMan, Instance, Utility Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Resolve-DbaNetworkName.ps1 b/functions/Resolve-DbaNetworkName.ps1 index 700be8c516..975a62a539 100644 --- a/functions/Resolve-DbaNetworkName.ps1 +++ b/functions/Resolve-DbaNetworkName.ps1 @@ -56,7 +56,7 @@ function Resolve-DbaNetworkName { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Network, Resolve + Tags: Network, Connection, Resolve Author: Klaas Vandenberghe (@PowerDBAKlaas) | Simone Bizzotto (@niphold) Website: https://dbatools.io diff --git a/internal/functions/utility/Resolve-DbaPath.ps1 b/functions/Resolve-DbaPath.ps1 similarity index 80% rename from internal/functions/utility/Resolve-DbaPath.ps1 rename to functions/Resolve-DbaPath.ps1 index d3776bc271..bff72823c7 100644 --- a/internal/functions/utility/Resolve-DbaPath.ps1 +++ b/functions/Resolve-DbaPath.ps1 @@ -1,42 +1,52 @@ -function Resolve-DbaPath -{ -<# +function Resolve-DbaPath { + <# .SYNOPSIS Resolves a path. - + .DESCRIPTION Resolves a path. Will try to resolve to paths including some basic path validation and resolution. Will fail if the path cannot be resolved (so an existing path must be reached at). - + .PARAMETER Path The path to validate. - + .PARAMETER Provider Ensure the path is of the expected provider. Allows ensuring one does not operate in the wrong provider. Common providers include the filesystem, the registry or the active directory. - + .PARAMETER SingleItem Ensure the path should resolve to a single path only. This may - intentionally or not - trip up wildcard paths. - + .PARAMETER NewChild Assumes one wishes to create a new child item. The parent path will be resolved and must validate true. The final leaf will be treated as a leaf item that does not exist yet. - + + .NOTES + Tags: Path, Resolve, Utility + Author: Friedrich Weinmann (@FredWeinmann) + + Website: https://dbatools.io + Copyright: (c) 2018 by dbatools, licensed under MIT + License: MIT https://opensource.org/licenses/MIT + + .LINK + https://dbatools.io/Resolve-DbaPath + .EXAMPLE PS C:\> Resolve-DbaPath -Path report.log -Provider FileSystem -NewChild -SingleItem - + Ensures the resolved path is a FileSystem path. This will resolve to the current folder and the file report.log. Will not ensure the file exists or doesn't exist. If the current path is in a different provider, it will throw an exception. - + .EXAMPLE PS C:\> Resolve-DbaPath -Path ..\* - + This will resolve all items in the parent folder, whatever the current path or drive might be. #> [CmdletBinding()] @@ -44,67 +54,54 @@ function Resolve-DbaPath [Parameter(Mandatory = $true, ValueFromPipeline = $true)] [string[]] $Path, - + [string] $Provider, - + [switch] $SingleItem, - + [switch] $NewChild ) - - process - { - foreach ($inputPath in $Path) - { - if ($inputPath -eq ".") - { + + process { + foreach ($inputPath in $Path) { + if ($inputPath -eq ".") { $inputPath = (Get-Location).Path } - if ($NewChild) - { + if ($NewChild) { $parent = Split-Path -Path $inputPath $child = Split-Path -Path $inputPath -Leaf - - try - { + + try { if (-not $parent) { $parentPath = Get-Location -ErrorAction Stop } else { $parentPath = Resolve-Path $parent -ErrorAction Stop } - } - catch { Stop-Function -Message "Failed to resolve path" -ErrorRecord $_ -EnableException $true } - - if ($SingleItem -and (($parentPath | Measure-Object).Count -gt 1)) - { + } catch { Stop-Function -Message "Failed to resolve path" -ErrorRecord $_ -EnableException $true } + + if ($SingleItem -and (($parentPath | Measure-Object).Count -gt 1)) { Stop-Function -Message "Could not resolve to a single parent path." -EnableException $true } - - if ($Provider -and ($parentPath.Provider.Name -ne $Provider)) - { + + if ($Provider -and ($parentPath.Provider.Name -ne $Provider)) { Stop-Function -Message "Resolved provider is $($parentPath.Provider.Name) when it should be $($Provider)" -EnableException $true } - - foreach ($parentItem in $parentPath) - { + + foreach ($parentItem in $parentPath) { Join-Path $parentItem.ProviderPath $child } - } - else - { + } else { try { $resolvedPaths = Resolve-Path $inputPath -ErrorAction Stop } catch { Stop-Function -Message "Failed to resolve path" -ErrorRecord $_ -EnableException $true } - - if ($SingleItem -and (($resolvedPaths | Measure-Object).Count -gt 1)) - { + + if ($SingleItem -and (($resolvedPaths | Measure-Object).Count -gt 1)) { Stop-Function -Message "Could not resolve to a single parent path." -EnableException $true } - - if ($Provider -and ($resolvedPaths.Provider.Name -ne $Provider)) - { + + if ($Provider -and ($resolvedPaths.Provider.Name -ne $Provider)) { Stop-Function -Message "Resolved provider is $($resolvedPaths.Provider.Name) when it should be $($Provider)" -EnableException $true } - + $resolvedPaths.ProviderPath } } diff --git a/functions/Restore-DbaDbCertificate.ps1 b/functions/Restore-DbaDbCertificate.ps1 index d39dc033e7..cc47a2c4b0 100644 --- a/functions/Restore-DbaDbCertificate.ps1 +++ b/functions/Restore-DbaDbCertificate.ps1 @@ -40,7 +40,7 @@ function Restore-DbaDbCertificate { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Migration, Certificate + Tags: CertBackup, Certificate, Backup Author: Jess Pomfret (@jpomfret), jesspomfret.com Website: https://dbatools.io diff --git a/functions/Resume-DbaAgDbDataMovement.ps1 b/functions/Resume-DbaAgDbDataMovement.ps1 index 0748ec075b..ae60721760 100644 --- a/functions/Resume-DbaAgDbDataMovement.ps1 +++ b/functions/Resume-DbaAgDbDataMovement.ps1 @@ -37,7 +37,7 @@ function Resume-DbaAgDbDataMovement { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: AvailabilityGroup, HA, AG + Tags: AG, HA Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Revoke-DbaAgPermission.ps1 b/functions/Revoke-DbaAgPermission.ps1 index 59c685189c..e0d88528f2 100644 --- a/functions/Revoke-DbaAgPermission.ps1 +++ b/functions/Revoke-DbaAgPermission.ps1 @@ -62,7 +62,7 @@ function Revoke-DbaAgPermission { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: AvailabilityGroup, HA, AG + Tags: AG, HA Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Save-DbaKbUpdate.ps1 b/functions/Save-DbaKbUpdate.ps1 index b2ef46b0b4..cf53b51428 100644 --- a/functions/Save-DbaKbUpdate.ps1 +++ b/functions/Save-DbaKbUpdate.ps1 @@ -4,7 +4,7 @@ function Save-DbaKbUpdate { Downloads patches from Microsoft .DESCRIPTION - Downloads patches from Microsoft + Downloads patches from Microsoft .PARAMETER Name The KB name or number. For example, KB4057119 or 4057119. @@ -34,7 +34,7 @@ function Save-DbaKbUpdate { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Update, Patching, Install + Tags: Deployment, Install, Patching Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Set-DbaAgListener.ps1 b/functions/Set-DbaAgListener.ps1 index f3931032f6..1a2d5acf78 100644 --- a/functions/Set-DbaAgListener.ps1 +++ b/functions/Set-DbaAgListener.ps1 @@ -42,7 +42,7 @@ function Set-DbaAgListener { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: AvailabilityGroup, HA, AG + Tags: AG, HA Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Set-DbaAgReplica.ps1 b/functions/Set-DbaAgReplica.ps1 index 57a7ca4345..128854775d 100644 --- a/functions/Set-DbaAgReplica.ps1 +++ b/functions/Set-DbaAgReplica.ps1 @@ -73,7 +73,7 @@ function Set-DbaAgReplica { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: AvailabilityGroup, HA, AG + Tags: AG, HA Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Set-DbaAvailabilityGroup.ps1 b/functions/Set-DbaAvailabilityGroup.ps1 index 3be8733975..9809a1af39 100644 --- a/functions/Set-DbaAvailabilityGroup.ps1 +++ b/functions/Set-DbaAvailabilityGroup.ps1 @@ -43,7 +43,7 @@ function Set-DbaAvailabilityGroup { Defaults is 30000 (30 seconds). .PARAMETER BasicAvailabilityGroup - Indicates whether the availability group is basic. Basic availability groups like pumpkin spice and uggs. + Indicates whether the availability group is Basic Availability Group. https://docs.microsoft.com/en-us/sql/database-engine/availability-groups/windows/basic-availability-groups-always-on-availability-groups @@ -68,7 +68,7 @@ function Set-DbaAvailabilityGroup { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: AvailabilityGroup, HA, AG + Tags: AG, HA Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Set-DbaDbFileGroup.ps1 b/functions/Set-DbaDbFileGroup.ps1 index 84c74a44ed..01ae74beea 100644 --- a/functions/Set-DbaDbFileGroup.ps1 +++ b/functions/Set-DbaDbFileGroup.ps1 @@ -47,7 +47,7 @@ function Set-DbaDbFileGroup { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Data, Database, File, FileGroup, Migration, Partitioning, Table + Tags: Storage, Data, File Author: Adam Lancaster https://github.com/lancasteradam dbatools PowerShell module (https://dbatools.io) diff --git a/functions/Set-DbaDbFileGrowth.ps1 b/functions/Set-DbaDbFileGrowth.ps1 index ad72116768..30f08c0261 100644 --- a/functions/Set-DbaDbFileGrowth.ps1 +++ b/functions/Set-DbaDbFileGrowth.ps1 @@ -44,7 +44,7 @@ function Set-DbaDbFileGrowth { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Database + Tags: Storage, Data, Log, File, Growth Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io Copyright: (c) 2021 by dbatools, licensed under MIT diff --git a/functions/Set-DbaDbSchema.ps1 b/functions/Set-DbaDbSchema.ps1 index b9268b2d21..6bdb21c0e7 100644 --- a/functions/Set-DbaDbSchema.ps1 +++ b/functions/Set-DbaDbSchema.ps1 @@ -41,7 +41,7 @@ function Set-DbaDbSchema { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Data, Database, Migration, Permission, Security, Schema, Table, User + Tags: Schema, Database Author: Adam Lancaster https://github.com/lancasteradam dbatools PowerShell module (https://dbatools.io) diff --git a/functions/Set-DbaDefaultPath.ps1 b/functions/Set-DbaDefaultPath.ps1 index 98d39bcaf5..1a5ed3524d 100644 --- a/functions/Set-DbaDefaultPath.ps1 +++ b/functions/Set-DbaDefaultPath.ps1 @@ -36,7 +36,7 @@ function Set-DbaDefaultPath { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Data, Logs, Backups + Tags: Storage, Data, Logs, Backup Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Set-DbaErrorLogConfig.ps1 b/functions/Set-DbaErrorLogConfig.ps1 index 653942539c..17a8f31b06 100644 --- a/functions/Set-DbaErrorLogConfig.ps1 +++ b/functions/Set-DbaErrorLogConfig.ps1 @@ -37,7 +37,7 @@ function Set-DbaErrorLogConfig { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Instance, ErrorLog + Tags: Instance, ErrorLog, Logging Author: Shawn Melton (@wsmelton), https://wsmelton.github.com Website: https://dbatools.io diff --git a/functions/Set-DbaExtendedProperty.ps1 b/functions/Set-DbaExtendedProperty.ps1 index 73383f86f0..1f5caf890c 100644 --- a/functions/Set-DbaExtendedProperty.ps1 +++ b/functions/Set-DbaExtendedProperty.ps1 @@ -41,7 +41,7 @@ function Set-DbaExtendedProperty { Enables piping from Get-DbaExtendedProperty .PARAMETER Value - The new value for the extended property + The new value for the extended property .PARAMETER WhatIf Shows what would happen if the command were to run. No actions are actually performed. @@ -55,7 +55,7 @@ function Set-DbaExtendedProperty { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: extendedproperties + Tags: General, ExtendedProperties Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Set-DbaMaxDop.ps1 b/functions/Set-DbaMaxDop.ps1 index 852d164863..b8e2f34271 100644 --- a/functions/Set-DbaMaxDop.ps1 +++ b/functions/Set-DbaMaxDop.ps1 @@ -47,7 +47,7 @@ function Set-DbaMaxDop { Prompts you for confirmation before running the cmdlet. .NOTES - Tags: MaxDop, SpConfigure + Tags: MaxDop, Utility Author: Claudio Silva (@claudioessilva) Website: https://dbatools.io diff --git a/functions/Set-DbaNetworkCertificate.ps1 b/functions/Set-DbaNetworkCertificate.ps1 index dce4035b68..9be3ead894 100644 --- a/functions/Set-DbaNetworkCertificate.ps1 +++ b/functions/Set-DbaNetworkCertificate.ps1 @@ -14,7 +14,7 @@ function Set-DbaNetworkCertificate { https://blogs.msdn.microsoft.com/sqlserverfaq/2016/09/26/creating-and-registering-ssl-certificates/ .PARAMETER SqlInstance - The target SQL Server instance or instances. Defaults to localhost. + The target SQL Server instance or instances. Defaults to localhost. .PARAMETER Credential Allows you to login to the computer (not sql instance) using alternative credentials. @@ -37,7 +37,7 @@ function Set-DbaNetworkCertificate { Prompts you for confirmation before executing any changing operations within the command. .NOTES - Tags: Certificate + Tags: Certificate, Security Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Set-DbaNetworkConfiguration.ps1 b/functions/Set-DbaNetworkConfiguration.ps1 index bc8fa81d18..4a50d7259f 100644 --- a/functions/Set-DbaNetworkConfiguration.ps1 +++ b/functions/Set-DbaNetworkConfiguration.ps1 @@ -61,7 +61,7 @@ function Set-DbaNetworkConfiguration { If this switch is enabled, you will be prompted for confirmation before executing any operations that change state. .NOTES - Tags: SQLWMI + Tags: Network, Connection, SQLWMI Author: Andreas Jordan (@JordanOrdix), ordix.de Website: https://dbatools.io diff --git a/functions/Set-DbaPowerPlan.ps1 b/functions/Set-DbaPowerPlan.ps1 index 3aa95f18c4..783745ae83 100644 --- a/functions/Set-DbaPowerPlan.ps1 +++ b/functions/Set-DbaPowerPlan.ps1 @@ -34,7 +34,7 @@ function Set-DbaPowerPlan { If this switch is enabled, you will be prompted for confirmation before executing any operations that change state. .NOTES - Tags: PowerPlan, OS, Configure + Tags: PowerPlan, OS, Configure, Utility Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Set-DbaPrivilege.ps1 b/functions/Set-DbaPrivilege.ps1 index 68b7455f17..393e0a1cc2 100644 --- a/functions/Set-DbaPrivilege.ps1 +++ b/functions/Set-DbaPrivilege.ps1 @@ -33,7 +33,7 @@ function Set-DbaPrivilege { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Privilege + Tags: Privilege, Security Author: Klaas Vandenberghe ( @PowerDBAKlaas ) Website: https://dbatools.io diff --git a/functions/Set-DbaTcpPort.ps1 b/functions/Set-DbaTcpPort.ps1 index 16324db317..b8a774c284 100644 --- a/functions/Set-DbaTcpPort.ps1 +++ b/functions/Set-DbaTcpPort.ps1 @@ -21,7 +21,7 @@ function Set-DbaTcpPort { TCPPort that SQLService should listen on. .PARAMETER IpAddress - Ip address to which the change should apply, if omitted allip (0.0.0.0) will be changed with the new port number. + Ip address to which the change should apply, if omitted AllIp (0.0.0.0) will be changed with the new port number. .PARAMETER EnableException By default, when something goes wrong we try to catch it, interpret it and give you a friendly warning message. @@ -35,8 +35,9 @@ function Set-DbaTcpPort { Prompts you for confirmation before executing any changing operations within the command. .NOTES - Tags: Service, Port, TCP, Configure + Tags: Network, Connection, TCP, Configure Author: @H0s0n77 + Website: https://dbatools.io Copyright: (c) 2018 by dbatools, licensed under MIT License: MIT https://opensource.org/licenses/MIT diff --git a/functions/Show-DbaInstanceFileSystem.ps1 b/functions/Show-DbaInstanceFileSystem.ps1 index ed2ad72cc1..929c16c065 100644 --- a/functions/Show-DbaInstanceFileSystem.ps1 +++ b/functions/Show-DbaInstanceFileSystem.ps1 @@ -24,7 +24,7 @@ function Show-DbaInstanceFileSystem { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Storage, FileSystem + Tags: Storage, FileSystem, OS Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Start-DbaTrace.ps1 b/functions/Start-DbaTrace.ps1 index a7c79fb2c2..6e402c41d4 100644 --- a/functions/Start-DbaTrace.ps1 +++ b/functions/Start-DbaTrace.ps1 @@ -34,7 +34,7 @@ function Start-DbaTrace { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Security, Trace + Tags: Trace Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Stop-DbaExternalProcess.ps1 b/functions/Stop-DbaExternalProcess.ps1 index f9bcf8b3b3..f0745d634b 100644 --- a/functions/Stop-DbaExternalProcess.ps1 +++ b/functions/Stop-DbaExternalProcess.ps1 @@ -31,7 +31,7 @@ function Stop-DbaExternalProcess { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Process + Tags: Diagnostic, Process Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Stop-DbaProcess.ps1 b/functions/Stop-DbaProcess.ps1 index 84881d3975..cb600604a5 100644 --- a/functions/Stop-DbaProcess.ps1 +++ b/functions/Stop-DbaProcess.ps1 @@ -55,7 +55,7 @@ function Stop-DbaProcess { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Processes + Tags: Diagnostic, Process Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Stop-DbaTrace.ps1 b/functions/Stop-DbaTrace.ps1 index 6dd989ca7c..6a3d2391bd 100644 --- a/functions/Stop-DbaTrace.ps1 +++ b/functions/Stop-DbaTrace.ps1 @@ -34,7 +34,7 @@ function Stop-DbaTrace { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Security, Trace + Tags: Trace Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Suspend-DbaAgDbDataMovement.ps1 b/functions/Suspend-DbaAgDbDataMovement.ps1 index d1553ffef2..c164b85580 100644 --- a/functions/Suspend-DbaAgDbDataMovement.ps1 +++ b/functions/Suspend-DbaAgDbDataMovement.ps1 @@ -37,7 +37,7 @@ function Suspend-DbaAgDbDataMovement { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: AvailabilityGroup, HA, AG + Tags: AG, HA Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Sync-DbaAvailabilityGroup.ps1 b/functions/Sync-DbaAvailabilityGroup.ps1 index c8f5a2972a..3100b4d43a 100644 --- a/functions/Sync-DbaAvailabilityGroup.ps1 +++ b/functions/Sync-DbaAvailabilityGroup.ps1 @@ -101,7 +101,7 @@ function Sync-DbaAvailabilityGroup { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: AvailabilityGroup, HA, AG + Tags: AG, HA Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Test-DbaBuild.ps1 b/functions/Test-DbaBuild.ps1 index 59bc3ffb49..39935c161a 100644 --- a/functions/Test-DbaBuild.ps1 +++ b/functions/Test-DbaBuild.ps1 @@ -41,7 +41,7 @@ function Test-DbaBuild { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: SqlBuild, Version + Tags: SqlBuild, Version, Utility Author: Simone Bizzotto (@niphold) | Friedrich Weinmann (@FredWeinmann) dbatools PowerShell module (https://dbatools.io) diff --git a/functions/Test-DbaComputerCertificateExpiration.ps1 b/functions/Test-DbaComputerCertificateExpiration.ps1 index fabf24568b..35a32d0bdf 100644 --- a/functions/Test-DbaComputerCertificateExpiration.ps1 +++ b/functions/Test-DbaComputerCertificateExpiration.ps1 @@ -42,7 +42,7 @@ function Test-DbaComputerCertificateExpiration { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Certificate + Tags: Certificate, Security Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Test-DbaConnection.ps1 b/functions/Test-DbaConnection.ps1 index ed4bbe3fce..d7944019ff 100644 --- a/functions/Test-DbaConnection.ps1 +++ b/functions/Test-DbaConnection.ps1 @@ -31,7 +31,7 @@ function Test-DbaConnection { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: CIM, Test, Connection + Tags: Connection Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Test-DbaDbCompression.ps1 b/functions/Test-DbaDbCompression.ps1 index 36c2ae7920..27ed0496bc 100644 --- a/functions/Test-DbaDbCompression.ps1 +++ b/functions/Test-DbaDbCompression.ps1 @@ -64,7 +64,7 @@ function Test-DbaDbCompression { Returns a PsCustomObject with following fields: ComputerName, InstanceName, SqlInstance, Database, IndexName, Partition, IndexID, PercentScan, PercentUpdate, RowEstimatePercentOriginal, PageEstimatePercentOriginal, CompressionTypeRecommendation, SizeCurrent, SizeRequested, PercentCompression .NOTES - Tags: Compression, Table, Database + Tags: Compression, Table Author: Jason Squires (@js_0505), jstexasdba@gmail.com Website: https://dbatools.io diff --git a/functions/Test-DbaDbDataGeneratorConfig.ps1 b/functions/Test-DbaDbDataGeneratorConfig.ps1 index b86ca69d6a..c94487e1b2 100644 --- a/functions/Test-DbaDbDataGeneratorConfig.ps1 +++ b/functions/Test-DbaDbDataGeneratorConfig.ps1 @@ -25,7 +25,7 @@ function Test-DbaDbDataGeneratorConfig { If this switch is enabled, existing objects on Destination with matching names from Source will be dropped. .NOTES - Tags: Data generation, testing + Tags: DataGeneration Author: Sander Stad (@sqlstad), sqlstad.nl Website: https://dbatools.io diff --git a/functions/Test-DbaDbQueryStore.ps1 b/functions/Test-DbaDbQueryStore.ps1 index 1514d14748..10157700b7 100644 --- a/functions/Test-DbaDbQueryStore.ps1 +++ b/functions/Test-DbaDbQueryStore.ps1 @@ -43,7 +43,7 @@ function Test-DbaDbQueryStore { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: QueryStore + Tags: Database, QueryStore Author: Jess Pomfret (@jpomfret), jesspomfret.com Website: https://dbatools.io diff --git a/functions/Test-DbaDeprecatedFeature.ps1 b/functions/Test-DbaDeprecatedFeature.ps1 index 68ee08221f..6ad14cf4df 100644 --- a/functions/Test-DbaDeprecatedFeature.ps1 +++ b/functions/Test-DbaDeprecatedFeature.ps1 @@ -31,7 +31,7 @@ function Test-DbaDeprecatedFeature { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Deprecated + Tags: Deprecated, General Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Test-DbaDiskAlignment.ps1 b/functions/Test-DbaDiskAlignment.ps1 index b5fdcc3fa4..1a118d7df2 100644 --- a/functions/Test-DbaDiskAlignment.ps1 +++ b/functions/Test-DbaDiskAlignment.ps1 @@ -42,7 +42,7 @@ function Test-DbaDiskAlignment { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Storage + Tags: Storage, Disk, OS Author: Constantine Kokkinos (@mobileck), https://constantinekokkinos.com Website: https://dbatools.io @@ -92,7 +92,7 @@ function Test-DbaDiskAlignment { function Get-DiskAlignment { [CmdletBinding()] param ( - $CimSession, + $cimSession, [string]$FunctionName = (Get-PSCallStack)[0].Command, [bool]$NoSqlCheck, [string]$ComputerName, @@ -108,7 +108,7 @@ function Test-DbaDiskAlignment { Write-Message -Level Verbose -Message "Gathering information about first partition on each disk for $ComputerName." -FunctionName $FunctionName try { - $partitions = Get-CimInstance -CimSession $CimSession -ClassName Win32_DiskPartition -Namespace "root\cimv2" -ErrorAction Stop + $partitions = Get-CimInstance -CimSession $cimSession -ClassName Win32_DiskPartition -Namespace "root\cimv2" -ErrorAction Stop } catch { if ($_.Exception -match "namespace") { Stop-Function -Message "Can't get disk alignment info for $ComputerName. Unsupported operating system." -InnerErrorRecord $_ -Target $ComputerName -FunctionName $FunctionName @@ -122,7 +122,7 @@ function Test-DbaDiskAlignment { $disks = @() foreach ($partition in $partitions) { - $associators = Get-CimInstance -CimSession $CimSession -Query "ASSOCIATORS OF {Win32_DiskPartition.DeviceID=""$($partition.DeviceID.Replace("\", "\\"))""} WHERE AssocClass = Win32_LogicalDiskToPartition" + $associators = Get-CimInstance -CimSession $cimSession -Query "ASSOCIATORS OF {Win32_DiskPartition.DeviceID=""$($partition.DeviceID.Replace("\", "\\"))""} WHERE AssocClass = Win32_LogicalDiskToPartition" foreach ($assoc in $associators) { $disks += [PSCustomObject]@{ BlockSize = $partition.BlockSize @@ -149,7 +149,7 @@ function Test-DbaDiskAlignment { #region Retrieving Instances if (-not $NoSqlCheck) { Write-Message -Level Verbose -Message "Checking for SQL Services." -FunctionName $FunctionName - $sqlservices = Get-CimInstance -ClassName Win32_Service -CimSession $CimSession | Where-Object DisplayName -like 'SQL Server (*' + $sqlservices = Get-CimInstance -ClassName Win32_Service -CimSession $cimSession | Where-Object DisplayName -like 'SQL Server (*' foreach ($service in $sqlservices) { $instance = $service.DisplayName.Replace('SQL Server (', '') $instance = $instance.TrimEnd(')') @@ -242,13 +242,13 @@ function Test-DbaDiskAlignment { } [PSCustomObject]@{ - ComputerName = $ogcomputer + ComputerName = $ogComputer Name = "$($partition.Name)" - PartitionSize = [dbasize]($($partition.Size / 1MB) * 1024 * 1024) + PartitionSize = [DbaSize]($($partition.Size / 1MB) * 1024 * 1024) PartitionType = $partition.Type - TestingStripeSize = [dbasize]($size * 1024) - OffsetModuluCalculation = [dbasize]($OffsetModuloKB * 1024) - StartingOffset = [dbasize]($offset * 1024) + TestingStripeSize = [DbaSize]($size * 1024) + OffsetModuluCalculation = [DbaSize]($OffsetModuloKB * 1024) + StartingOffset = [DbaSize]($offset * 1024) IsOffsetBestPractice = $IsOffsetBestPractice IsBestPractice = $isBestPractice NumberOfBlocks = $partition.NumberOfBlocks @@ -266,7 +266,7 @@ function Test-DbaDiskAlignment { foreach ($computer in $ComputerName) { - $computer = $ogcomputer = $computer.ComputerName + $computer = $ogComputer = $computer.ComputerName Write-Message -Level VeryVerbose -Message "Processing: $computer." $computer = Resolve-DbaNetworkName -ComputerName $computer -Credential $Credential @@ -280,22 +280,22 @@ function Test-DbaDiskAlignment { Write-Message -Level Verbose -Message "Creating CimSession on $computer over WSMan" if (-not $Credential) { - $cimsession = New-CimSession -ComputerName $Computer -ErrorAction Ignore + $cimSession = New-CimSession -ComputerName $Computer -ErrorAction Ignore } else { - $cimsession = New-CimSession -ComputerName $Computer -ErrorAction Ignore -Credential $Credential + $cimSession = New-CimSession -ComputerName $Computer -ErrorAction Ignore -Credential $Credential } - if ($null -eq $cimsession.id) { + if ($null -eq $cimSession.id) { Write-Message -Level Verbose -Message "Creating CimSession on $computer over WSMan failed. Creating CimSession on $computer over DCOM." if (!$Credential) { - $cimsession = New-CimSession -ComputerName $Computer -SessionOption $sessionoption -ErrorAction Ignore + $cimSession = New-CimSession -ComputerName $Computer -SessionOption $sessionoption -ErrorAction Ignore } else { - $cimsession = New-CimSession -ComputerName $Computer -SessionOption $sessionoption -ErrorAction Ignore -Credential $Credential + $cimSession = New-CimSession -ComputerName $Computer -SessionOption $sessionoption -ErrorAction Ignore -Credential $Credential } } - if ($null -eq $cimsession.id) { + if ($null -eq $cimSession.id) { Stop-Function -Message "Can't create CimSession on $computer." -Target $Computer -Continue } #endregion Connecting to server via Cim @@ -304,7 +304,7 @@ function Test-DbaDiskAlignment { try { - Get-DiskAlignment -CimSession $cimsession -NoSqlCheck $NoSqlCheck -ComputerName $Computer -ErrorAction Stop + Get-DiskAlignment -CimSession $cimSession -NoSqlCheck $NoSqlCheck -ComputerName $Computer -ErrorAction Stop } catch { Stop-Function -Message "Failed to process $($Computer): $($_.Exception.Message)" -Continue -InnerErrorRecord $_ -Target $Computer } diff --git a/functions/Test-DbaDiskAllocation.ps1 b/functions/Test-DbaDiskAllocation.ps1 index 57b2977d35..4aa4a2268c 100644 --- a/functions/Test-DbaDiskAllocation.ps1 +++ b/functions/Test-DbaDiskAllocation.ps1 @@ -39,7 +39,7 @@ function Test-DbaDiskAllocation { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: CIM, Storage + Tags: Storage, Disk, OS Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Test-DbaDiskSpeed.ps1 b/functions/Test-DbaDiskSpeed.ps1 index fcebad1d0e..26583a71ea 100644 --- a/functions/Test-DbaDiskSpeed.ps1 +++ b/functions/Test-DbaDiskSpeed.ps1 @@ -40,7 +40,7 @@ function Test-DbaDiskSpeed { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Performance + Tags: Diagnostic, Performance Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Test-DbaInstanceName.ps1 b/functions/Test-DbaInstanceName.ps1 index cba95ab710..3e1b4bf1dc 100644 --- a/functions/Test-DbaInstanceName.ps1 +++ b/functions/Test-DbaInstanceName.ps1 @@ -31,7 +31,7 @@ function Test-DbaInstanceName { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: SPN, ServerName + Tags: SPN, Instance, Utility Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Test-DbaLoginPassword.ps1 b/functions/Test-DbaLoginPassword.ps1 index 543ef463b3..a87be7184e 100644 --- a/functions/Test-DbaLoginPassword.ps1 +++ b/functions/Test-DbaLoginPassword.ps1 @@ -34,7 +34,7 @@ function Test-DbaLoginPassword { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Login, Security + Tags: Login Author: Peter Samuelsson Website: https://dbatools.io diff --git a/functions/Test-DbaMaxDop.ps1 b/functions/Test-DbaMaxDop.ps1 index 0bcf963085..fdfe7ee0df 100644 --- a/functions/Test-DbaMaxDop.ps1 +++ b/functions/Test-DbaMaxDop.ps1 @@ -33,7 +33,7 @@ function Test-DbaMaxDop { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: MaxDop, SpConfigure + Tags: MaxDop, Utility Author: Claudio Silva (@claudioessilva) Website: https://dbatools.io diff --git a/functions/Test-DbaPath.ps1 b/functions/Test-DbaPath.ps1 index 4c0304211f..9bf2df8957 100644 --- a/functions/Test-DbaPath.ps1 +++ b/functions/Test-DbaPath.ps1 @@ -25,7 +25,7 @@ function Test-DbaPath { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Path, ServiceAccount + Tags: Storage, Path, Directory Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Test-DbaPowerPlan.ps1 b/functions/Test-DbaPowerPlan.ps1 index a555064158..74d1fd1997 100644 --- a/functions/Test-DbaPowerPlan.ps1 +++ b/functions/Test-DbaPowerPlan.ps1 @@ -28,7 +28,7 @@ function Test-DbaPowerPlan { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: PowerPlan + Tags: PowerPlan, OS, Utility Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/functions/Test-DbaWindowsLogin.ps1 b/functions/Test-DbaWindowsLogin.ps1 index 947e5ad145..f01f9a705b 100644 --- a/functions/Test-DbaWindowsLogin.ps1 +++ b/functions/Test-DbaWindowsLogin.ps1 @@ -34,7 +34,7 @@ function Test-DbaWindowsLogin { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: Login, Security + Tags: Login Author: Stephen Bennett, https://sqlnotesfromtheunderground.wordpress.com/ | Chrissy LeMaire (@cl) Website: https://dbatools.io diff --git a/functions/Update-DbaBuildReference.ps1 b/functions/Update-DbaBuildReference.ps1 index f2379d2b8d..6322b32cd3 100644 --- a/functions/Update-DbaBuildReference.ps1 +++ b/functions/Update-DbaBuildReference.ps1 @@ -17,7 +17,7 @@ function Update-DbaBuildReference { Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch. .NOTES - Tags: SqlBuild + Tags: Utility, SqlBuild Author: Simone Bizzotto (@niphold) | Friedrich Weinmann (@FredWeinmann) Website: https://dbatools.io diff --git a/functions/Update-DbaInstance.ps1 b/functions/Update-DbaInstance.ps1 index c06abc6138..bd7227f4f6 100644 --- a/functions/Update-DbaInstance.ps1 +++ b/functions/Update-DbaInstance.ps1 @@ -115,7 +115,7 @@ function Update-DbaInstance { https://dbatools.io/Update-DbaInstance .NOTES - Tags: Install, Patching, SP, CU, Instance + Tags: Deployment, Install, Patching, Update Author: Kirill Kravtsov (@nvarscar) https://nvarscar.wordpress.com/ Website: https://dbatools.io diff --git a/functions/Write-DbaDbTableData.ps1 b/functions/Write-DbaDbTableData.ps1 index df48609f29..558f737960 100644 --- a/functions/Write-DbaDbTableData.ps1 +++ b/functions/Write-DbaDbTableData.ps1 @@ -98,7 +98,7 @@ function Write-DbaDbTableData { If this switch is enabled, all columns will get the length specified by the column's MaxLength property (if specified). .NOTES - Tags: DataTable, Insert + Tags: Table, Data, Insert Author: Chrissy LeMaire (@cl), netnerds.net Website: https://dbatools.io diff --git a/internal/functions/tabcompletion/New-DbaTeppCompletionResult.ps1 b/internal/functions/tabcompletion/New-DbaTeppCompletionResult.ps1 index 3afc6ba145..56443560a3 100644 --- a/internal/functions/tabcompletion/New-DbaTeppCompletionResult.ps1 +++ b/internal/functions/tabcompletion/New-DbaTeppCompletionResult.ps1 @@ -17,7 +17,7 @@ function global:New-DbaTeppCompletionResult { .PARAMETER CompletionResultType The type of object that is being completed. - By default it generates one of type paramter value. + By default it generates one of type parameter value. .PARAMETER NoQuotes Whether to put the result in quotes or not. diff --git a/tests/Join-DbaPath.Tests.ps1 b/tests/Join-DbaPath.Tests.ps1 new file mode 100644 index 0000000000..b3e99bcd8a --- /dev/null +++ b/tests/Join-DbaPath.Tests.ps1 @@ -0,0 +1,14 @@ +$CommandName = $MyInvocation.MyCommand.Name.Replace(".Tests.ps1", "") +Write-Host -Object "Running $PSCommandpath" -ForegroundColor Cyan +. "$PSScriptRoot\constants.ps1" + +Describe "$CommandName Unit Tests" -Tag 'UnitTests' { + Context "Validate parameters" { + [array]$params = ([Management.Automation.CommandMetaData]$ExecutionContext.SessionState.InvokeCommand.GetCommand($CommandName, 'Function')).Parameters.Keys + [object[]]$knownParameters = 'SqlInstance', 'Path', 'Child' + + It "Should only contain our specific parameters" { + Compare-Object -ReferenceObject $knownParameters -DifferenceObject $params | Should -BeNullOrEmpty + } + } +} \ No newline at end of file diff --git a/tests/Resolve-DbaPath.Tests.ps1 b/tests/Resolve-DbaPath.Tests.ps1 new file mode 100644 index 0000000000..577fb3fdb5 --- /dev/null +++ b/tests/Resolve-DbaPath.Tests.ps1 @@ -0,0 +1,14 @@ +$CommandName = $MyInvocation.MyCommand.Name.Replace(".Tests.ps1", "") +Write-Host -Object "Running $PSCommandpath" -ForegroundColor Cyan +. "$PSScriptRoot\constants.ps1" + +Describe "$CommandName Unit Tests" -Tag 'UnitTests' { + Context "Validate parameters" { + [array]$params = ([Management.Automation.CommandMetaData]$ExecutionContext.SessionState.InvokeCommand.GetCommand($CommandName, 'Function')).Parameters.Keys + [object[]]$knownParameters = 'Path', 'Provider', 'SingleItem', 'NewChild' + + It "Should only contain our specific parameters" { + Compare-Object -ReferenceObject $knownParameters -DifferenceObject $params | Should -BeNullOrEmpty + } + } +} \ No newline at end of file