Quantcast
Channel: SQL Server DBA
Viewing all articles
Browse latest Browse all 80

How to view the current Powershell session security permissions

$
0
0

Question: How to view the current Powershell session security permissions?  I'm trying to troubleshoot remote powershell commands and need to review the current powershell sessions standard persmissions.

 

Answer:  Use the Get-PSSessionConfiguration cmdlet. The definition from Microsoft docs : " The Get-PSSessionConfiguration cmdlet gets the session configurations that have been registered on the local computer"

As long as you have administration rights on the OS execute the following code on a Powershell command line

(Get-PSSessionConfiguration -Name Microsoft.PowerShell).Permission

--example output

NT AUTHORITY\INTERACTIVE AccessAllowed, BUILTIN\Administrators AccessAllowed, BUILTIN\Remote Management Users AccessAllowed

 

Read more on Powershell and security

How to secure Powershell


Viewing all articles
Browse latest Browse all 80

Trending Articles