Skip to content

Commit 00d373e

Browse files
committed
add SQL 2016/2017 Support
1 parent a31b1bb commit 00d373e

File tree

7 files changed

+429
-5
lines changed

7 files changed

+429
-5
lines changed

.vscode/launch.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "PowerShell",
9+
"request": "launch",
10+
"name": "PowerShell Launch Current File",
11+
"script": "${file}",
12+
"args": [],
13+
"cwd": "${file}"
14+
},
15+
{
16+
"type": "PowerShell",
17+
"request": "launch",
18+
"name": "PowerShell Launch Current File in Temporary Console",
19+
"script": "${file}",
20+
"args": [],
21+
"cwd": "${file}",
22+
"createTemporaryIntegratedConsole": true
23+
},
24+
{
25+
"type": "PowerShell",
26+
"request": "launch",
27+
"name": "PowerShell Launch Current File w/Args Prompt",
28+
"script": "${file}",
29+
"args": [
30+
"${command:SpecifyScriptArgs}"
31+
],
32+
"cwd": "${file}"
33+
},
34+
{
35+
"type": "PowerShell",
36+
"request": "attach",
37+
"name": "PowerShell Attach to Host Process",
38+
"processId": "${command:PickPSHostProcess}",
39+
"runspaceId": 1
40+
},
41+
{
42+
"type": "PowerShell",
43+
"request": "launch",
44+
"name": "PowerShell Interactive Session",
45+
"cwd": "${workspaceRoot}"
46+
}
47+
]
48+
}

Modules/SqlServerInventory/SqlServerInventory.psm1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ New-Variable -Name CatSecurity -Value 'Security' -Scope Script -Option Constant
1616
New-Variable -Name CatAvailability -Value 'Availability' -Scope Script -Option Constant
1717
New-Variable -Name CatRecovery -Value 'Recovery' -Scope Script -Option Constant
1818
New-Variable -Name CatInformation -Value 'Information' -Scope Script -Option Constant
19+
New-Variable -Name CatProperties -Value 'Properties' -Scope Script -Option Constant
20+
1921

2022
New-Variable -Name XlNumFmtDate -Value '[$-409]mm/dd/yyyy h:mm:ss AM/PM;@' -Scope Script -Option Constant
2123
New-Variable -Name XlNumFmtTime -Value '[$-409]h:mm:ss AM/PM;@' -Scope Script -Option Constant
@@ -38,6 +40,8 @@ New-Object -TypeName System.Version -ArgumentList '10.0.0.0' | New-Variable -Nam
3840
New-Object -TypeName System.Version -ArgumentList '10.50.0.0' | New-Variable -Name SQLServer2008R2 -Scope Script -Option Constant
3941
New-Object -TypeName System.Version -ArgumentList '11.0.0.0' | New-Variable -Name SQLServer2012 -Scope Script -Option Constant
4042
New-Object -TypeName System.Version -ArgumentList '12.0.0.0' | New-Variable -Name SQLServer2014 -Scope Script -Option Constant
43+
New-Object -TypeName System.Version -ArgumentList '13.0.0.0' | New-Variable -Name SQLServer2016 -Scope Script -Option Constant
44+
New-Object -TypeName System.Version -ArgumentList '14.0.0.0' | New-Variable -Name SQLServer2017 -Scope Script -Option Constant
4145

4246

4347
######################

Modules/SqlServerInventory/de/SqlServerInventory.psm1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ New-Variable -Name CatSecurity -Value 'Security' -Scope Script -Option Constant
1616
New-Variable -Name CatAvailability -Value 'Availability' -Scope Script -Option Constant
1717
New-Variable -Name CatRecovery -Value 'Recovery' -Scope Script -Option Constant
1818
New-Variable -Name CatInformation -Value 'Information' -Scope Script -Option Constant
19+
New-Variable -Name CatProperties -Value 'Properties' -Scope Script -Option Constant
20+
21+
1922

2023
New-Variable -Name XlNumFmtDate -Value '[$-409]mm/dd/yyyy h:mm:ss AM/PM;@' -Scope Script -Option Constant
2124
New-Variable -Name XlNumFmtTime -Value '[$-409]h:mm:ss AM/PM;@' -Scope Script -Option Constant
@@ -38,6 +41,8 @@ New-Object -TypeName System.Version -ArgumentList '10.0.0.0' | New-Variable -Nam
3841
New-Object -TypeName System.Version -ArgumentList '10.50.0.0' | New-Variable -Name SQLServer2008R2 -Scope Script -Option Constant
3942
New-Object -TypeName System.Version -ArgumentList '11.0.0.0' | New-Variable -Name SQLServer2012 -Scope Script -Option Constant
4043
New-Object -TypeName System.Version -ArgumentList '12.0.0.0' | New-Variable -Name SQLServer2014 -Scope Script -Option Constant
44+
New-Object -TypeName System.Version -ArgumentList '13.0.0.0' | New-Variable -Name SQLServer2016 -Scope Script -Option Constant
45+
New-Object -TypeName System.Version -ArgumentList '14.0.0.0' | New-Variable -Name SQLServer2017 -Scope Script -Option Constant
4146

4247

4348
######################

Modules/SqlServerInventory/en-US/SqlServerInventory.psm1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ New-Variable -Name CatSecurity -Value 'Security' -Scope Script -Option Constant
1616
New-Variable -Name CatAvailability -Value 'Availability' -Scope Script -Option Constant
1717
New-Variable -Name CatRecovery -Value 'Recovery' -Scope Script -Option Constant
1818
New-Variable -Name CatInformation -Value 'Information' -Scope Script -Option Constant
19+
New-Variable -Name CatProperties -Value 'Properties' -Scope Script -Option Constant
20+
21+
1922

