Browse Forum Posts by Tags

Showing related tags and posts for the Forums application. See all tags in the site
  • xml parse from multiple columns

    Hi, I did not find a way how to get data from multiple column in one xml file. $x.XMLOUT.Check[0].Detail.UpdateData | where {$_.IsInstalled.startsWith("false")} | foreach {"Title =" + $_.Title + "URL= " + $_.References.DownloadURL } its wrks, but I need somehow convince...
    Posted to Ask Don and Jeff (Forum) by Martin Davidov on 08-02-2012
    Filed under: BitsTransfer, columns, powershell multi variables arrary, XML, SCCM
  • How To Stop Windows Services Using Result From XML File

    Hi, I'm trying to parse xml files in a directory with the following script. For example, in the xml i have data that looks like the following called service.xml displayName="blahblahblah" get-childitem -Path c:\service.xml | foreach { [xml]$xml=get-content $_; if ($xml.config.service.displayname...
    Posted to PowerShell General (Forum) by ds1982 on 09-05-2012
    Filed under: XML, Windows Services, Stop/Start
  • problem showing data in an xml file

    XML format: <transcript> <messages> <message> <to></to> <from></from> <body></body> <date></date> </message> </messages> </transcript> $chat = [xml] (get-content "xmlfile.xml") Foreach ($msg in $chat) {write...
    Posted to PowerShell General (Forum) by coder.work on 06-20-2012
    Filed under: XML
  • Get-Content from file, in Chucks of 3 out to xml.

    hello I have a problem I have a file that generates a long list of data, every 3 lines is 1 chunk og data e.g 1..3 line = data chunk 1 4..6 line = data chunk 2 ... .. . 51..54 line data chunk x ect….. I run a do until but I cant get it to work proberly $XmpPrep = @( Get-Content C:\pstmp\RAW\xmlprep...
    Posted to PowerShell General (Forum) by Emort on 09-16-2011
    Filed under: XML, Get-Content, do until
  • Formating XML Output

    Hello together, I have an XML-File with a content like this: <?xml version="1.0" ?> <objects> <cn>Share1</cn> <ownership> <role type=" OWNER " sAMAccountName=" Userid_Owner1 " /> <role type=" DELEGATE " sAMAccountName="...
    Posted to PowerShell General (Forum) by t1na on 03-04-2013
    Filed under: XML
  • Read XML File

    The code below runs fine on PowerShell versions 2.0 and 3.0 when using Data.xml Example 1. However, if I introduce a second category as seen in Data.xml Example 2, the code continues to work in PowerShell 3.0, but fails to produce any output or an error in PowerShell 2.0. Why might this be? $xml = [xml...
    Posted to PowerShell General (Forum) by fitzroy on 03-17-2013
    Filed under: XML
  • Reading XML file when the XML elements have not all the same information

    Hi All! This is may very first post here... :-) I'm facing issues when reading an XML file when the XML elements have not all the same information. The XML file is not constructed by me, I cannot modify its structure. I guess that when reading the XML file into an object, the object is created on...
    Posted to PowerShell General (Forum) by jorgec on 03-28-2013
    Filed under: Powershell, XML, File
  • Re: XML, Powershell and Arrays

    Hello Tobias, Thank you very much, that is exactly what I needed, from here I should be able to extract the information I need on a per layer basis. Thank you for your help, it is greatly appreciated Robert Burke
    Posted to PowerShell for Windows (Forum) by Robert Burke on 02-21-2011
    Filed under: Variable, windows, XML, array
  • Re: Storing PowerShell Variables in XML File and Then Reading Back In

    Can we expand on this thread and get a tool set going. I have several tasks that could leverage this capability but I have had issues with cdata sections and altering attributes. Consider Web.config thumbprint values
    Posted to PowerShell for Windows (Forum) by Randy on 09-10-2011
    Filed under: powershell, XML, Tools
  • Convert-TextToXml

    Serge van den Oever has written a PowerShell script that converts an input text file into an output xml file. You can read the script at the following link: http://weblogs.asp.net/soever/default.aspx
    Posted to Using Scripts (Forum) by ps2 on 12-09-2008
    Filed under: PowerShell, XML
Page 2 of 3 (24 items) < Previous 1 2 3 Next >
Copyright 2012 PowerShell.com. All rights reserved.