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.
PS2EXE-GUI
Project page:Powershell Webserver
Powershell script that starts a webserver (without IIS). Powershell command execution, script execution, upload, download and other functions are implemented.
Powershell Webserver
Project page: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!
VirtualDesktop
Project page:Powershell scripts to export and import firewall rules
Powershell scripts to export and import firewall rules in CSV or JSON format.
ExportImportFirewallRules
Project page: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.
Split-File
Project page: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.
Export-Filesegment
Project page: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.
Replace-InFile
Project page: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.
Inputbox
Project page: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.
Transpose-Object
Project page: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.
Get-Sessions
Project page:Retrieve latest reboot time(s)
Short script to retrieve the latest reboot time(s) of a computer
Get-RebootTime
Project page: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.
Compress-LogDirectory
Project page: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.
AclInRegistry
Project page:Convert short Powershell scripts to batches
Script to convert short powershell scripts to batches. Generated batches run on double click and ignore execution policies.
ConvertTo-Batch
Project page: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.
CredentialLocker
Project page: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.
GetAllEvents
Project page:Powershell MineSweeper
Powershell game of MineSweeper with WinForms graphics.
Based on the game of //\o//.
Powershell MineSweeper
Project page: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.
Write-Highlight
Project page: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.
RDP-CertHash
Project page:"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.
Admin-Explorer
Project page: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.
Add-LineNumbering
Project page: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.
Control-IE
Project page: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.