netnerds.net
Home
Book
Links icon
GitHub Org GitHub Star Profile MVP Profile Twitch
About
Subscribe
  • Active Directory: Does Specified User Exist?

    Jul 26, 2007 · 1 min read  ·
    Share on:

    This code has been in my drafts box for 2 years. I figured I'd just go ahead and publish it, though I'm unsure of the context now. $dom = [System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain() $root = $dom.GetDirectoryEntry() $search = [System.DirectoryServices.DirectorySearcher]$root $search.Filter = …


    Read More
  • PowerShell 1.0: Find the Fully Qualified Domain Name of Current Active Directory Domain

    Jul 26, 2007 · 2 min read  ·
    Share on:

    So I'm making the move to PowerShell. It's painful learning such alien (to me) concepts but books like Lee Holmes' PowerShell: The Definitive Guide help a ton. I was fortunate enough to be the editor for Chapters 1-5 and got a sneak preview. It's a fantastic book and can't wait to receive the title, complete with …


    Read More
  • Powershell: Working with Passwords

    Jul 26, 2007 · 2 min read  ·
    Share on:

    When creating a new Active Directory user from the command line in PowerShell, you will likely find yourself using Read-Hosts's asSecureString switch when entering the password. $password = Read-Host "Enter password" -AsSecureString Next, you'll probably look around the Internets for a few hours or so trying …


    Read More
  • Fix Slow External DNS Resolution in Microsoft/Active Directory DNS Server

    Apr 4, 2007 · 2 min read  ·
    Share on:

    Aw yaille! I just wrote up a whole explanatory blog post then lost it so this one will likely be brief... or not. Recently, we found that one of our DNS servers was resolving external hostnames unacceptably slow -- about 5 seconds, give or take. The resolution was so slow, in fact, that all of the clients hopped on to …


    Read More
  • Active Directory: E-mail Notification for Newly Added Users and Computers

    Feb 12, 2007 · 6 min read  ·
    Share on:

    Recently, someone asked if there was a way to be notified when servers have been added to an Active Directory domain. I looked around the Internet and it seems there's not a direct way to do this without some large software package. So in lieu of having an instant notification, I created a script that tallies up newly …


    Read More
  • VBScript: Enumerate All SQL Servers on a Domain

    Jan 9, 2007 · 3 min read  ·
    Share on:

    So if you have SQL Server installed locally, you're lucky enough to have access to SQLDeeMO. You can then easily enumerate SQL Servers with the following code. Note: If you do decide to use VBScript and SQLDeeMO, you will need to remove the "ee" in the script below. I didn't want to put in the actual object …


    Read More
  • VBScript: Find All Exchange Servers in Active Directory

    Jan 9, 2007 · 2 min read  ·
    Share on:

    My friend Sharfa and I were exchanging some of our favorite code snippets and he showed me one for enumerating Exchange Servers in Active Directory. I dug the code but wanted to try to see if I could use my Recordset/ADsDSOObject skrills to shorten the code. The outcome isn't any shorter but it does get the version, so …


    Read More
  • VBScript: Use an LDAP Query to Find All Windows Servers on a Domain

    Jan 9, 2007 · 1 min read  ·
    Share on:

    Damn, the ADsDSOObject rocks! This script, which weighs in at less than 20 lines, finds all machines running any form of Windows Server on a given domain. Note that this script isn't useful in finding domain controllers, but rather any machine running Windows Server. …


    Read More
  • VBScript: Kerberos, Delegation, IIS and User Authentication

    Dec 13, 2006 · 2 min read  ·
    Share on:

    Recently, I wanted to write a web-based front end to AD User Management for our help desk. The way that I set it up apparently broke some Kerberos delegation rules and even though Microsoft wrote a step-by-step guide on how to get IIS and Kerberos delegation going, the solution didn't work for me. If I turned off …


    Read More
  • AD: Active Directory Users and Computers Slow to Initialize

    Dec 1, 2006 · 3 min read  ·
    Share on:

    Recently, two of the network administrators at my firm ran into an issue with with the Active Directory Users and Computers MMC snap-in. ADUC often loaded slowly. Sometimes rebooting would fix the issue, sometimes it wouldn't. I never had an issue but I didn't use ADUC as often on my workstation (I use it primarily on …


    Read More
    • ««
    • «
    • 1
    • 2
    • 3
    • 4
    • »
    • »»

Chrissy LeMaire

SQL & PowerShell MVP. GitHub Star. Creator of dbatools. Need to oil my knees.

preorder

dbatools

dbatools is an awesome PowerShell module that helps you migrate entire instances with a single command, plus a whole lot more.

available from dbatools.io and github

dbachecks

dbachecks validates SQL Server environments using crowdsourced DBA checklists and outputs to Power BI and is available on github.com 📊

recent posts

  • Import-DbaCsv Design Considerations
  • Rebuilding a Proxmox cluster node
  • Default PowerShell Paths (PSModulePath) on GitHub Runners
  • Add existing directory storage to proxmox without wiping it first
  • InspecTools on Offline Windows
  • Chef inspec: Unable to detect your platform
  • Migrating my WordPress sites to GitHub Pages
  • URL Shortening/Redirects using GitHub Pages and Jekyll

categories

sql-server 116 powershell 107 general 63 security 58 windows 47 sharepoint 41 active-directory 37 linux 31 networking 30 vbscript 30 apple 22 virtualization 22 iis 19 apache 7 exchange 7
All Categories
active-directory37 apache7 apple22 asp-net2 bi4 db24 exchange7 general63 github3 iis19 linux31 livestreaming4 lync2 networking30 oracle1 powershell107 security58 sharepoint41 sql-server116 vbscript30 virtualization22 windows47 wpf7
[A~Z][0~9]
 

Copyright 2003 -  Chrissy LeMaire. All Rights Reserved