Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modified psd1 #128

Merged
merged 5 commits into from
Aug 13, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 9 additions & 5 deletions dbatools.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@
'Test-SqlNetworkLatency',
'Find-SqlDuplicateIndex',
'Show-SqlServerFileSystem',
'Get-DiskSpace',
'Get-DbaDiskSpace',
'Remove-SqlDatabaseSafely',
'Show-SqlDatabaseList',
'Show-SqlWhoIsActive',
'Set-SqlTempDbConfiguration',
'Test-SqlTempDbConfiguration',
'Set-SqlTempDbConfiguration',
'Test-SqlTempDbConfiguration',
'Repair-SqlOrphanUser',
'Remove-SqlOrphanUser',
'Find-SqlUnusedIndex',
Expand All @@ -130,7 +130,10 @@
'Test-DbaPowerPlan',
'Set-DbaPowerPlan',
'Test-DbaDiskAlignment',
'Get-DbaDatabaseFreespace'
'Get-DbaDatabaseFreespace',
'Get-DbaClusterActiveNode',
'Test-DbaDatabaseOwner',
'Set-DbaDatabaseOwner'
)

# Cmdlets to export from this module
Expand All @@ -147,7 +150,8 @@
'Restore-HallengrenBackup',
'Update-SqlWhoIsActive',
'Show-SqlMigrationConstraint',
'Test-SqlDiskAllocation'
'Test-SqlDiskAllocation',
'Get-DiskSpace'

# List of all modules packaged with this module
ModuleList = @()
Expand Down
3 changes: 2 additions & 1 deletion dbatools.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ Set-Alias -Name Copy-SqlUserDefinedMessage -Value Copy-SqlCustomError
Set-Alias -Name Copy-SqlJobServer -Value Copy-SqlServerAgent
Set-Alias -Name Restore-HallengrenBackup -Value Restore-SqlBackupFromDirectory
Set-Alias -Name Show-SqlMigrationConstraint -Value Test-SqlMigrationConstraint
Set-Alias -Name Test-SqlDiskAllocation -Value Test-DBADiskAllocation
Set-Alias -Name Test-SqlDiskAllocation -Value Test-DbaDiskAllocation
Set-Alias -Name Get-DiskSpace -Value Get-DbaDiskSpace

# Strictmode coming when I've got time.
# Set-StrictMode -Version Latest
Expand Down
10 changes: 5 additions & 5 deletions functions/Get-DiskSpace.ps1 → functions/Get-DbaDiskSpace.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Function Get-DiskSpace
Function Get-DbaDiskSpace
{
<#
.SYNOPSIS
Expand Down Expand Up @@ -32,20 +32,20 @@ This program is distributed in the hope that it will be useful, but WITHOUT ANY
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

.LINK
https://dbatools.io/Get-DiskSpace
https://dbatools.io/Get-DbaDiskSpace

.EXAMPLE
Get-DiskSpace -ComputerName sqlserver2014a
Get-DbaDiskSpace -ComputerName sqlserver2014a

Shows disk space for sqlserver2014a in GB

.EXAMPLE
Get-DiskSpace -ComputerName sqlserver2014a -Unit TB
Get-DbaDiskSpace -ComputerName sqlserver2014a -Unit TB

Shows disk space for sqlserver2014a in TB

.EXAMPLE
Get-DiskSpace -ComputerName server1, server2, server3 -Unit MB
Get-DbaDiskSpace -ComputerName server1, server2, server3 -Unit MB

Returns a custom object filled with information for server1, server2 and server3, in MB

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Function Set-DBAPowerPlan
Function Set-DbaPowerPlan
{
<#
.SYNOPSIS
Expand Down Expand Up @@ -40,15 +40,15 @@ This program is distributed in the hope that it will be useful, but WITHOUT ANY
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

.LINK
https://dbatools.io/Set-DBAPowerPlan
https://dbatools.io/Set-DbaPowerPlan

.EXAMPLE
Set-DBAPowerPlan -ComputerName sqlserver2014a
Set-DbaPowerPlan -ComputerName sqlserver2014a

To return true or false for Power Plan being set to High Performance

.EXAMPLE
Set-DBAPowerPlan -ComputerName sqlserver2014a -Detailed
Set-DbaPowerPlan -ComputerName sqlserver2014a -Detailed

To return detailed information Power Plans

Expand All @@ -67,7 +67,7 @@ To return detailed information Power Plans
{
if ($CustomPowerPlan.Length -gt 0) { $PowerPlan = $CustomPowerPlan }

Function Set-DBAPowerPlan
Function Set-DbaPowerPlan
{
try
{
Expand Down Expand Up @@ -146,8 +146,8 @@ To return detailed information Power Plans
{
if ($server -match 'Server\=')
{
Write-Verbose "Matched that value was piped from Test-DBAPowerPlan"
# I couldn't properly unwrap the output from Test-DBAPowerPlan so here goes.
Write-Verbose "Matched that value was piped from Test-DbaPowerPlan"
# I couldn't properly unwrap the output from Test-DbaPowerPlan so here goes.
$lol = $server.Split("\;")[0]
$lol = $lol.TrimEnd("\}")
$lol = $lol.TrimStart("\@\{Server")
Expand All @@ -170,7 +170,7 @@ To return detailed information Power Plans
continue
}

$data = Set-DBAPowerPlan $server
$data = Set-DbaPowerPlan $server

if ($data.Count -gt 1)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Function Test-DBADiskAllocation
Function Test-DbaDiskAllocation
{
<#
.SYNOPSIS
Expand Down Expand Up @@ -38,20 +38,20 @@ This program is distributed in the hope that it will be useful, but WITHOUT ANY
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

.LINK
https://dbatools.io/Test-DBADiskAllocation
https://dbatools.io/Test-DbaDiskAllocation

.EXAMPLE
Test-DBADiskAllocation -ComputerName sqlserver2014a
Test-DbaDiskAllocation -ComputerName sqlserver2014a

To return true or false for any disk not being formatted to 64k

.EXAMPLE
Test-DBADiskAllocation -ComputerName sqlserver2014 -Detailed
Test-DbaDiskAllocation -ComputerName sqlserver2014 -Detailed

To return detailed information about disks containing SQL data from any instance being formatted to 64k

.EXAMPLE
Test-DBADiskAllocation -ComputerName sqlserver2014a -NoSqlCheck
Test-DbaDiskAllocation -ComputerName sqlserver2014a -NoSqlCheck

To return true or false for ALL disks being formatted to 64k

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Function Test-dbaPowerPlan
Function Test-DbaPowerPlan
{
<#
.SYNOPSIS
Expand Down Expand Up @@ -35,20 +35,20 @@ This program is distributed in the hope that it will be useful, but WITHOUT ANY
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

.LINK
https://dbatools.io/Test-dbaPowerPlan
https://dbatools.io/Test-DbaPowerPlan

.EXAMPLE
Test-dbaPowerPlan -ComputerName sqlserver2014a
Test-DbaPowerPlan -ComputerName sqlserver2014a

To return true or false for Power Plan being set to High Performance

.EXAMPLE
Test-dbaPowerPlan -ComputerName sqlserver2014a -CustomPowerPlan 'Maximum Performance'
Test-DbaPowerPlan -ComputerName sqlserver2014a -CustomPowerPlan 'Maximum Performance'

To return true or false for Power Plan being set to the custom power plan called Maximum Performance

.EXAMPLE
Test-dbaPowerPlan -ComputerName sqlserver2014a -Detailed
Test-DbaPowerPlan -ComputerName sqlserver2014a -Detailed

To return detailed information Power Plans

Expand Down