GitBook: [master] one page modified

This commit is contained in:
CPol 2020-10-22 16:33:42 +00:00 committed by gitbook-bot
parent bf07ded845
commit 23349f4cdd
No known key found for this signature in database
GPG Key ID: 07D2180C7B12D0FF

View File

@ -246,7 +246,7 @@ $computer = "<hostname>"
## Groups
```text
```bash
Get-LocalGroup | ft Name #All groups
Get-LocalGroupMember Administrators | ft Name, PrincipalSource #Members of Administrators
```
@ -271,7 +271,7 @@ Get-Service
## Password from secure string
```text
```bash
$pw=gc admin-pass.xml | convertto-securestring #Get the securestring from the file
$cred=new-object system.management.automation.pscredential("administrator", $pw)
$cred.getnetworkcredential() | fl * #Get plaintext password