mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-16 23:49:20 +00:00
Update cheatsheets
This commit is contained in:
33
tldr/add-computer.py
Normal file
33
tldr/add-computer.py
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# addcomputer.py
|
||||
|
||||
> Add a computer account to domain.
|
||||
> More information: <https://github.com/fortra/impacket>.
|
||||
|
||||
- Add a computer with a specific name and password:
|
||||
|
||||
`addcomputer.py -computer-name {{COMPUTER_NAME$}} -computer-pass {{computer_password}} {{domain}}/{{username}}:{{password}}`
|
||||
|
||||
- Only set a new password on an existing computer:
|
||||
|
||||
`addcomputer.py -no-add -computer-name {{COMPUTER_NAME$}} -computer-pass {{computer_password}} {{domain}}/{{username}}:{{password}}`
|
||||
|
||||
- Delete an existing computer account:
|
||||
|
||||
`addcomputer.py -delete -computer-name {{COMPUTER_NAME$}} {{domain}}/{{username}}:{{password}}`
|
||||
|
||||
- Add computer using Kerberos authentication:
|
||||
|
||||
`addcomputer.py -k -no-pass {{domain}}/{{username}}@{{hostname}}`
|
||||
|
||||
- Add computer via LDAPS (port 636) instead of SAMR (port 445):
|
||||
|
||||
`addcomputer.py -method LDAPS -port 636 {{domain}}/{{username}}:{{password}}`
|
||||
|
||||
- Specify exact domain controller when multiple DCs exist:
|
||||
|
||||
`addcomputer.py -dc-host {{hostname}} {{domain}}/{{username}}:{{password}}`
|
||||
Reference in New Issue
Block a user