Category: HOWTO
-

Step-by-Step Guide to Troubleshooting Windows Server 2016 Active Directory Replication Issues
To force replication, run the command: repadmin /syncall /e /d /A /P
-

HOWTO move an ESXi host from one vCenter to another
Storage Configuration: Ensure that datastores are accessible by the ESXi host and are compatible with the new vCenter.
-

Microsoft: Standardize PS Modules Development By Using Versioned Sub-Folders
This strategy could be instrumental in fostering a more modular and resilient PowerShell ecosystem.
-

Update and Restart System
Something I was playing with to ensure my system updates every day, so I run this at the end of the day…
-

Enable AD RDC Rules on Domain Controllers
-

Easy(er) Windows 11 Upgrade
1. Install kb50626912. Reboot3. Run Windows11InstallationAssistant.exe If you get a TPM error you need a new system
-

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…
-
Get-Pagefile
Quickly get the remote pagefile of a window server
-

Log Specific IPV4 Traffic When Found
-

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::]
-

PS Script to Promote 2019 Server to RWDC
Add-WindowsFeature -Name “AD-Domain-Services” -IncludeManagementTools:$False -Confirm -ea Inquire -LogPath “C:\Users\$env:username\Documents\WindowsPowerShell\log\$day-RWDCPromo.log”
-

Set-MpPreference
As you can see, Microsoft’s syntax is wrong:They show the syntax for setting soft-passive mode as ‘Set-MpPreference -DisableRealtimeMonitoring $true’ when it is ‘Set-MpPreference -DisableRealtimeMonitoring:$true’ <– NOTE THE COLON??? Arrrrgghhhh! I cannot tell you how frustrating it is when code is not written to give you ANY response unless you get the syntax EXACTLY right. *SIGH*…
-

VMware-Backup ESXi Config File
-

Locate Pervasive Lockouts of AD Accounts
You can use PowerShell to search the Security event log for lockout events…
-

PowerCLI: Get the report of Hot Add / Hot Plug Status of the VMS
Get the report of Hot Add / Hot Plug Status of the VMS (updated from www.vmwarearena.com)
-

Check Wildcarded AD User Properties with PowerShell 5.1
Get all user properties, or just one, with a wildcard
-

Install Any Command Easily in PowerShell
That’s how you would install ANY module for a command you need. Now TELL me that’s not convenient!
-

Our Azure Resource Group, Tenant, and Subscription Questions to ChatGPT.org
Azure RGs, Subscriptions and Tenants can get confusing; This Q&A my son Ryan and I asked ChaGPT.org, during our AZ-104 training, should help.. Can an Azure Subscription be accessible by multiple tenants? And why?In Azure, can there be multiple subscriptions in a tenant? Can users access multiple subscriptions? How?
-

Log4J scanning fails to create csv file
invoke-command -scriptblock {powershell -File “D:\batch\Fix-4Log4J.ps1”} -computer $Server -AsJob -JobName “Scan4Log4J” -Verbose -EA SilentlyContinueWhen I run this script locally, with enter-pssession the script works just fine but NO CSV & D:\batch\Fix-4Log4J.ps1Yet every time I try to invoke, directly or with SAPS it fails to create file When I run this script locally, with enter-pssession the script…
-

How to quiesce an AWS instance to perform an uninterrupted OS upgrade
How do we quiesce an AWS instance to perform an uninterrupted operating system upgrade in-place, like from Microsoft Server 2012R2 to 2019, which can be easily done on other virtualized platforms, like VMware? We have a problem in our upgrades in Windows Server where the install backs out at 90%. AWS has looked and claims the install is being…
-

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?
I have discovered that the interactive powershell in version 5.1 is badly limited.
-

Windows Server 2019 Safe_OS Error Correction Poll
…did you just bail to a new build?
-

HOWTO: Discover Where a LOCAL ISO is Mounted – Windows Server 2016/2012R2
..the ISO still throws the “Sorry…” error