Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

remove the prefix string in powershell

$
0
0

I am getting the users connected to Webservers count with this query

$wf = Get-Counter -ComputerName "WebServerName" -Counter "\web service(_total)\Current Connections"

I am getting the out put as..

webservername\\web service(_total)\current connections : 5

But i want to get out put only Webservername : 5

Please help us ..

Regards,

Phani


Viewing all articles
Browse latest Browse all 8428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>