2023
New-Variable -Name XlNumFmtDate -Value '[$-409]mm/dd/yyyy h:mm:ss AM/PM;@' -Scope Script -Option Constant
2124
New-Variable -Name XlNumFmtTime -Value '[$-409]h:mm:ss AM/PM;@' -Scope Script -Option Constant
@@ -38,6 +41,8 @@ New-Object -TypeName System.Version -ArgumentList '10.0.0.0' | New-Variable -Nam
3841
New-Object -TypeName System.Version -ArgumentList '10.50.0.0' | New-Variable -Name SQLServer2008R2 -Scope Script -Option Constant
3942
New-Object -TypeName System.Version -ArgumentList '11.0.0.0' | New-Variable -Name SQLServer2012 -Scope Script -Option Constant
4043
New-Object -TypeName System.Version -ArgumentList '12.0.0.0' | New-Variable -Name SQLServer2014 -Scope Script -Option Constant
44+
New-Object -TypeName System.Version -ArgumentList '13.0.0.0' | New-Variable -Name SQLServer2016 -Scope Script -Option Constant
45+
New-Object -TypeName System.Version -ArgumentList '14.0.0.0' | New-Variable -Name SQLServer2017 -Scope Script -Option Constant
4146

4247

4348
######################

Modules/SqlServerInventory/en/SqlServerInventory.psm1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ New-Variable -Name CatSecurity -Value 'Security' -Scope Script -Option Constant
1616
New-Variable -Name CatAvailability -Value 'Availability' -Scope Script -Option Constant
1717
New-Variable -Name CatRecovery -Value 'Recovery' -Scope Script -Option Constant
1818
New-Variable -Name CatInformation -Value 'Information' -Scope Script -Option Constant
19+
New-Variable -Name CatProperties -Value 'Properties' -Scope Script -Option Constant
20+
21+
1922

2023
New-Variable -Name XlNumFmtDate -Value '[$-409]mm/dd/yyyy h:mm:ss AM/PM;@' -Scope Script -Option Constant
2124
New-Variable -Name XlNumFmtTime -Value '[$-409]h:mm:ss AM/PM;@' -Scope Script -Option Constant
@@ -38,6 +41,8 @@ New-Object -TypeName System.Version -ArgumentList '10.0.0.0' | New-Variable -Nam
3841
New-Object -TypeName System.Version -ArgumentList '10.50.0.0' | New-Variable -Name SQLServer2008R2 -Scope Script -Option Constant
3942
New-Object -TypeName System.Version -ArgumentList '11.0.0.0' | New-Variable -Name SQLServer2012 -Scope Script -Option Constant
4043
New-Object -TypeName System.Version -ArgumentList '12.0.0.0' | New-Variable -Name SQLServer2014 -Scope Script -Option Constant
44+
New-Object -TypeName System.Version -ArgumentList '13.0.0.0' | New-Variable -Name SQLServer2016 -Scope Script -Option Constant
45+
New-Object -TypeName System.Version -ArgumentList '14.0.0.0' | New-Variable -Name SQLServer2017 -Scope Script -Option Constant
4146

4247

4348
######################

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
SQL Power Doc is a collection of Windows PowerShell scripts and modules that discover, document, and diagnose SQL Server instances and their underlying Windows OS & machine configurations. SQL Power Doc works with all versions of SQL Server from SQL Server 2000 through 2014, and all versions of Windows Server and consumer Windows Operating Systems from Windows 2000 and Windows XP through Windows Server 2012 R2 and Windows 8\. SQL Power Doc is also capable of documenting Windows Azure SQL Databases.
44

5-
#### Discover
5+
## Discover
66

77
Find SQL Server Services on your network by:
88

99
* Active Directory DNS
1010
* Subnet Scan
1111
* Computer Name
1212

13-
#### Document
13+
## Document
1414

1515
Collect comprehensive details about SQL Server instances and their underlying Windows OS, including:
1616

@@ -46,17 +46,17 @@ This documentation is useful for:
4646
* Creating a runbook that you can give to your operations team
4747
* Planning upgrades - see what hidden features are in use on an instance
4848

49-
#### Diagnose
49+
## Diagnose
5050

5151
SQL Power Doc performs over 100 checks to find hidden problems and performance bottlenecks on your SQL Servers before they turn into major headaches.
5252

53-
##### But Wait, There's More!
53+
## But Wait, There's More!
5454

5555
SQL Power Doc isn't limited to just SQL Server - you can also use it to collect an inventory of all the Windows machines on your network. If you're in need of a free documentation solution for Windows SQL Power Doc is up to the task!
5656

5757
## Ready To Get Started?
5858

5959
1. Read the [Requirements](https://sqlpowerdoc.codeplex.com/wikipage?title=Requirements) and the [How To Guide](https://sqlpowerdoc.codeplex.com/wikipage?title=Guide%20For%20PowerShell%20Beginners)
60-
2. [Download](https://sqlpowerdoc.codeplex.com/releases) the latest version
60+
2. [Download](https://github.com/larspl/SQLPowerDoc/releases) the latest version
6161
3. Collect an inventory
6262
4. Look like a rockstar

0 commit comments

Comments
 (0)