GitBook: [master] one page modified
This commit is contained in:
parent
bf07ded845
commit
23349f4cdd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user