Skip to Content
Email: enquiries@poshcodex.co.uk

PoshCodex

Empower Your PowerShell Scripting

    PoshCodex

    Empower Your PowerShell Scripting

    • Home
    • Blog
    • Our Products
      • TylFuzn
      • VulnView
    • Register
    • Login
    • Search for:
    8 Apr, 2025
    PowerShell: Understanding File Monitoring
    Powershell Powershell

    This PowerShell script is designed to monitor a specified folder for the creation of new files. It utilizes the FileSystemWatcher class to trigger actions based on file events and logs important information to a custom event log. Let’s break down

    Continue ReadingPowerShell: Understanding File Monitoring

    7 Dec, 2024
    Powershell: Working with AES encryption – Part 2
    Powershell Powershell

    In part 1, we encrypted our credentials using an AES.key to allow it to be portable for use in multiple environments and user sessions. In part 2 we’ll look at utilising these encrypted files in another script, but file lets

    Continue ReadingPowershell: Working with AES encryption – Part 2

    14 Nov, 2024
    Powershell: Working with AES encryption – Part 1
    Powershell Powershell

    Sometimes there is a requirement to run a PowerShell script that may use credentials, whilst it’s always bad to embed these credentials in your script, there are a number of ways to tackle this, one being the use of an

    Continue ReadingPowershell: Working with AES encryption – Part 1

    15 Jun, 2024
    Powershell: Random password generator
    Powershell Powershell

    Sometime you just need to generate random passwords, this function does that, it can be configured for different lengths and the number of alpha numeric characters.

    7 May, 2024
    PowerShell: find the next date of the next occurance of a day
    Powershell Powershell

    Sometimes for whatever reason you need to find the date of the next day, like patch Tuesday. This script does that As always this and many more script are available on my GitHub page. https://github.com/richeaston/Powershell/tree/main/findnextdateofday

    4 May, 2024
    Powershell: local admin users checks
    Powershell Powershell

    Keeping control of members in the local admins group can be a chore, especially if you inherit multiple domains who’ve done their own thing for years. This proactive remediation from intune can help weed out the staff who aren’t supposed

    Continue ReadingPowershell: local admin users checks

    3 May, 2024
    Powershell: find all users with expired passwords
    Powershell Powershell

    Just a simple one liner to find all domain users with expired passwords

    2 May, 2024
    PowerShell: Get last logged on domain user
    Powershell Powershell

    Who logged on last.? When diagnosing problems, finding out who logged on last just help, this function does exactly that. As always this is available on my GitHub page. https://github.com/richeaston/Powershell/tree/main/Get-Dulastlogon

    1 May, 2024
    PowerShell: Get groups with member count
    Powershell Powershell

    Sometimes you just need to know how many members are in a group (or groups), this function does exactly that. As always this is available on my GitHub page. https://github.com/richeaston/Powershell/tree/main/Get-GroupMembers (inc Count)

    30 Apr, 2024
    Powershell: Get-CertExpiry
    Powershell Powershell

    It’s Always nice to know when certificates are going to expire, it stops service outages, I’ve written a script that will check the server (or multiple remote servers) certificates and create a word document report of all the certificates that

    Continue ReadingPowershell: Get-CertExpiry

    Posts pagination

    1 2
    Copyright © 2024 | Powered by PoshCodex