Musings on the splendour of PowerShell Browse by Tags - PoSh Chap - Site Home - TechNet Blogs

PoSh Chap

Musings on the splendour of PowerShell

Browse by Tags

Related Posts
  • Blog Post: PowerShell and _MSDCS Recovery

    Oh, no! Someone's blatted the _MSDCS zone from DNS! The _MSDCS zone hosts the domain controller locator DNS resource records for all the domain controllers in an Active Directory forest - it's a key part of how clients find domain controller services. This unfortunate deletion has been replicated...
  • Blog Post: One-Liner: Domain Controller Patch Levels

    Before performing work against your Active Directoy, it's prudent to complete a few checks, e.g. is replication healthy, are my FSMOs up, do I have up-to-date, verified backups etc? Here's a one-liner to give you a view of whether your patch levels are consistent: Get-ADDomainController...
  • Blog Post: Use PowerShell to Start Domain Controller Garbage Collection

    Garbage Collection runs every 12 hours on a domain controller. So, what is it, and, more importantly, how can we kick it off with PowerShell? What is it? Garbage collection identifies tombstones and recycled-objects that have been kept for at least the tombstone lifetime and then removes them. On...
  • Blog Post: Scripting Tips and Tricks: Param()

    Param() - the next instalment in the exciting Scripting Tips and Tricks series! I'm a tidy person: tidy desk, tidy mind, and all that jazz. I believe in being as thorough and proper in my scripts and functions as possible. To that end, I delight in using PowerShell features such as: #Requires...
  • Blog Post: One-Liner: Change Account Lockout Threshold

    What's the optimal Account Lockout Threshold value? A question that continues to generate a lot of debate! If an account lockout threshold is set, the latest guidance, issued with Windows Server 2012 R2, suggests a value of 10 . Visit this post for more information: Configuring Account Lockout...
  • Blog Post: Managing Azure VMs with PS Remoting

    I'm a BIG fan of Microsoft Azure. I'm also a BIG fan of dystopian novels. What have the two got in common? Nothing, AFAIK, although I'm sure some tenuous links could be found by the hard-of-sleeping... Blimey, I'm off topic already... so, Microsoft Azure... I'm an even BIGGER fan...
  • Blog Post: Tracing the Source of Account Lockouts

    As an Active Directory administrator, you have no doubt experienced re-occurring account lockouts. Back in the day, you would need the investigative powers of a Mr Sherlock Holmes to get to the bottom of these little mysteries! Then, the Account Lockout Tools made the process somewhat easier. Now, though...
  • Blog Post: One-Liner: Specific GPO and DC Information from a Forest

    Man, I love PowerShell one-liners. The efficiency, the elegance, the challenge! Here's one to give me a list of the domain names in a forest, the number of group policies per domain and the number of domain controllers per domain. ( Get-ADForest ) . Domains | ForEach-Object { "Domain...
  • Blog Post: Prepopulate Passwords to RODCs with PowerShell

    Hello! The sun is shining, spring has sprung and it's nearly the weekend... life is sweet! Today, I'm going to talk about using the AD Replication cmdlets, introduced with Windows Server 2012, to prepopulate passwords to your RODCs. No more repadmin, no more DSA.msc... just pure, unadulterated...
  • Blog Post: PowerShell and Executable Output (with Boats)

    What floats your boat? For me, it’s usually a body of water, but I also like being asked stuff about PowerShell. Here’s one such question: “How come in a forest with two domains each with two (2008R2) domain controllers I get the following results with PowerShell? ( nltest...