<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Updating Storage Areas with &amp;quot;Get-PWStorageAreaList&amp;quot; and &amp;quot;Update-PWStorage&amp;quot;</title><link>https://communities.bentley.com/products/projectwise/f/projectwise-powershell-extensions-forum/172602/updating-storage-areas-with-get-pwstoragearealist-and-update-pwstorage</link><description>Hello: 
 I am trying to update my Storage areas &amp;quot;Host&amp;quot; 
 The cmdlet &amp;quot;Update-PWStorage&amp;quot; instructs to read in the information about the Storage area: 
 age 
 PS C:\PS&amp;gt; $storage = Get-PWStorageAreaList -Storageareanames &amp;quot;Storage Area&amp;quot; 
 PS C:\PS&amp;gt; $storage</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Updating Storage Areas with "Get-PWStorageAreaList" and "Update-PWStorage"</title><link>https://communities.bentley.com/thread/497544?ContentTypeID=1</link><pubDate>Wed, 19 Dec 2018 19:33:25 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:3066004b-8c34-41b4-9c3d-9316112f13ba</guid><dc:creator>Kevin van Haaren</dc:creator><description>&lt;p&gt;Bentley has the properties in the object returned as read-only. You can tell because:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="powershell"&gt;&amp;gt; $storage | get-member


   TypeName: Bentley.ProjectWise.PowerShell.Common.Storage

Name        MemberType Definition
----        ---------- ----------
Equals      Method     bool Equals(System.Object obj)
GetHashCode Method     int GetHashCode()
GetType     Method     type GetType()
ToString    Method     string ToString()
Description Property   string Description {get;}
Host        Property   string Host {get;}
ID          Property   int ID {get;}
Name        Property   string Name {get;}
Path        Property   string Path {get;}
Protocol    Property   string Protocol {get;}
StorageID   Property   int StorageID {get;}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;all the properties are listed as {get;} if you could change them they would be listed as {get;set;}&lt;/p&gt;
&lt;p&gt;Not sure it&amp;#39;ll work but you can try making your own object with the same properties and feed that back into Update-PWStorage:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="powershell"&gt;$new_storage = [pscustomobject]@{
    ID=$storage.ID
    Name=$storage.Name
    Description=$storage.Description
    Host=$storage.Host
    Path=$storage.Path
    Protocol=$storage.Protocol
    StorageID=$storage.StorageID
}

# change values for update
$new_storage.host = &amp;#39;new-value&amp;#39;

&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>