Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Hot answers tagged

11

Alright, I found a solution that does work for me. The biggest problem with the solution is that the XML plugin is ... not quite unstable, but either poorly documented and buggy or poorly and incorrectly documented. TLDR Bash command line: gzcat -d file.xml.gz | tr -d "\n\r" | xmllint --format - | logstash -f logstash-csv.conf Logstash config: input { ...


11

Yes, for both Linux and Windows you can build desired state config files that can: Enable or disable server roles and features Manage registry settings Manage files and directories Start, stop, and manage processes and services Manage groups and user accounts Deploy new software Manage environment variables Run Windows PowerShell scripts Fix a configuration ...


7

If there are any core-to-core communications then you'll find that generally a quad-core will be faster, sometimes significantly so, than two dual-cores. The reason is that the bandwidth and/or latency between cores on the same die can often be very much faster than any external connections. That said you don't mention specific processors so you could be ...


7

First check installed extensions in php with following command php -m After enter check Do you find follwing xml list? xml xmlreader xmlwriter if not then add following line apt-get install php5.6-xml Hope this will help you.


7

Use Powershell Get-EventLog -LogName "System" | ?{$_.Message -like "*YourSearchString*"} | Out-GridView


6

You can do this by using 'tree' command. tree -X <dir>


6

You can do it all in PowerShell Get-WindowsFeature | ? { $_.Installed } | Export-Clixml .\installed.xml Copy the xml where is needs to go to, somewhere the new server can access it. Import-Clixml <path to xml>\installed.xml | Install-WindowsFeature


5

Make sure your string is valid XML (ie add </Event> to the end of what you've posted above, and then cast that string as XML: $xml = [xml]$yourStringHere Then you can pull out the TargetLogonId like this: $xml.Event.SelectSingleNode("//*[@Name='TargetLogonId']") | select -ExpandProperty '#text' Thanks to Shay Levy and this post: http://social....


5

In order to get the libraries and header files you need, you should follow this line in the output: Install 'expat-devel' (or 'libexpat1-dev') package with your OS package manager. Just expat won't get you the libraries and header files that you need to link against.


4

Two approaches that I use are (a) to canonicalize both XML files and then compare their serializations, and (b) to use the XPath 2.0 deep-equal() function. Both approaches are OK for telling you whether the files are the same, but not very good at telling you where they differ. A commercial tool that specializes in this problem is DeltaXML. If you have ...


3

This simple XSLT: <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0"> <xsl:output omit-xml-declaration="no" indent="yes"/> <xsl:strip-space elements="*"/> <!-- TEMPLATE #1 --> <xsl:template match="node()|@...


3

I know this is old, bur someone addressed your question as if you were trying this from a windows box. In Linux , (NOT WINDOWS...everyone) you can do this without an EXE tool. You need to use Net::ILO perl module. This will enable you to write a script that logs in to your ILO servers and interact with them. download from http://search.cpan.org/~nlewis/Net-...


3

On further investigation I came across an answer to this on Stack Overflow: https://stackoverflow.com/questions/8671194/using-xpath-starts-with-or-contains-functions-to-search-windows-event-logs So it looks like it's not possible to do wildcard searches in the event log.


3

You can always use a powershell script and pass the XML through powershell's where function (supports -contains -like -match): nv.ps1 $Query = @" <QueryList> <Query Id="0" Path="System"> <Select Path="System"> *[System[(EventID=20001)]] </Select> </Query> </QueryList> "@ $events = Get-...


3

telnet nc (netcat) wget --post-file perl python ruby c java c++ etc I'd probaly look at nc or wget Also you could try googling "send xml to web service" which will get you these to as the first two hits: https://stackoverflow.com/questions/4454918/how-to-send-xml-messages-to-web-services https://stackoverflow.com/questions/4454918/how-to-send-xml-...


3

The URL has nothing to do with TCP so you have to have something listening on TCP port 6060 that will correctly interpret the data it is sent. You could use something like nc to send the data The nc (or netcat) utility is used for just about anything under the sun involving TCP or UDP. It can open TCP connections, send UDP packets, listen on arbitrary ...


3

Out-File is writing a Unicode file by default. Use -Encoding to fix it: $temp = Get-Content .\bigxmlfile.xml $temp.replace("STRING1","STRING2") | out-file .\bigxmlfile.xml -force -encoding ascii Alternatively, use Set-Content: $temp = Get-Content .\bigxmlfile.xml $temp.replace("STRING1","STRING2") | set-content .\bigxmlfile.xml -force


3

My experience playing around w/ XML is limited, to say the least, but how about something like: $node = $xml.strings.string | where { $_.id -eq "HeadingApplicationName" } Write-Host $node.'#text' $node.'#text' = "whatever" Seemed to work in my limited testing...


3

It sounds as though you're editing the XML for the answer file directly - I would highly recommend that you install Windows Automated Installation Kit (available from Microsoft here) and use the Windows System Image Manager tool therein to edit your answer files using a more user-friendly method, as per the Microsoft Documentation here. Specifically, you'...


3

You can use the xml2/2xml tools to process XML on the command line without too much fuss. xml2 converts an XML document into a line-oriented format suitable for use with traditional text processing tools like awk or sed, and 2xml takes this format and converts it back to XML. For your example, if I take this document: <?xml version="1.0"?> <doc&...


3

I figured it out! Had to disable Internet Explorer Enhanced Security Configuration (IE ESC) using ServerManager.msc on Windows Server.


3

Should be on your DVD/ISO. EX 2010 location example: x:\Setup\ServerRoles\ClientAccess\sync\xsd\v2.0 Directory of x:\Setup\ServerRoles\ClientAccess\sync\xsd\v2.0 09/25/2009 01:14 PM <DIR> . 09/25/2009 01:14 PM <DIR> .. 07/21/2009 08:27 PM 1,043 foldercreate-request.xsd 07/21/2009 08:27 PM ...


3

The XPath selector must begin with *, however you cannot use * to filter fields as Xpath 1.0 has no contains operator. https://blogs.technet.microsoft.com/askds/2011/09/26/advanced-xml-filtering-in-the-windows-event-viewer/ XPath 1.0 Limitations: Windows Event Log supports a subset of XPath 1.0. There are limitations to what functions work in the query....


2

Try this instead: #!/bin/bash XMLLINT_INDENT=$'\t' xmllint --encode UTF-8 --format - $*


2

If it's a .xlsx file like the Windows version uses, that's just a renamed .zip of XML and other content. For example, a spreadsheet with the following values in Sheet1: If you rename the .xlsx to a .zip, you'll find the numeric data exposed in a file xl\worksheets\sheet1.xml in the following tree: <worksheet> <sheetData> <row r="1" ...


2

Your Apache Allow/Deny directives are configured to forbid access to the file you're trying to get. These directives will likely be in your <VirtualHost> configuration, or an .htaccess file. Please edit your question with this info and we can assist in straightening out the rules.


2

Are you creating the unattend file with Windows SIM (Part of WAIK)? I put your file into WSIM (I added it to another complete unattend file) and it validated fine. The only problem I can see at this point is that you are trying to make 2 partitions active, when you can only have 1. WSIM can make creation of unattend files much easier. Have you checked the ...


2

You are right, there is no reason it would care which web server is serving the content. There is something different between the two that is preventing SMSPrinter from retrieving the page. Sadly there just isn't enough information to give an answer on how to fix it. Here are some things I'd start troubleshooting with. I'd start pay making sure you are able ...


2

I had the same problem and this was the only promising looking search result. My problem was, that I was using a wrong version of the active record gem. I had version 3.1.0 installed. But with version 2.3.11 it works fine. Hope this helps.


2

Have a look at the Spring Security Reference! Chapter 19.5 Active Directory Authentication


Only top voted, non community-wiki answers of a minimum length are eligible