Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 0f924e5

Browse files
committed
more tweaks
1 parent 0a0495d commit 0f924e5

6 files changed

Lines changed: 29 additions & 28 deletions
Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
---
22
title: "Run Windows PowerShell from SQL Server Management Studio | Microsoft Docs"
33
description: Learn how to start a Windows PowerShell session from Object Explorer in SQL Server Management Studio, with the path preset to the location of your choice of objects.
4-
ms.custom: ""
5-
ms.date: "03/14/2017"
64
ms.prod: sql
7-
ms.reviewer: matteot, drskwier
85
ms.technology: sql-server-powershell
96
ms.topic: conceptual
107
ms.assetid: 1f841825-da1f-4062-9a81-3cdbab03845b
118
author: markingmyname
129
ms.author: maghan
10+
ms.reviewer: matteot, drskwier
11+
ms.custom: ""
12+
ms.date: "03/14/2017"
1313
---
14+
1415
# Run Windows PowerShell from SQL Server Management Studio
16+
1517
[!INCLUDE[SQL Server Azure SQL Database Synapse Analytics PDW ](../includes/applies-to-version/sql-asdb-asdbmi-asa-pdw.md)]
1618

1719
You can start Windows PowerShell sessions from **Object Explorer** in [!INCLUDE[ssManStudioFull](../includes/ssmanstudiofull-md.md)]. [!INCLUDE[ssManStudio](../includes/ssmanstudio-md.md)] launches Windows PowerShell, loads the **SqlServer** module, and sets the path context to the associated node in the **Object Explorer** tree.
@@ -22,27 +24,26 @@ You can start Windows PowerShell sessions from **Object Explorer** in [!INCLUDE[
2224
> Previous versions of the **SqlServer** module *were* included with SQL Server Management Studio (SSMS), but only with the 16.x versions of SSMS. To use PowerShell with SSMS 17.0 and later, the **SqlServer** module must be installed from the PowerShell Gallery.
2325
> To install the **SqlServer** module, see [Install SQL Server PowerShell](download-sql-server-ps-module.md).
2426
25-
26-
2727
When you specify running PowerShell for an object in **Object Explorer**, [!INCLUDE[ssManStudioFull](../includes/ssmanstudiofull-md.md)] starts a Windows PowerShell session in which the [!INCLUDE[ssNoVersion](../includes/ssnoversion-md.md)] PowerShell snap-ins have been loaded and registered. The path for the session is preset to the location of the object you right-clicked in Object Explorer. For example, if you right-click the [!INCLUDE[ssSampleDBobject](../includes/sssampledbobject-md.md)] database object in Object Explorer and select **Start PowerShell**, the Windows PowerShell path is set to the following:
28-
29-
```
28+
29+
```powershell
3030
SQLSERVER:\SQL\MyComputer\MyInstance\Databases\AdventureWorks2012>
31-
```
32-
33-
## Run PowerShell
34-
**To run PowerShell from SQL Server Management Studio**
35-
36-
1. Open **Object Explorer**.
37-
38-
2. Navigate to the node for the object to be worked on.
39-
40-
3. Right-click the object and select **Start PowerShell**.
41-
42-
## Permissions
43-
When opened from [!INCLUDE[ssManStudio](../includes/ssmanstudio-md.md)], PowerShell does not run with Administrator privileges, which may prevent some activities such as calls to WMI.
31+
```
32+
33+
## Run PowerShell
34+
35+
**To run PowerShell from SQL Server Management Studio**
36+
37+
1. Open **Object Explorer**.
38+
39+
2. Navigate to the node for the object to be worked on.
40+
41+
3. Right-click the object and select **Start PowerShell**.
42+
43+
## Permissions
44+
45+
When opened from [!INCLUDE[ssManStudio](../includes/ssmanstudio-md.md)], PowerShell does not run with Administrator privileges, which may prevent some activities such as calls to WMI.
4446

4547
## See Also
46-
[SQL Server PowerShell](sql-server-powershell.md)
47-
48-
48+
49+
- [SQL Server PowerShell](sql-server-powershell.md)

docs/powershell/run-windows-powershell-steps-in-sql-server-agent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ description: Learn how to run Windows PowerShell steps in a SQL Server Agent job
44
ms.custom: seo-lt-2019
55
ms.date: "03/16/2017"
66
ms.prod: sql
7-
ms.reviewer: matteot, drskwier
87
ms.technology: sql-server-powershell
98
ms.topic: conceptual
109
ms.assetid: f25f7549-c9b3-4618-85f2-c9a08adbe0e3
1110
author: markingmyname
1211
ms.author: maghan
12+
ms.reviewer: matteot, drskwier
1313
---
1414
# Run Windows PowerShell Steps in SQL Server Agent
1515

docs/powershell/specify-instances-in-the-sql-server-powershell-provider.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ description: Learn how to specify instances when using the SQL Server PowerShell
44
ms.custom: seo-lt-2019
55
ms.date: "03/14/2017"
66
ms.prod: sql
7-
ms.reviewer: matteot, drskwier
87
ms.technology: sql-server-powershell
98
ms.topic: conceptual
109
ms.assetid: 9373de68-fd43-45f2-b9a6-149c96610aeb
1110
author: markingmyname
1211
ms.author: maghan
12+
ms.reviewer: matteot, drskwier
1313
---
1414
# Specify Instances in the SQL Server PowerShell Provider
1515
[!INCLUDE[SQL Server Azure SQL Database Synapse Analytics PDW ](../includes/applies-to-version/sql-asdb-asdbmi-asa-pdw.md)]

docs/powershell/sql-server-identifiers-in-powershell.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ description: Learn about the paths that Windows PowerShell providers use to expo
44
ms.custom: ""
55
ms.date: "03/14/2017"
66
ms.prod: sql
7-
ms.reviewer: matteot, drskwier
87
ms.technology: sql-server-powershell
98
ms.topic: conceptual
109
helpviewer_keywords:
@@ -19,6 +18,7 @@ helpviewer_keywords:
1918
ms.assetid: 651099b0-33b4-453a-a864-b067f21eb8b9
2019
author: markingmyname
2120
ms.author: maghan
21+
ms.reviewer: matteot, drskwier
2222
---
2323
# SQL Server Identifiers in PowerShell
2424
[!INCLUDE[SQL Server Azure SQL Database Synapse Analytics PDW ](../includes/applies-to-version/sql-asdb-asdbmi-asa-pdw.md)]

docs/powershell/sql-server-powershell-provider.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
title: "SQL Server PowerShell Provider | Microsoft Docs"
33
description: Learn about the SQL Server provider for Windows PowerShell, which provides access to SQL Server objects by means of paths similar to file system paths.
44
ms.prod: sql
5-
ms.reviewer: matteot, drskwier
65
ms.technology: sql-server-powershell
76
ms.topic: conceptual
87
helpviewer_keywords:
@@ -15,6 +14,7 @@ helpviewer_keywords:
1514
ms.assetid: b97acc43-fcd2-4ae5-b218-e183bab916f9
1615
author: markingmyname
1716
ms.author: maghan
17+
ms.reviewer: matteot, drskwier
1818
ms.custom: ""
1919
ms.date: "07/31/2019"
2020
---

docs/powershell/work-with-sql-server-powershell-paths.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ description: Learn how to manipulate and retrieve information using either cmdle
44
ms.custom: ""
55
ms.date: "03/14/2017"
66
ms.prod: sql
7-
ms.reviewer: matteot, drskwier
87
ms.technology: sql-server-powershell
98
ms.topic: conceptual
109
ms.assetid: f31d8e2c-8d59-4fee-ac2a-324668e54262
1110
author: markingmyname
1211
ms.author: maghan
12+
ms.reviewer: matteot, drskwier
1313
---
1414
# Work With SQL Server PowerShell Paths
1515
[!INCLUDE[SQL Server Azure SQL Database Synapse Analytics PDW ](../includes/applies-to-version/sql-asdb-asdbmi-asa-pdw.md)]

0 commit comments

Comments
 (0)