Powershell GUI fronted (WPF) to run categorized console scripts

⌈⌋ ⎇ branch:  ClickyColoury


Check-in [48e6e20fbb]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Template tool to craft/prepare new user scripts.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 48e6e20fbbbb16c46ad7bad9004f3400bceedcd5
User & Date: mario 2018-05-16 18:11:20
Context
2018-05-16
18:13
Add users to multiple groups, or query existing membership of users. check-in: aaf317d39d user: mario tags: trunk
18:11
Template tool to craft/prepare new user scripts. check-in: 48e6e20fbb user: mario tags: trunk
18:10
Enables little ping button - with PS Test-Connection (instead of plain ping) check-in: 2bf65ee48c user: mario tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Added contrib/MakeNewPlugin.ps1.























































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# encoding: utf-8
# api: clicky
# type: inline
# version: 0.1
# title: Make new plugin
# description: Prepares comment stub for new plugin (in user %APPDATA dir)
# category: extras
# vars:
#    { name: title, type: str, value: "my test plugin", description: Tool title }
#    { name: description, type: str, value: "...", description: Short summary }
#    { name: category, type: select, select: "network|info|beta|powershell|cmd|user|wmi|extras", value: "beta", description: menu/grouping class }
#    { name: version, type: str, value: "0.1", description: Current version }
#    { name: icon, type: select, select: "powershell|user|users|wmi|notes|folder|date|cloud|fire|info|log|office|printer|tools", description: "menu icon (any existing img/* shorthand could be used)" }
#    { name: code, type: text, value: "Get-ADUser $username", description: "Any actual code goes here" }
# icon: notes
# state: beta
#
# Very crude tool to make a new tool/plugin script.
#


# prepare
$fn = "new-"+($title -replace "\W+","-")+".ps1"
$src = @"
# encoding: utf-8
# api: clicky
# title: $title
# description: $description
# version: $version
# category: $category
# type: inline
# state: beta
# icon: $icon
# key:
# config: -
# vars: -
# hidden: 0
# x-generated-from: MakeNewPlugin.ps1
#
# $description.
# → MORE DOCUMENTATION SHOULD GO HERE. WE KNOW WHERE YOU WORK!!
#

Param(
    `$machine = (Read-Host "machine"),      # The Param() stub allows the script to work standalone too.
    `$username = (Read-Host "username")     # Both `$machine and `$username vars were predefined anyway.
)

# do the things
$code

"@


# write
$fn = $env:APPDATA+"\multitool\$fn"
$src | Out-File $fn -Encoding UTF8 -Append
notepad $fn