All blogs / DevOps / SRE / infrastructure
PoSh Chap
learn.microsoft.com/en-us/archive/blogs/poshchap
Musings on the splendour of PowerShell...
DevOps / SRE / infrastructureSecurityMicrosoft blogsMSDN archive
- Posts
- 196 from 21 Feb 2014 to 26 Jul 2018
- Posting
- archived, read-only
- Kind
- personal blog
- Feed
- https://learn.microsoft.com/en-us/archive/blogs/poshchap/feed.xml
2018 2
2017 43
- Post #200! a.k.a A Brave New Blog
- One-Liner: Get Signing Algorithm for Personal Store Certificates
- AD Groups with Low Member Count
- More on Get-Acl with Active Directory
- PowerShell in the Azure Portal... Oh, Happy Day!
- One-Liner: Query the AD Schema for User Object Attributes
- PowerShell in the Azure Portal... Almost!
- Intelllisense in the Console
- Scripting Tips & Tricks: Dynamic Parameters
- AD Cmdlet -Filter Faffing
- Scripting Tips & Tricks: Dynamic RegEx Queries
- Scripting Tips & Tricks: RegEx for OU Name & Path
- Scripting Tips & Tricks: Review Your Comments
- Security Focus: Generate an Alphanumeric Password
- Add Multi-Line Content to a Linux File with Add-Content
- One-Liner: PowerShell Pi Mnemonic
- Profile Power: Adjust Console Opacity
- Get User's Provisioned Plans with Azure AD PowerShell Module
- Profile Power: Default Parameter for Format-Table and Format-Wide
- Get Active Directory "Write Members" WriteProperty
- Profile Power: Tidy Up My Personal Certificate Store
- Security Focus: Count Vulnerabilities for Monthly Security Updates
- Security Focus: Get CVE Information for WannaCrypt
- Use CMD to echo a Script Block to an Encoded Command
- DNS Forwarders Fours Ways
- Set Password of Azure Active Directory B2B User to Not Expire with PowerShell
- Periodically Check PowerShell Job Status
- One-Liner: Get TLS Cipher Suite Details with PowerShell
- Use PowerShell to List Active Directory Extended Rights
- Security Focus: User PowerShell to Obtain Microsoft Security Update Information
- Restart-Computer (with BitLocker Suspended)
- Fun & Frolics: Generate a 0 and 1 Screen Stream
- Module Manifest - ScriptsToProcess
- Start-AzureCloudService
- Security Focus: Get Mail Enabled Admin Users
- Try to Catch Error Exception Types
- Back to Basics: Generate Monthly Report Folders
- Security Focus: Enable / Disable MFA on Azure AD Admin Account
- Security Focus: Update Azure AD Admin Account Password
- Get-OneMillionDigitsofPi
- One-Liner: Find a Renamed and Relocated AD Guest Account WITHOUT using the Well-Known SID
- Use PowerShell to Show User Rights Assignments Set by Group Policy
- Stop PowerShell.exe from Starting!
2016 51
- Janus...
- Happy Holidays 2016!
- RegEx for Splitting Hairs
- List Forest SPN Mappings
- 10 Years of PowerShell!
- Days of Service and Service Anniversaries
- All Properties AND a Constructed Attribute? Get out of here!
- Active Directory Object Parent GUID Fun!
- Active Directory Object GUID Conversion Larks!
- RegEx for SMTP Address Validation
- RegEx for Password Complexity Validation
- Back to Basics: Comparing Property Values Between PS Custom Objects
- Back to Basics: Multiple Statements with Try / Catch
- Security Focus: Check Credential Guard Status with PowerShell
- One-Liner: Use PowerShell to Verify Domain Controller Location
- Security Focus: Use PowerShell to List Authentication Policy Silo Members
- Ooooh... PnP Cmdlets & Surface Book Fun!
- One-Liner: Use PowerShell to Get GPOs Containing User Settings
- Use PowerShell to Get GPO Status Flag
- Security Focus One Liner: AD Privileged User and Password Doesn't Expire
- Security Focus: Orphaned AdminCount -eq 1 AD Users
- Back to Basics: Change an Attribute on a File
- Security Focus: AD Objects Configured as AdminCount -eq 1
- Parameter HelpMessage Arguement
- Use PowerShell to Decipher GPO Version Information
- Security Focus: Check the AdminSDHolder ACL - Part 2
- MS16-072 - Known Issue - Use PowerShell to Check GPOs
- Security Focus: Check the AdminSDHolder ACL - Part 1
- Back to Basics: Is my Parameter Value from the Pipeline?
- Security Focus: Reporting on Interesting UserAccountControl Values
- Configure an Azure Automation Account - An Addendum
- Back to Basics: A Casting Quandary
- Perform a Basic o365 Inventory with PowerShell
- Security Focus: Report on Protocol Transition
- Security Focus: Report on Unconstrained Delegation
- Security Focus: Report on Constrained Delegation
- Active Directory - Parsing a 'Multi-Line' Description Property
- Even Newer and Even More Improved Formula: Build an Active Directory Forest in Microsoft Azure (IaaS) II
- Back to Basics: Use PowerShell to Search Servers for Specific Software
- Back to Basics: Use PowerShell to Generate a List of Week Commencing Dates
- Configure DNS Dynamic Update Credentials for DHCP with PowerShell
- ADMirror PowerShell Module
- Configure an Azure Automation Account - Part 3 - Validation Run Book
- Configure an Azure Automation Account - Part 2 - Credentials and Variables
- Configure an Azure Automation Account - Part 1 - Start Me Up
- Use PowerShell to Restrict DNS Resource Record Registration
- One-Liner: Generate a Random Password
- One-liner: Use Get-ADObject to Find Authorised DHCP Servers
- Automagically Keep the Azure PowerShell Module Up-To-Date
- One-Liner: Is my Laptop Connected to a Domain Controller?
- PowerShell and certutil.exe
2015 50
- Happy Holidays - Festive Fun!
- Use PowerShell to Add a Vendor-Specific Class to Windows DHCP
- Security Focus: sIDHistory / sID Filtering Sanity Check - Part 2
- Security Focus: sIDHistory / sID Filtering Sanity Check - Part 1 - aka Post #100!
- iSCSI Storage for My Cluster Test Lab - Part 2
- iSCSI Storage for My Cluster Test Lab - Part 1
- One-Liner: Get Latest Windows Server Technical Preview Image
- Differentiate Between Automatic Variables and User Created Variables
- Copy To or From a PowerShell Session
- Security Focus: More on Defender and PowerShell
- Security Focus: Defending PowerShell with the Anti-Malware Scan Interface (AMSI)
- Motd
- Backwards Incompatibility: Slip Into Something Just As Comfortable
- Create Azure Cloud Service Remote Desktop Connection Manager File (.rdg)
- One-Liner: Launch Azure VM RDP Connection from PowerShell
- Scripting Tips & Tricks: ISE - Alt + Shift + Left Mouse Button
- Update an ISE Snippet
- Scripting Tips & Tricks: The PowerShell Script Analyzer Module
- Quenching a Thirst... Test Lab Hydration
- Getting Started with the PowerShell Gallery
- PowerShell, FSMOs and Netdom
- One-Liner: Stop and Deallocate Azure Virtual Machines
- Find Server Objects Without NTDS Settings
- Defender PowerShell Module
- The Joy of --%
- One-Liner: List Deleted Objects
- Are your Active Directory Partitions Backed Up?
- Security Focus: Check Active Directory for Anonymous Access
- Use PowerShell to Enter-PSSession from the Active Directory Users and Computers MMC
- Latest HSGB Outings... Just-In-Time (JIT) Administration
- Remove a String from a Multi-Valued Attribute
- Get Active Directory Accounts Created in the Last N Days (featuring -xor)
- Security Focus: Resetting 'Smart card is required for interactive logon'
- Security Focus: Analysing 'Account is sensitive and cannot be delegated' for Privileged Accounts
- msDS-parentdistname vs. parentGUID
- Mirror an OU Structure to a Test Domain
- PowerShell and _MSDCS Recovery
- One-Liner: Domain Controller Patch Levels
- Remove AD Child Domain with PowerShell
- Create AD Child Domain with PowerShell
- Use PowerShell and DSAMAIN.exe to Mount a Backup of NTDS.dit
- RODCs Ahoy!
- Create AD Forest with PowerShell
- Use PowerShell and Repadmin to Check for Updates to High Privileged Groups
- Schedule a System State Backup with PowerShell
- NEW & IMPROVED FORMULA: Build an AD DS Forest in Azure
- Scripting Tips and Tricks: 'Jagged' Arrays
- Use PowerShell to Start Domain Controller Garbage Collection
- Three Steps to PowerShell Module Success
- Execution Policy and Group Policy
2014 50
- Find, Disable and Move 'Stale' User or Computer Accounts
- Strict Replication Consistency On New Domain Controllers
- Use PowerShell to Check and Configure DFSR Content Freshness
- Scripting Tips and Tricks: Param()
- Use PowerShell to Check for High Privilege Group Membership
- One-Liner: Change Account Lockout Threshold
- Verify Active Directory Group Naming Standards
- One-Liner: Active Directory Protected Objects
- Scripting Tips and Tricks: CmdletBinding()
- Help, I Need Connectivity!
- Introducing Scriptify!
- One-Liner: My Take On Finding Stale User and Computer Accounts
- One-Liner: Delegate Group Policy Management
- Scripting Tips and Tricks: Write-Verbose
- Managing Azure VMs with PS Remoting
- Scripting Tips and Tricks: Message Boxes
- Scripting Tips and Tricks: Strict Mode
- Scripting Tips and Tricks: Requires
- NEW & IMPROVED FORMULA: PowerShell and Chuck Norris Wallpaper
- Creating a Windows Server 2012 DHCP Failover Relationship
- Authentication Policy Silos
- Scripting Tips and Tricks: Script Development with Splatting
- Security Focus: Find User Accounts Configured for DES Encryption
- One-Liner: PS Remoting - Connected Clients
- PS Remoting Considerations
- Useful Windows Feature Commands
- One-Liner: Windows Server 2012 DHCP - Failover Mode Switching
- One-Liner: Get Windows Server 2003 Server Count
- Active Directory Replication Cmdlets vs. Repadmin
- Active Directory Replication Cmdlets - Site Creation
- One-Liner: Find Manually Created Replication Connection Objects
- Remote Group Policy Update - 'Under the Bonnet'
- One-Liner: Targeted Remote Group Policy Updates
- Using PowerShell to create a BPA Problem Report
- Tracing the Source of Account Lockouts
- Active Directory Bulk User Modification
- One-Liner: Collect AD LDS Lingering Object 1946 Events
- PowerShell ISE Script Browser Add-On
- One-Liner: Specific GPO and DC Information from a Forest
- 'Retire' Active Directory Non-LVR Group Members
- Comprehensive GPO Backup Script
- Prepopulate Passwords to RODCs with PowerShell
- Prompt Delivery
- To and Fro, Back and Forward Links
- Logging, On
- One-Liner: Active Directory Schema Version
- PowerShell, DHCP and Star Wars
- PowerShell and Executable Output (with Boats)
- One-Liner: Get a List of AD Users Password Expiry Dates
- Using Get-Acl to Identify Administrator Permissions