• Stars
    star
    351
  • Rank 120,943 (Top 3 %)
  • Language
    PowerShell
  • Created over 4 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Copies of my 'Script Center' and 'Technet Gallery' publications

TechNet-Gallery

You find copies of my 'Script Center' and 'Technet Gallery' publications here because Script Center and Technet Gallery are closed.

Version 1.0.28 / 2023-07-23

VirtualDesktop 2.14:

  • no flashing icons after switching of desktops

For a complete list of changes see here: Changes

PS2EXE-GUI: "Convert" PowerShell Scripts to EXE Files with GUI

Overworking of the great script of Ingo Karstein with GUI support. The GUI output and input is activated with one switch, real windows executables are generated. With Powershell 5.x support and graphical front end.

With PS2EXE compiled script might be detected as malware. Best is to sign the binaries and to create no harmful programs.

Project page: PS2EXE-GUI

Powershell Webserver

Powershell script that starts a webserver (without IIS). Powershell command execution, script execution, upload, download and other functions are implemented.

Project page: Powershell Webserver

Powershell commands to manage virtual desktops of Windows 10

Windows 10 introduced a great new feature with virtual desktops. This set of powershell commandlets helps out and lets you control virtual desktops from scripts. Compatible to Windows 10 1607, Server 2016, Windows 10 1803 up to 21H2 and Windows 11!

Project page: VirtualDesktop

Powershell scripts to export and import firewall rules

Powershell scripts to export and import firewall rules in CSV or JSON format.

Project page: ExportImportFirewallRules

Powershell functions to split and join binary files fast

Two Powershell functions to split and join binary files fast. The functions are using .Net BinaryWriter methods. If .Net 4 or above is detected, the quick .CopyTo() method is used to join files.

Project page: Split-File

Powershell functions to extract and insert binary data from and to files

Two Powershell functions to extract and insert binary data from and to files. The functions are using .Net BinaryWriter and BinaryReader methods.

Project page: Export-Filesegment

Replace-InFile.ps1: Replace text in files while preserving the encoding

Replace-InFile.ps1 is a Powershell script I made to replace text in files programmatically without getting a mess with the text encodings. The script detects the encoding of each processed file and writes it back with the same encoding.

Project page: Replace-InFile

Inputbox for Powershell

With [System.Windows.Forms.MessageBox]::Show(...) you can display a messagebox in every powershell script, but a function to display an inputbox is missing. So I wrote this small c# class InputBox for it.

Project page: Inputbox

Transpose-Object: Powershell script to transpose objects from columns to rows

Transpose-Object: Powershell script to transpose objects from columns to rows. Useful when the order displayed in a GridView (with Out-GridView) or in a CSV file (with Export-Csv) has to be rotated.

Project page: Transpose-Object

Get-Sessions: Powershell script for information on interactive logins (incl RDP)

Get-Sessions: Powershell script to get information about interactive logins (including RDP sessions) including logon, connect, disconnect and logoff times.

Session ID and remote host for RDP can be requested per parameter.

Project page: Get-Sessions

Retrieve latest reboot time(s)

Short script to retrieve the latest reboot time(s) of a computer

Project page: Get-RebootTime

Powershell script to compress log files (and IIS logs)

This script compresses log files older than the current month to Zip archives in a given directory or in the IIS log directories and deletes the archived files.

Project page: Compress-LogDirectory

Powershell: Permissions for administrative shares (like ADMIN$) / registry ACLs

Powershell scripts to get or set permissions for administrative shares and other registry stored ACLs like permissions for the server service, for shares, for Remote Desktop connections and for the access to services or DCOM applications.

Project page: AclInRegistry

Convert short Powershell scripts to batches

Script to convert short powershell scripts to batches. Generated batches run on double click and ignore execution policies.

Project page: ConvertTo-Batch

Powershell Module CredentialLocker

Module to manage the Credential Locker, also known as Password Vault, which provides a way for you to store user credentials (username, password) in a secure fashion for web pages or your app. With this module you can manage stored credentials of Internet Explorer and Edge too.

Project page: CredentialLocker

GetAllEvents: Query all events from all event logs

Command line tool to query all events from all event logs (about 1200 in Windows 10) and display in GridView or export to text or csv file.

Project page: GetAllEvents

Powershell MineSweeper

Powershell game of MineSweeper with WinForms graphics.

Based on the game of //\o//.

Project page: Powershell MineSweeper

Write-Highlight: Highlighting of multiple search patterns in different colors

Powershell script that highlights multiple search patterns in the output. You can give an array of regular expressions, every expression is marked in its own color.

Project page: Write-Highlight

Script to manually import RDP certificates

Script to import the registry keys and certificate thumbnails for unknown RDP connections. No RDP trust warnings will appear for the remote machine after running the script.

Project page: RDP-CertHash

"File Open" Dialog As Replacement for An Adminstrative Windows Explorer

Since Windows Explorer cannot be started with administrative privileges starting with Windows 7, this script starts an administrative "File Open" dialog as a replacement.

Project page: Admin-Explorer

Powershell: add line numbering, line coloring, directory size to output/pipeline

Some fun powershell scripts to add additional information to your output or objects in the pipeline.

Add-LineNumbering adds line numbering, Add-LineColoring adds alternating line colors and Add-SizeToDir adds file count and length.

Project page: Add-LineNumbering

Create or close tabs in Internet Explorer

With the COM interface and DOM you can control the browser Internet Explorer. I made a - for me - useful script to start a new Internet Explorer tab from powershell or close an existing tab.

Project page: Control-IE

Tutorial: Graphical WPF programs in C# with just one source file

Have you been already annoyed that you need Visual Studio or MSBuild to create WPF programs?

Here is a small - and not really honest - tutorial of C# WPF programs that can be compiled without Visual Studio or MSBuild.

Project page: WPF Demos

More Repositories

1

PS2EXE

Module to compile powershell scripts to executables
PowerShell
1,170
star
2

VirtualDesktop

C# command line tool to manage virtual desktops in Windows 10
C#
570
star
3

PSVirtualDesktop

VirtualDesktop is a Powershell module that provides commandlets to manage virtual desktops of Windows 10.
PowerShell
292
star
4

Win-PS2EXE

Graphical frontend to PS1-to-EXE-compiler PS2EXE.ps1
C#
281
star
5

WebServer

Powershell WebServer is a Powershell module that starts a webserver (without the need for IIS)
PowerShell
82
star
6

SysAdminsFriends

SysAdminsFriends is a Powershell module that provides some tools that are useful for system administrators.
PowerShell
39
star
7

Firewall-Manager

Firewall-Manager is a powershell module to manage firewall rules
PowerShell
24
star
8

Priority

C++ command line utility to query or set CPU, memory and I/O priority (Windows)
C++
13
star
9

Suspend

C++ command line tool to suspend / resume processes (Windows)
C++
12
star
10

SendKeysGUI

Keyboard macro tool, sends clipboard, text, file content or command output as keystrokes
C#
8
star
11

ThreadInfo

C++ command line tool to get process and thread information with NtQuerySystemInformation (Windows)
C++
8
star
12

CredentialLocker

CredentialLocker is a powershell module that provides commandlets to manage credentials in the password vault.
PowerShell
8
star
13

GetAllEvents

C# program to query all events from all event logs (about 1200 in Windows 10) and display in GridView or export to text or csv file
C#
6
star
14

Windows-Service

Sample implementations of a Windows Service including process execution, powershell execution, Named Pipes, event log aggregation...
C#
6
star