add-content to variable does not work.


add-content variable not work.
here's get
 
c:...\windowspowershell> set-content variable:xyzzy 'newtext'
c:...\windowspowershell> $xyzzy
newtext
c:...\windowspowershell> add-content variable:xyzzy 'additionaltext'
add-content : cannot call method. content seek method not
supported provider.
c:...\windowspowershell> $xyzzy
newtext
 
should able use add-content modify value of variable?
 

  $xyzzy += 'addtext'  


if found post helpful, please give "helpful" vote. if answered question, remember mark "answer".

rich prescott | mcitp, mcts, mcp

blog | twitter: @arposh | powershell client system administration tool


Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Edit Group Policy

Hyper-V VM not reaching OS 'Logon' screen

DNS question...