Tag: 2016

  • Recurse with Grep (SLS in PS 5.1)

    Recurse with Grep (SLS in PS 5.1)

    The diffculty at finding this was unnecessary Linux guys… sheesh! The first line shows how to recurse a sls/grep search in Powershell for specific content of PS scripts, in subdirectories, not the .\, while the second line gives an example on how to get the list you can then call a program against, like ISE…

  • Check-WinEvents-Prompted.ps1

    Check-WinEvents-Prompted.ps1

    ‘Check-WinEvents-Prompted.ps1’ #************************************************************************************************************* # Script Name : Get-Latest-WinEvent-Prompted-DCs # Purpose : Check Latest Event log for DCs chosen # Date : #.\Get-UpdateDate.ps13:32 PM 3/13/2024 # – Initial version # Date : #.\Get-UpdateDate.ps11:12 PM 3/14/20244 # – Updated to reflect specific events, added credentials, added prompts # Author : Patrick Burwell #************************************************************************************************************* #Set location first set-location D:\PowerShell…

  • Confirm Windows Server In-place Upgrade to 2025

    From 4SysOps: Confirm Windows Server in-place upgrade to 2025 Current version Upgrade to Windows Server 2025? Windows Server 2012 ❌ No Windows Server 2012 R2 ❌ No Windows Server 2016 ✅ Yes Windows Server 2019 ✅ Yes Windows Server 2022 ✅ Yes https://4sysops.com/archives/check-the-windows-server-version-to-determine-if-an-in-place-upgrade-to-server-2025-is-supported

  • FRS to DFSR Migration Can Be Reset!

    FRS to DFSR Migration Can Be Reset!

    The FRS migration to DFSR can be restarted, even after Eliminiated state… The simple steps to get back is to reset the DFSR Global Settings value from 48 to 0 using ADSIEdit: You then delete the entire “Migrating Sysvols” key on the DFSR services registry: Then, once every RWDC in the domain or forest isn…

  • 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…

  • Locate Pervasive Lockouts of AD Accounts

    Locate Pervasive Lockouts of AD Accounts

    You can use PowerShell to search the Security event log for lockout events…

  • PowerShell: Install ActiveDirectory Easily

    PowerShell: Install ActiveDirectory Easily

    I have found this make installing the ActiveDirectory Module FAR easier.Quick.Painless.

  • Get-AdComputer is not showing originating server

    Get-AdComputer is not showing originating server

    When I run an AD enumeration script, the Server I am running FROM never shows in the list…

  • Why is the Interactive PowerShell 5.1 So Limited?

    Why is the Interactive PowerShell 5.1 So Limited?

    I have discovered that the interactive powershell in version 5.1 is badly limited.