<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: PowerShell Scripting with WMI Part 2</title>
	<atom:link href="http://www.powershellpro.com/powershell-tutorial-introduction/powershell-wmi-methods/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.powershellpro.com</link>
	<description>Sharing the Experience</description>
	<lastBuildDate>Fri, 03 Feb 2012 08:09:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Allan</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-wmi-methods/comment-page-1/#comment-959</link>
		<dc:creator>Allan</dc:creator>
		<pubDate>Thu, 29 Dec 2011 15:40:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/wmi-part2/#comment-959</guid>
		<description>Hi
Any way you can use a variable for the 
$DNSServers = “10.124.66.22&quot;,”10.4.4.10&quot;

section, i&#039;e. Ask the user which location they are in and set the default DNS servers for that location?</description>
		<content:encoded><![CDATA[<p>Hi<br />
Any way you can use a variable for the<br />
$DNSServers = “10.124.66.22&#8243;,”10.4.4.10&#8243;</p>
<p>section, i&#8217;e. Ask the user which location they are in and set the default DNS servers for that location?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-wmi-methods/comment-page-1/#comment-769</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Wed, 07 Dec 2011 21:46:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/wmi-part2/#comment-769</guid>
		<description>This script worked great on both a WinXP and Win7 box, except that it did not populate the WINS IP setting. What might be the cause for this?
I am testing this out on my workstations before unleashing on all of our network servers.
Also, is there away to get an output file that notes if the DNS/WINS was changed or not?</description>
		<content:encoded><![CDATA[<p>This script worked great on both a WinXP and Win7 box, except that it did not populate the WINS IP setting. What might be the cause for this?<br />
I am testing this out on my workstations before unleashing on all of our network servers.<br />
Also, is there away to get an output file that notes if the DNS/WINS was changed or not?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-wmi-methods/comment-page-1/#comment-727</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Thu, 17 Nov 2011 19:45:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/wmi-part2/#comment-727</guid>
		<description>This is pretty straight forward. However, I am having problems making changes on windows 2008 boxes. Can anyone help</description>
		<content:encoded><![CDATA[<p>This is pretty straight forward. However, I am having problems making changes on windows 2008 boxes. Can anyone help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dillon</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-wmi-methods/comment-page-1/#comment-726</link>
		<dc:creator>Dillon</dc:creator>
		<pubDate>Thu, 17 Nov 2011 17:13:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/wmi-part2/#comment-726</guid>
		<description>Awesome Tutorial!  Plain and simple, just the way it should be.</description>
		<content:encoded><![CDATA[<p>Awesome Tutorial!  Plain and simple, just the way it should be.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-wmi-methods/comment-page-1/#comment-696</link>
		<dc:creator>Joshua</dc:creator>
		<pubDate>Wed, 28 Sep 2011 14:55:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/wmi-part2/#comment-696</guid>
		<description>How do I run this powershell script to change dns and wins on remote systems?  Like all of my servers?</description>
		<content:encoded><![CDATA[<p>How do I run this powershell script to change dns and wins on remote systems?  Like all of my servers?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: steino</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-wmi-methods/comment-page-1/#comment-693</link>
		<dc:creator>steino</dc:creator>
		<pubDate>Mon, 19 Sep 2011 06:42:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/wmi-part2/#comment-693</guid>
		<description>Hi all,

is it possible to change mask and gateway for multiple servers?</description>
		<content:encoded><![CDATA[<p>Hi all,</p>
<p>is it possible to change mask and gateway for multiple servers?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arnold</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-wmi-methods/comment-page-1/#comment-678</link>
		<dc:creator>arnold</dc:creator>
		<pubDate>Mon, 29 Aug 2011 16:56:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/wmi-part2/#comment-678</guid>
		<description>hello sir,

pls,how i can change my ISP? from my provider?

my best regard
arnold</description>
		<content:encoded><![CDATA[<p>hello sir,</p>
<p>pls,how i can change my ISP? from my provider?</p>
<p>my best regard<br />
arnold</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rudy de vries</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-wmi-methods/comment-page-1/#comment-669</link>
		<dc:creator>rudy de vries</dc:creator>
		<pubDate>Wed, 17 Aug 2011 09:44:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/wmi-part2/#comment-669</guid>
		<description>you should use $true instead of &quot;true&quot;
because &quot;false&quot; equals also to boolean true ($false  equals to boolean false)</description>
		<content:encoded><![CDATA[<p>you should use $true instead of &#8220;true&#8221;<br />
because &#8220;false&#8221; equals also to boolean true ($false  equals to boolean false)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Haji A</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-wmi-methods/comment-page-1/#comment-655</link>
		<dc:creator>Haji A</dc:creator>
		<pubDate>Fri, 22 Jul 2011 11:09:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/wmi-part2/#comment-655</guid>
		<description>I have two questions:

1) Foreach($NIC in $NICs) { } is always used in the article. What if I want to use a method on a particular object, what do I do then?

2) In the remote shut-down example, I am getting  an &quot;UnauthorizedAccessException&quot;, how I can I fix that? =)

Regards</description>
		<content:encoded><![CDATA[<p>I have two questions:</p>
<p>1) Foreach($NIC in $NICs) { } is always used in the article. What if I want to use a method on a particular object, what do I do then?</p>
<p>2) In the remote shut-down example, I am getting  an &#8220;UnauthorizedAccessException&#8221;, how I can I fix that? =)</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave L.</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-wmi-methods/comment-page-1/#comment-614</link>
		<dc:creator>Dave L.</dc:creator>
		<pubDate>Fri, 13 May 2011 15:15:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/wmi-part2/#comment-614</guid>
		<description>Hi, I have been looking for something this simple and it is amazing.  I have 2 questions.  

1) How do I run this on another computer using the invoke-command, or do I even need to use that.
2) On the script, do I even need to have the last 3 lines of code really - $NIC.SetDNSServerSearchOrder($DNSServers)
 $NIC.SetDynamicDNSRegistration(”TRUE”)
 $NIC.SetWINSServer(”172.18.1.52?, “172.18.1.169?)

I am brand new to all of this.  

I do have something to add a little, it is a reboot/logoff/restart/shutdown for our other admins here to use at the office.

# pegasus =  computer name
# sunnymuffin = command
# Commands:
#          0 – Log Off
#          4 – Forced Log Off
#          1 – Shutdown
#          5 – Forced Shutdown
#          2 – Reboot
#          6 – Forced Reboot
#          8 – Power Off
#          12 – Forced Power Off
#
# Show only the following - 4, 5, 6 - force logoff of user, force shutdown, 6 force reboot

$pegasus = read-host &quot;Type the computername or ip address&quot;

$sunnymuffin = read-host &quot;Choose the following number: 
4 - logoff user  
5 - shutdown   
6 - reboot&quot;

(gwmi win32_operatingsystem -ComputerName $pegasus).Win32Shutdown($sunnymuffin) 


thanks for putting this up!</description>
		<content:encoded><![CDATA[<p>Hi, I have been looking for something this simple and it is amazing.  I have 2 questions.  </p>
<p>1) How do I run this on another computer using the invoke-command, or do I even need to use that.<br />
2) On the script, do I even need to have the last 3 lines of code really &#8211; $NIC.SetDNSServerSearchOrder($DNSServers)<br />
 $NIC.SetDynamicDNSRegistration(”TRUE”)<br />
 $NIC.SetWINSServer(”172.18.1.52?, “172.18.1.169?)</p>
<p>I am brand new to all of this.  </p>
<p>I do have something to add a little, it is a reboot/logoff/restart/shutdown for our other admins here to use at the office.</p>
<p># pegasus =  computer name<br />
# sunnymuffin = command<br />
# Commands:<br />
#          0 – Log Off<br />
#          4 – Forced Log Off<br />
#          1 – Shutdown<br />
#          5 – Forced Shutdown<br />
#          2 – Reboot<br />
#          6 – Forced Reboot<br />
#          8 – Power Off<br />
#          12 – Forced Power Off<br />
#<br />
# Show only the following &#8211; 4, 5, 6 &#8211; force logoff of user, force shutdown, 6 force reboot</p>
<p>$pegasus = read-host &#8220;Type the computername or ip address&#8221;</p>
<p>$sunnymuffin = read-host &#8220;Choose the following number:<br />
4 &#8211; logoff user<br />
5 &#8211; shutdown<br />
6 &#8211; reboot&#8221;</p>
<p>(gwmi win32_operatingsystem -ComputerName $pegasus).Win32Shutdown($sunnymuffin) </p>
<p>thanks for putting this up!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

