Skip to content

Commit edc9ff0

Browse files
committed
Initial commit
1 parent 73ea106 commit edc9ff0

File tree

92 files changed

+18903
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+18903
-1
lines changed

LazyWinAdmin/LazyWinAdmin.ps1

+13,119
Large diffs are not rendered by default.

LazyWinAdmin/computers.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
computer01
2+
workstation02
3+
Serverweb01
4+
ServerSQL01
5+
Router01
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
http://thepowershellguy.com/blogs/posh/archive/2007/03/22/powershell-wmi-explorer-part-1.aspx
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
http://sydiproject.com/
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
http://technet.microsoft.com/en-us/sysinternals/bb963907.aspx

LazyWinAdmin/tools/paexec.readme.txt

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
http://www.poweradmin.com/PAExec/
2+
3+
4+
Usage: PAExec [\\computer[,computer2[,...] | @file]][-u user [-p psswd][-n s][-l]
5+
[-s|-e][-x][-i [session]][-c [-f|-v] [-csrc path]][-lo path][-rlo path][-ods]
6+
[-w directory][-d][-][-a n,n,...][-dfr] cmd [arguments]
7+
8+
Standard PAExec\PsExec command line options:
9+
-a Separate processors on which the application can run with commas where 1 is the lowest numbered CPU. For example, to run the application on CPU 2 and CPU 4, enter:
10+
-a 2,4
11+
-c Copy the specified program to the remote system for execution. If you omit this option the application must be in the system path on the remote system.
12+
-d Don't wait for process to terminate (non-interactive).
13+
-e Does not load the specified account's profile.
14+
-f Copy the specified program even if the file already exists on the remote system.
15+
-i Run the program so that it interacts with the desktop of the specified session on the specified system. If no session is specified the process runs in the console session.
16+
-h [NOT IMPLEMENTED] If the target system is Vista or higher, has the process run with the account's elevated token, if available.
17+
-l [EXPERIMENTAL] Run process as limited user (strips the Administrators group and allows only privileges assigned to the Users group). On Windows Vista the process runs with Low Integrity.
18+
-n Specifies timeout in seconds connecting to remote computers.
19+
-p Specifies optional password for user name. If you omit this you will be prompted to enter a hidden password.
20+
-s Run the process in the System account.
21+
-u Specifies optional user name for login to remote computer.
22+
-v Copy the specified file only if it has a higher version number or is newer on than the one on the remote system.
23+
-w Set the working directory of the process (relative to remote computer).
24+
-x Display the UI on the Winlogon secure desktop (local system only).
25+
-priority Specifies -low, -belownormal, -abovenormal, -high or -realtime to run the process at a different priority. Use -background to run at low memory and I/O priority on Vista.
26+
computer Direct PAExec to run the application on the remote computer or computers specified. If you omit the computer name PAExec runs the application on the local system, and if you specify a wildcard (\\*), PAExec runs the command on all computers in the current domain.
27+
@file PAExec will execute the command on each of the computers listed in the file.
28+
program Name of application to execute.
29+
arguments Arguments to pass (note that file paths must be absolute paths on the target system).
30+
31+
Additional options only available in PAExec:
32+
-cnodel If a file is copied to the server with -c, it is normally deleted (unless -d is specified). -cnodel indicates the file should not be deleted.
33+
-csrc When using -c (copy), -csrc allows you to specify an alternate path to copy the program from. Example: -c -csrc "C:\test path\file.exe"
34+
-dbg Output to DebugView (OutputDebugString)
35+
-dfr Disable WOW64 File Redirection when launching the new process
36+
-lo Log Output to file. Ex: -lo C:\Temp\PAExec.log
37+
The file will be UTF-8 with a Byte Order Mark at the beginning.
38+
-rlo Remote Log Output: Log from remote service to file (on remote server).
39+
Ex: -rlo C:\Temp\PAExec.log
40+
The file will be UTF-8 with a Byte Order Mark at the beginning.
41+
42+
The application name, copy source, working directory and log file entries can be quoted if the path contains a space. For example:
43+
PAExec \\test-server -w "C:\path with space" "C:\program files\app.exe"
44+
45+
Input is sent to the remote system when Enter is pressed, and Ctrl-C stops the remote process and stops PAExec.
46+
47+
PsExec passes all parameters in clear-text. In contrast, PAExec will scramble the parameters to protect them from casual wire sniffers, but they are NOT encrypted. Note that data passed between PAExec and the remote program is NOT scrambled or encrypted -- the same as with PsExec.
48+
49+
PAExec will return the error code it receives from the application that was launched remotely. If PAExec itself has an error, the return code will be one of:
50+
-1 = internal error
51+
-2 = command line error
52+
-3 = failed to launch app (locally)
53+
-4 = failed to copy PAExec to remote (connection to ADMIN$ might have failed)
54+
-5 = connection to server taking too long (timeout)
55+
-6 = PAExec service could not be installed/started on remote server
56+
-7 = could not communicate with remote PAExec service
57+
-8 = failed to copy app to remote server

LazyWinAdmin/tools/psexec.readme.txt

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
PSEXEC
2+
3+
http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx
4+
5+
Using PsExecSee the July 2004 issue of Windows IT Pro Magazine for Mark's article that covers advanced usage of PsExec.
6+
7+
Usage: psexec [\\computer[,computer2[,...] | @file][-u user [-p psswd]][-n s][-l][-s|-e][-x][-i [session]][-c [-f|-v]][-w directory][-d][-<priority>][-a n,n,... ] cmd [arguments]
8+
9+
computer Direct PsExec to run the application on the computer or computers specified. If you omit the computer name PsExec runs the application on the local system and if you enter a computer name of "\\*" PsExec runs the applications on all computers in the current domain.
10+
@file Directs PsExec to run the command on each computer listed in the text file specified.
11+
-a Separate processors on which the application can run with commas where 1 is the lowest numbered CPU. For example, to run the application on CPU 2 and CPU 4, enter: "-a 2,4"
12+
-c Copy the specified program to the remote system for execution. If you omit this option then the application must be in the system's path on the remote system.
13+
-d Don't wait for application to terminate. Only use this option for non-interactive applications.
14+
-e Does not load the specified account's profile.
15+
-f Copy the specified program to the remote system even if the file already exists on the remote system.
16+
-i Run the program so that it interacts with the desktop of the specified session on the remote system. If no session is specified the process runs in the console session.
17+
-l Run process as limited user (strips the Administrators group and allows only privileges assigned to the Users group). On Windows Vista the process runs with Low Integrity.
18+
-n Specifies timeout in seconds connecting to remote computers.
19+
-p Specifies optional password for user name. If you omit this you will be prompted to enter a hidden password.
20+
-s Run remote process in the System account.
21+
-u Specifies optional user name for login to remote computer.
22+
-v Copy the specified file only if it has a higher version number or is newer on than the one on the remote system.
23+
-w Set the working directory of the process (relative to the remote computer).
24+
-x Display the UI on the Winlogon desktop (local system only).
25+
-priority Specifies -low, -belownormal, -abovenormal, -high or -realtime to run the process at a different priority. Use -background to run at low memory and I/O priority on Vista.
26+
program Name of the program to execute.
27+
arguments Arguments to pass (note that file paths must be absolute paths on the target system)
28+
29+
You can enclose applications that have spaces in their name with quotation marks e.g. "psexec \\marklap "c:\long name\app.exe". Input is only passed to the remote system when you press the enter key, and typing Ctrl-C terminates the remote process.
30+
31+
If you omit a username the remote process runs in the same account from which you execute PsExec, but because the remote process is impersonating it will not have access to network resources on the remote system. When you specify a username the remote process executes in the account specified, and will have access to any network resources the account has access to. Note that the password is transmitted in clear text to the remote system.
32+

Media/LazyWinAdmin-Screenshot01.png

153 KB
Loading

README.md

+128-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,128 @@
1-
# LazyWinAdmin_GUI
1+
# LazyWinAdmin_GUI
2+
3+
4+
# REQUIRED: -Powershell 2.0, Permissions on the systems queried
5+
# -External Tools: SystemInfo.exe, DriverQuery
6+
# FEATURES:
7+
# -ContextMenu on ComputerName TextBox
8+
# -
9+
# VERSION HISTORY
10+
# 2011.06.24 -Added Application List, PSRemoting, Inventory Buttons moved in TOOLS
11+
# 2011.06.26 -RDP Check/Enable/Disable Added
12+
# 2011.06.29 -Added link to Powershell ISE
13+
# -Services - AutoNotStarted - Check if all the services with StartMode AUTOMATIC are actually Running
14+
# -Services - Auto - Removed ProcessID in results
15+
# 2011.06.30 -Fixed the Problems with Start/Stop Service buttons
16+
# -Add AutoComplete (Append and Suggest) (need to fill the computers.txt)
17+
# -Add AutoDisable Buttons/TabControl if not Server Entered
18+
# -Add Get-USB - Report all the USB device on the Computer
19+
# 2011.08.11 -Correct Compmgmt.msc button
20+
# 2011.08.15 -Title bar with current username and domain
21+
# -Change font from Microsoft Sans cherif to Trebuchet MS
22+
# -Scroll to bottom when text is changed
23+
# -ADD more logs to buttons
24+
# 2011.08.30 -ADD ErrorProvider on TextBox ComputerName
25+
# 2011.08.31 -SYDI Works (only .DOC for now)
26+
# -ADD the tool SysInternals AdExplorer
27+
# 2011.10.02 -FIX Query/Stop/Start Service buttons
28+
# -ADD Descriptions in logs RichTextBox for Query/Stop/Start Service buttons
29+
# -CHANGE Button :80 to HTTP
30+
# -ADD FTP, TELNET, HTTPS buttons
31+
# 2011.10.04 -FIX some problem with Uptime Button
32+
# -FIX Modified The Service Query/start/stop
33+
# -ADD Restart Service Button
34+
# -ADD TextBox with AutoCompletion on some Services i added
35+
# 2011.10.06 -ERROR AutoCompletion in the TEXTBOX of Services seems to make the thing crash :-(
36+
# 2011.10.23 -REMOVE AutoCompletion in Service Tab, in ServiceName TextBox
37+
# -ADD Get Local Hosts File (Menu: LocalHost/Hosts File)
38+
# -ADD Get Remote Hosts File (in General Tab,need permission on remote c$)
39+
# -REMOVE Computers.txt auto-completion, seems buggy :-(
40+
# -ADD Active Directory Form
41+
# -ADD IP Calculator Form
42+
# 2011.11.24 -FIX ENTER-PSSESSION button.
43+
# 2011.12.05 -REPLACED some function by button with icons below Computername
44+
# -MOVED the TEST-PSSESSION button to TOOL tab
45+
# -ADD the TEST-PSSESSION inside the ENTER-PSSESSION button. (2 in 1 :)
46+
# 2011.12.26 -MODIFY Inventory button and output (add more info)
47+
# -MODIFY IpConfig to use the one from BSonPosh module
48+
# 2011.12.28 -ADD button IPCONFIG, DISK USAGE
49+
# 2012.01.06 -ADD START COMMANDS in General Tab
50+
# -ADD SYDI option (dropdown) to choose DOC or XML format.
51+
# -ADD Combobox in TOOLS Tab, and ADD the present tools in combobox
52+
# -REMOVE Buttons in TOOLS tab (the ones placed in Combobox)
53+
# -FIX the ContextMenuStrip on TextBox SERVERNAME.
54+
# -ADD option of type for SYDI (DOC or XML)
55+
# 2012.01.29 -FIX the names of all the variables (for Winforms controls only)
56+
# -ADD Qwinsta and Rwinsta to contextmenu of computername textbox
57+
# -FIX SYDI (DOC and XML now work) auto-save on Desktop of Current User
58+
# -FIX "Installed Applications" show the full names of each application,vendors and versions.
59+
# 2012.01.31 -ADD Connectivity Testing Button (Remote registry, ping, RPC, RDP, WsMan)
60+
# -ADD another more info to ipconfig button
61+
# 2012.02.02 -ADD Invoke-item in SYDI to open the Explorer
62+
# 2012.04.09 -Remove Button Test PsRemoting
63+
# -Moved "Generate a Password" under AdminArsenal Menu
64+
# -Delete Menu TOOLS
65+
# -Change the size of Author Form (smaller)
66+
# 2012.04.10 -Redesign a bit the interface
67+
# -Add a few tabs (Software, Other Powershell script, external tools)
68+
# -Add a Panel for basic connectivity test and properties
69+
# -Correct Logs RichTextBox, fix error "Property ENABLED does not exist"
70+
# -Add some colors to the Connectivity Panel (OK: green, FAIL: red, other: blue)
71+
# -Add PAExec and PSexec in the TOOLS directory, Button are in the tab "External tools".
72+
# by default, it will launch a CMD.exe
73+
# -Moved all the external tools (tools that are not Powershell) under "External Tools"
74+
# 2012.04.14 -Add ActiveDirectory Tab
75+
# -Add GPUpdate function, Tab "Active Directory"
76+
# -Remove EMAIL options
77+
# -Remove NOTEPAD button (export of richtextbox)
78+
# -Add EXPORT RTF button (open in wordpad)
79+
# -Comment all the "Clear-RichTextBox" function use
80+
# -Rename the COPY button (close to the richtextbox) to ClipBoard
81+
# -Move EXIT button to the bottom.
82+
# -Remove PASTE button
83+
# 2012.04.17 -MODIFY Function Add-Logs (Alias, Add the return to line)
84+
# -MODIFY Function Add-RichTextBox (Alias, Add the return to line
85+
# -FIX the ComputersList Load.
86+
# -Clean some variable and add comments of the mainform script.
87+
# -ADD a SCRIPTS folder with the variable: $ScriptsPath
88+
# 2012.04.18 -Upgraded my PrimalForms 2011 to PowerShell Studio 2012
89+
# -Remove the ListBox from the Beta and readd the buttons
90+
# 2012.04.20 -Ability to Maximize the windows (i used WinForm Docking/Move Front,Back)
91+
# 2012.05.12 -Cleaning Some code
92+
# -Fixes some bugs
93+
# -Remove unused Functions
94+
# -Checking if tools are present when the form load, disable buttons if not present.
95+
# -Add MotherBoard,PageFile Settings, System Type buttons
96+
# -AD KMS Information, FSMO
97+
# 2012.05.16 -Adding functions BackgroundJobs for long process(not used yet)
98+
# 2012.05.17 -Renaming a couple of buttons and add ToolTip Info for each.
99+
# -Modify Ipconfig button under Network, only one result come out now
100+
# -Remove the ROUTE PRINT button form Network, kept only ROUTE TABLE
101+
# -Add a button to show Process CommandLine Argument (command line used to launch each process)
102+
# -Modify Button CommandLine with Out-String Width = $richtextbox.width
103+
# -Modify Button Shares with Out-String Width = $richtextbox.width
104+
# -CTRL+Scroll in the RichTextBox is working now
105+
# -Richtextbox dont overlap on middle bar anymore (middle bar=buttons exit,copy clipboard...)
106+
# -Add Button to change and set local Computer Description
107+
# -Add Button to change and set Active Directory Computer Description
108+
# 2012.05.28 -Getting ready for a public open source version
109+
# -Remove and move a couple of function, tabs and unused buttons
110+
# -Add Tip info on most of the button (pass over button help)
111+
# -Add WindowsUpdate.log and ReportingEvents.log Button
112+
# -Fix Open C$ button
113+
# -Icons added to the main functions
114+
# -OnLoad of the Form, the script will test the path of the scrtips and External tools
115+
# if not present, the script will disable the buttons
116+
# -Load of Computers.txt works with an Export to PS1 (not with Export to EXE)
117+
# 2012.05.30 -Corrected color of the check buttons
118+
# -Corrected the Restart and Shutdown button to have a prompt.
119+
# -Corrected MsINFO32.exe check (during the load of the form)
120+
# 2012.06.06 -Changed some Icons
121+
# -Add confirmation on EXIT Button
122+
# 2012.06.07 -Press Enter on ComputerTxtBox will ping the machine
123+
# -Modified the CHECK, now the full OS information is returned
124+
# 2012.06.10 -Fixed the directory issue (scripts tools)
125+
# 2012.06.13 -Renamed the forms
126+
# -Removed the form "LocalHost Current information"
127+
# -Fix Qwinsta and Rwinsta, if and else based on 32 or 64bits now
128+
# -Align the CHECK textboxes

Sources/About.pff.bak

20.2 KB
Binary file not shown.

Sources/About.psf

380 KB
Binary file not shown.

Sources/About.psf.psbuild

1.21 KB
Binary file not shown.

0 commit comments

Comments
 (0)