Category: PowerShell5.1

  • AI Automation for the PowerShell

    AI Automation for the PowerShell

    “You may have experimented with Microsoft’s AI Shell for PowerShell and felt that you didn’t need another chatbot. However, AI Shell isn’t a shell at all. Like many of Microsoft’s Copilots, it functions merely as a chatbot attached to your terminal, providing enhanced copy-and-paste capabilities.” “The AI Shell is compatible with Windows, macOS, and Linux. Please ensure…

  • Check-Uptime-DC-Prompt.ps1

    Check-Uptime-DC-Prompt.ps1

    Sometimes a simple script makes life easier…

  • Get-Pagefile

    Quickly get the remote pagefile of a window server

  • Log Specific IPV4 Traffic When Found

    Log Specific IPV4 Traffic When Found

  • Looper

    Looper

    Having a good looper is a great script to keep available… I wish I could remember where I got this form, but I thank you, Anony-Mouse scripter! [::mouse::]

  • Check for GPO or run GPupdate Remotely

    Check for GPO or run GPupdate Remotely

    This script does lots of things that are handy when group policy (SysVol) replication is a problem… (like an environment still using FRS) My Thanks to Microsoft’s CoPilot for the help in sorting the logic of the try-else-catch commands…

  • Reverse Ping a 255.255.254 Scope

    Reverse Ping a 255.255.254 Scope

    To quickly obtain the devices using an IPv4Address in a scope reverse ping the scope in PowerShell (5.1) ‘#’ReverseLookup-Ipv4Address-By23Range.ps1’$subnet = read-host -Prompt “What IP scope with /23 range? -leave off the last octet numbers – like this 10.228.30. “for ($i=0; $i -le 511; $i++) { $ip = $subnet + $i Resolve-DnsName -name $ip -ea SilentlyContinue|select…

  • Find and Install SSH Module

    Find and Install SSH Module

    $Module = (FIND-Module SSH).name Install-Module -Name $Module -AllowClobber -Verbose -SkipPublisherCheck -Repository PSGallery -AcceptLicense -PassThru|` Import-Module -NoClobber -DisableNameChecking -PassThru -Verbose|Update-Module -Verbose -AcceptLicense -PassThru|Get-Module

  • Remove Revoked Certificates

    Remove Revoked Certificates

    The removal of revoked certificates is not automatic…

  • Set PS 5.1 to use PS 7 PSModulePath

    Set PS 5.1 to use PS 7 PSModulePath

    …might as well prepare by using the D:\PowerShell path now with PS 5.1…