Skip to content

Commit 8eeb7a2

Browse files
committed
Update Remove-SqlServerFromCIImage script to enhance Force parameter documentation and add examples
1 parent ae80547 commit 8eeb7a2

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

tests/Integration/Commands/Scripts/Remove-SqlServerFromCIImage.ps1

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,8 @@
1616
- SQL Server Browser
1717
- Any other SQL Server related products
1818
19-
.PARAMETER WhatIf
20-
Shows what would be removed without actually removing anything.
21-
22-
.PARAMETER Confirm
23-
Prompts for confirmation before removing each product.
19+
.PARAMETER Force
20+
Suppresses confirmation prompts before removing each product.
2421
2522
.EXAMPLE
2623
.\Remove-SqlServerFromCIImage.ps1
@@ -32,6 +29,12 @@
3229
3330
Shows what SQL Server components would be removed without actually removing them.
3431
32+
.EXAMPLE
33+
.\Remove-SqlServerFromCIImage.ps1 -Force
34+
35+
Removes all pre-installed SQL Server components from the CI agent, without prompting
36+
for confirmation.
37+
3538
.NOTES
3639
This script should be run on Microsoft Hosted agents before performing
3740
SQL Server PrepareImage operations.

0 commit comments

Comments
 (0)