﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Administering / SQL Server 2005  / Script for Changing Port Number of SQL Server 2005 / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 19 Jun 2013 08:38:43 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Script for Changing Port Number of SQL Server 2005</title><link>http://www.sqlservercentral.com/Forums/Topic585965-146-1.aspx</link><description>look at this.... although this only reads, I'm sure there is a registry method to write to the registry as well.  I would take a backup of the registry before I'd go poking my fingers around in there as well as make sure I'd do this in a sandbox area too.http://www.databasejournal.com/features/mssql/article.php/3764516[EDIT] upon further digging...here is a script fragment...$protocolproperty=Get-WmiObject -namespace root\Microsoft\SqlServer\ComputerManagement -class ClientNetworkProtocolProperty `-filter "PropertyName='Default Port'"$protocolproperty.SetNumericalValue(7001)this came from the same site I mentioned above but different article...http://www.databasejournal.com/features/mssql/article.php/3709441  </description><pubDate>Wed, 15 Oct 2008 12:16:51 GMT</pubDate><dc:creator>Shawn Wilson</dc:creator></item><item><title>Script for Changing Port Number of SQL Server 2005</title><link>http://www.sqlservercentral.com/Forums/Topic585965-146-1.aspx</link><description>What i want to do is that i want a script to change the port number in sql server services in configuration manager. Though i can change manually by going directly to configuration manager but i need a script for some purpose. If anybody know, please fwd it to me.</description><pubDate>Tue, 14 Oct 2008 23:45:24 GMT</pubDate><dc:creator>vikas_chawla</dc:creator></item></channel></rss>