Powershell DSquery variable

Can anyone help me convert the following into a variable on the user domain part? I need to be able to launch this powershell command from any child domain or even the root domain. So basically the variable would take into account the current domain and fill in the blanks.

That works for the Domain part, thanks. How about the OU part, how can I turn that into a variable as well? As you'll notice the "cars-users" OU matches the "DC=cars" part if that makes sense? I need that first OU container to be a variable.

I think so if I understand your steps. To make it clearer I need to be able to run this on any given child domain. In this case the domain is called cars, so the first OU is called "cars-users" .With your first modification I'm able to get the domain "cars" via the variable, I now need to add a variable for the first you "cars-users" as the other OU such as "accounts" is same throughout the other child domains.

To conclude, there might be a domain called "trucks" and its first OU would be "trucks-users".. The script would need to work in this domain as well.

Microsoft Windows Server Update Service (WSUS) is free for everyone, but it lacks of some desirable features like send an e-mail to the administrator with the status of all computers on the WSUS server. This article is based on my PowerShell script …

The viewer will learn the basics of jQuery, including how to invoke it on a web page.
Reference your jQuery libraries: (CODE)
Include your new external js/jQuery file: (CODE)
Write your first lines of code to setup your site for jQuery.: (CODE)

The viewer will learn how to create a basic form using some HTML5 and PHP for later processing.
Set up your basic HTML file. Open your form tag and set the method and action attributes.:
(CODE)
Set up your first few inputs one for the name and …