I need to pull out all the Software update point in the Infra. Importing the module for sccm and using “Get-CMSoftwareUpdatePoint”, gets me to the point where I get whats required. However the output is as below:-
I can pipe it to use “NetworkOSPath”, but the output is \servername.domain.cc. I want the output without \ so that I can query it directly to the server.
To what cmdlet are you planning to pipe it, If there is a cmdlet which accepts pipeline input for this NetworkOSPath by value/type it will work without any modifications. However for you query, you can do it in may ways, below are few.
Look for the Third Edition of the book, it’s newer. http://donjones.com/powershell has a link. The 4N00bs book in particular might be helpful, as it’s extremely concise (short read) and covers the major under-the-hood gotchas, like this, that trip people up the most.
And what you’re likely looking for is Select-Object. What your command is producing isn’t textual output; it’s an object, which has properties. Select-Object lets you specify which ones you want included in the output.