Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 8583

Not able to fetch value in properties file

$
0
0

Hi All,

 

i have a file as 

 

wfc.@hrms.protocol@=http

@hrms.db.username@=tkcsowner

@wba.rmiregistry.port@=WBA_RMI_REGISTRY_PORT

@WFC01.WbaRmiRegistryPort@=61113

WFC01.@hrms.virtual.admin.directory@=wfc_admin/scripts

@wfc.JBossSSLConnectorPort@=8080

wfc.@hrms.nt.password@=doEkb3cb0WH1BX73z5aL2bfEH8C

wfc.@hrms.install@=false

wfc.@site.wtbgp.enabled@=true

 

 

In Here i am converting this to name value file using ConvertFrom-StringData. later when i am putting the putput in variable and trying to fetchc value by passing name, i am not able to fetch values. This is on windows server

But if same i am doing on my local system i am able to fetch values by passing name.

Please help

 

steps followed by me :

$abc = more .\config_boms.properties | convertFrom-Stringdata    (config_boms.properties is file name)

$abc.'wfc.@hrms.protocol@' 

<Null>

 

 

 

 


Viewing all articles
Browse latest Browse all 8583

Trending Articles