Simple PowerShell example to collect user logons from Security Log.

This is rather slow, IMO. I was thinking of replacing my Python solution with PowerShell since our shop is moving to PowerShell for administrative purposes. Will likely need to add some filtering on users to get rid of the noise, you can see that in my Python code posted earlier.

Advertisements

Simple PowerShell module to store passwords.

If you have PowerShell scripts with passwords hard-coded you don’t want to risk someone accidentally exposing the script with passwords available. I wrote a simple password vault module to keep passwords outside the scripts. It stores them as files so you will need a secure share or folder to store them. I have a Python […]

Coin flip in PowerShell, GUI version.

Need to make a decision, like to bet, maybe you just like silly apps? Whatever the reason you’re reading this I hope it helps someone to learn some simple GUI tricks in PowerShell. I didn’t spend a lot of time on this. I already wrote one in C# years ago and had some downtime so […]

Get moon phase in Vala and PowerShell.

I’m working on a project in Vala that requires the moon phase. I’ve done this before in Python myself but wanted to look around for better. I found a nice Python script that just works so I decided to use it in Vala. Again, I’m learning PowerShell so why not convert to that as well? […]

First App Example In Nim

First impression of Nim was, wow! I’m a big Python guy so the syntax made me feel at home. I installed initially with apt and found it to be a tad old. Still, things worked great until I installed a few packages. None would import no matter what I did. I got close but they […]

Video Poker in PowerShell

In between real work, and to learn a bit about PowerShell since I don’t use it often, I created a video poker game. It’s rough and I don’t have time to make it pretty or add a GUI, but maybe it will inspire someone else? I also know very little about poker… I took a […]

How is finding duplicate files with PowerShell using SHA256? Fucking fast.

I just had to do it. I do this because why the hell not? We all have litter. I guess people will be interested in math, data, and AI. How boring… Maybe not boring at work but definitely boring at home. Maybe I’ll get motivated to do some TensorFlow slop. After I finish my GTK […]

Nim recursive duplicate file search.

I was wanting to spend some time with Nim programming language since it looks very similar to two of my favorite languages, Python being one. I am very impressed with it so far but I don’t really have anything to write at the moment and the kid keeps bugging me to paint his traffic light […]

Create, insert, and Query SQLite with PowerShell.

So I have C# code that grabs the print records from the Windows event logs on the print servers in order to create reports and easy searches from my web environment. I dump this data into a SQLite database, because I am a control freak and the place where I work is also a control […]

Collect user logons from Windows 10 with Python 3.

This is basically how I collect physical user logons along with reboots, etc. I dump this shit into a database and deliver via a web-page so folks can do dated searches by workstation or user ID. Works beautifully. You will need the Win32api libraries. I am running this on a Win 2019 server from Python3.7, […]