Commit ceba49b

bryfry <bryon.fryer@gmail.com>
2016-12-09 12:24:32
sysinternals
1 parent 2513fbf
windows/commands/[
@@ -1,56 +0,0 @@
----
-date: "2016-12-01"
-draft: false
-title: "ds"
-
----
-
-### `ds` Commands
-
-The `ds` family of commands perform operations on Active Directory objects.
-There are too many commands to show all the flags but they mostly follow the same structure. 
-Here are the main links you want to have around.
-
-| Command    | Link                                                                 | ss64                                       |
-|------------|----------------------------------------------------------------------|--------------------------------------------|
-| `dsacls`   | [technet](https://technet.microsoft.com/en-us/library/cc771151.aspx) |                                            |
-| `dsadd`    | [technet](https://technet.microsoft.com/en-us/library/cc753708.aspx) |                                            |
-| `dsamain`  | [technet](https://technet.microsoft.com/en-us/library/cc772168.aspx) |                                            |
-| `dsdbutil` | [technet](https://technet.microsoft.com/en-us/library/cc753151.aspx) |                                            |
-| `dsget`    | [technet](https://technet.microsoft.com/en-us/library/cc755162.aspx) |                                            |
-| `dsmgmt`   | [technet](https://technet.microsoft.com/en-us/library/cc732473.aspx) |                                            |
-| `dsmod`    | [technet](https://technet.microsoft.com/en-us/library/cc732406.aspx) | [ss64](http://ss64.com/nt/dsmod-user.html) |
-| `dsmove`   | [technet](https://technet.microsoft.com/en-us/library/cc732952.aspx) |                                            |
-| `dsquery`  | [technet](https://technet.microsoft.com/en-us/library/cc732952.aspx) | [ss64](http://ss64.com/nt/dsquery.html)    |
-| `dsrm`     | [technet](https://technet.microsoft.com/en-us/library/cc731865.aspx) | [ss64](http://ss64.com/nt/dsrm.html)       |
-
-# Examples
-| Command                                                                                                                                                           | Description                                                    |
-|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------|
-| `dsquery computer`                                                                                                                                                | get comptuer info                                              |
-| `dsquery * -limit 0 -filter "&(objectClass=User)(objectCategory=Person)" -attr *`                                                                                 | get all users metadata                                         |
-| `dsquery * "<DN>" -attr *`                                                                                                                                        | get all attributes                                             |
-| `dsquery * -attr operatingSystem operatingSystemServicePack -filter "(&#124; (operatingSystem=*))`                                                                | service pack info                                              |
-| `dsquery user -name *FILTER* &#124; dsget user -memberof`                                                                                                         | user group memberships                                         |
-| `dsquery group -name *FILTER* &#124; dsget group -members &#124; dsget user -upn`                                                                                 | all group members upns                                         |
-| `dsget group "<GROUP DN>" -members`                                                                                                                               | list members                                                   |
-| `dsadd user "CN=userA,CN=users,DC=acme,DC=local" -samid usera -upn usera@acme.local -fn "user" -ln "a" -display "User A" -pwd abc123 -desc "user a" -disabled no` | create a user                                                  |
-| `dsadd group "cn=acme admins,cn=users,dc=acme,dc=local"`                                                                                                          | add a group (OU)                                               |
-| `dsmod group "<GROUP DN>" -addmbr "<MEMBER DN>"`                                                                                                                  | add member to group                                            |
-| `dsrm "<OBJECT DN>" -noprompt`                                                                                                                                    | remove raw object                                              |
-| `dsquery computer -name <NAME>`                                                                                                                                   | Determine if a computer name is on the domain                  |
-| `dsquery ou -name *`                                                                                                                                              | Find all OU's                                                  |
-| `dsquery user "OU=Acme Admins,DC=acme,DC=local" -desc "Acme Admin"`                                                                                               | Get all users belonging to an OU with a particular description |
-| `dsquery user -samid <SAMID> &#124; dsrm -noprompt`                                                                                                               | remove user by samid                                           |
-| `dsmove <DN> -newparent <PARENT_DN>`                                                                                                                              | move to new parent                                             |
-
-## Is this box a member of a domain?
-
-  * nslookup -type=any %userdnsdomain%.
-  * nltest /dclist:<DOMAIN NAME>
-  * systeminfo | findstr "Domain"
-
-## use variables for long OU names
-
-  * `set _usera="cn=userA,ou=users,dc=domain,dc=local`
-  * `dsmod user %_usera% -disabled yes`
windows/commands/driverquery.md
@@ -5,7 +5,7 @@ title: "driverquery"
 
 ---
 
-* [TechNet Maual](https://technet.microsoft.com/en-us/library/bb490896.aspx)
+* [TechNet Manual](https://technet.microsoft.com/en-us/library/bb490896.aspx)
 
 ### Alternatives
   * SysInt: [sigcheck]({{ <relref "windows/commands/sigcheck.md" > }})
windows/commands/index.md
@@ -5,19 +5,21 @@ title: "Windows CLI Commands"
 
 ---
 
-* [arp]({{< relref "windows/commands/arp.md" >}})
-* [cmd]({{< relref "windows/commands/cmd.md" >}})
-* [driverquery]({{< relref "windows/commands/driverquery.md" >}})
-* [ds]({{< relref "windows/commands/ds.md" >}})
-* [icacls]({{< relref "windows/commands/icacls.md" >}})
-* [nbtstat]({{< relref "windows/commands/nbtstat.md" >}})
-* [netsh]({{< relref "windows/commands/netsh.md" >}})
-* [netstat]({{< relref "windows/commands/netstat.md" >}})
-* [pathping]({{< relref "windows/commands/pathping.md" >}})
-* [ping]({{< relref "windows/commands/ping.md" >}})
-* [sc]({{< relref "windows/commands/sc.md" >}})
-* [taskkill]({{< relref "windows/commands/taskkill.md" >}})
-* [tasklist]({{< relref "windows/commands/tasklist.md" >}})
-* [template]({{< relref "windows/commands/template.md" >}})
-* [tracert]({{< relref "windows/commands/tracert.md" >}})
+| Command                                                         | Description                              |
+|-----------------------------------------------------------------|------------------------------------------|
+| [arp]({{< relref "windows/commands/arp.md" >}})                 | TODO 10 word description of this command |
+| [cmd]({{< relref "windows/commands/cmd.md" >}})                 | TODO 10 word description of this command |
+| [driverquery]({{< relref "windows/commands/driverquery.md" >}}) | TODO 10 word description of this command |
+| [ds]({{< relref "windows/commands/ds.md" >}})                   | TODO 10 word description of this command |
+| [icacls]({{< relref "windows/commands/icacls.md" >}})           | TODO 10 word description of this command |
+| [nbtstat]({{< relref "windows/commands/nbtstat.md" >}})         | TODO 10 word description of this command |
+| [netsh]({{< relref "windows/commands/netsh.md" >}})             | TODO 10 word description of this command |
+| [netstat]({{< relref "windows/commands/netstat.md" >}})         | TODO 10 word description of this command |
+| [pathping]({{< relref "windows/commands/pathping.md" >}})       | TODO 10 word description of this command |
+| [ping]({{< relref "windows/commands/ping.md" >}})               | TODO 10 word description of this command |
+| [sc]({{< relref "windows/commands/sc.md" >}})                   | TODO 10 word description of this command |
+| [taskkill]({{< relref "windows/commands/taskkill.md" >}})       | TODO 10 word description of this command |
+| [tasklist]({{< relref "windows/commands/tasklist.md" >}})       | TODO 10 word description of this command |
+| [template]({{< relref "windows/commands/template.md" >}})       | TODO 10 word description of this command |
+| [tracert]({{< relref "windows/commands/tracert.md" >}})         | TODO 10 word description of this command |
 
windows/sysinternals/handle.md
@@ -1,9 +1,9 @@
-+++
-date = "2016-12-01"
-draft = true
-title = ""
+---
+date: "2016-12-01"
+draft: false
+title: ""
 
-+++
+---
 
 
 # handle
windows/sysinternals/index.md
@@ -1,6 +1,13 @@
 ---
 date: "2016-12-01"
 draft: false
-title: "Windows CLI"
+title: "SysInternals"
 
 ---
+
+* [handle]({{ < relref "windows/sysinternals/handle.md" > }})
+* [listdlls]({{ < relref "windows/sysinternals/listdlls.md" > }})
+* [pskill]({{ < relref "windows/sysinternals/pskill.md" > }})
+* [pslist]({{ < relref "windows/sysinternals/pslist.md" > }})
+* [psservice]({{ < relref "windows/sysinternals/psservice.md" > }})
+
windows/sysinternals/listdlls.md
@@ -1,9 +1,9 @@
-+++
-date = "2016-12-01"
-draft = true
-title = ""
+---
+date: "2016-12-01"
+draft: false
+title: ""
 
-+++
+---
 
 # listdlls
 
windows/sysinternals/pskill.md
@@ -1,9 +1,9 @@
-+++
-date = "2016-12-01"
-draft = true
-title = ""
+---
+date: "2016-12-01"
+draft: false
+title: ""
 
-+++
+---
 # pskill 
 
 https://technet.microsoft.com/en-us/sysinternals/pskill
windows/sysinternals/pslist.md
@@ -1,9 +1,9 @@
-+++
-date = "2016-12-01"
-draft = true
-title = ""
+---
+date: "2016-12-01"
+draft: false
+title: ""
 
-+++
+---
 # pslist 
 
 https://technet.microsoft.com/en-us/sysinternals/pslist.aspx
windows/sysinternals/psservice.md
@@ -1,9 +1,9 @@
-+++
-date = "2016-12-01"
-draft = true
-title = ""
+---
+date: "2016-12-01"
+draft: false
+title: ""
 
-+++
+---
 # psservice
 https://technet.microsoft.com/en-us/sysinternals/psservice