 




<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Network Administrator Knowledgebase &#187; message</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/network-administrator/tag/message/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/network-administrator</link>
	<description></description>
	<lastBuildDate>Thu, 28 Feb 2013 15:55:07 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Send a Message to All Users in an OU</title>
		<link>http://itknowledgeexchange.techtarget.com/network-administrator/send-a-message-to-all-users-in-an-ou/</link>
		<comments>http://itknowledgeexchange.techtarget.com/network-administrator/send-a-message-to-all-users-in-an-ou/#comments</comments>
		<pubDate>Fri, 27 Jun 2008 22:56:30 +0000</pubDate>
		<dc:creator>Michael Khanin</dc:creator>
				<category><![CDATA[Command line]]></category>
		<category><![CDATA[message]]></category>
		<category><![CDATA[Microsoft Windows]]></category>
		<category><![CDATA[send]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/network-administrator/send-a-message-to-all-users-in-an-ou/</guid>
		<description><![CDATA[By using the DSQUERY command and &#8220;Net Send&#8221; we can send a message to all users in a given OU. It&#8217;s really simple, create a script, name it NetSendOU.bat and use the following syntax: NetSendOU OU Message Where OU is the organizational unit, like &#8220;OU=Users,DC=AdminInfo,DC=Ca&#8221;, and Message is the message text, like &#8220;Hello from AdminInfo.ca&#8221;. [...]]]></description>
				<content:encoded><![CDATA[<p>By using the <strong>DSQUERY</strong> command and &#8220;<strong>Net Send</strong>&#8221; we can send a message to all users in a given OU.<br />
It&#8217;s really simple, create a script, name it NetSendOU.bat and use the following syntax:</p>
<p><em>NetSendOU OU Message</em></p>
<p>Where OU is the organizational unit, like &#8220;OU=Users,DC=AdminInfo,DC=Ca&#8221;, and Message is the message text, like &#8220;Hello from AdminInfo.ca&#8221;.</p>
<p>NetSendOU.bat contains:<br />
<em>@echo off<br />
if {%2}=={} @echo Syntax: NetSendOU OU &#8220;Message&#8221;&amp;exit /b 1<br />
setlocal<br />
set query=dsquery user %1 -o samid<br />
set message=%2<br />
for /f %%u in (&#8216;%query%&#8217;) do (net send &#8220;%%u&#8221; %message%)<br />
endlocal<br />
exit /b 0</em></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/network-administrator/send-a-message-to-all-users-in-an-ou/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
