Hot answers tagged

12 votes
Accepted

Is it possible to create a generalized configuration file for installing Windows features using PowerShell?

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 ...
user avatar
  • 23.9k
12 votes

How to filter windows event log with wildcard?

Use Powershell Get-EventLog -LogName "System" | ?{$_.Message -like "*YourSearchString*"} | Out-GridView
user avatar
  • 121
11 votes
Accepted

Logstash parsing xml document containing multiple log entries

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 ...
user avatar
  • 388
11 votes

PHP 5.6 undefined function xml_parser_create

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....
user avatar
7 votes

Is it possible to create a generalized configuration file for installing Windows features using PowerShell?

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 &...
user avatar
  • 3,654
6 votes
Accepted

Installing XML::Parser, but it dies due to Expat dependency

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'...
user avatar
  • 27.1k
4 votes
Accepted

Replacing a string in an XML with Powershell causes MALFORMED XML

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 ...
user avatar
  • 2,505
4 votes
Accepted

CLI command to update simple XML file

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 ...
user avatar
  • 40.3k
4 votes
Accepted

How to filter windows event log with wildcard?

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-...
user avatar
  • 4,473
3 votes
Accepted

Are Exchange ActiveSync .xsd schemas available outside of documentation?

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 <...
user avatar
  • 33.9k
3 votes
Accepted

Editing XML files from powershell

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' $...
user avatar
3 votes
Accepted

How to activate Windows 7 using sysprep unattend.xml?

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 ...
user avatar
  • 2,538
3 votes
Accepted

Windows Server Blocking Web Service?

I figured it out! Had to disable Internet Explorer Enhanced Security Configuration (IE ESC) using ServerManager.msc on Windows Server.
user avatar
  • 309
3 votes
Accepted

Event Log > Filter Current Log > XML > where EventData contains text

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="...
user avatar
3 votes

how to force Nginx to override header?

You can't actually set the Content-Type header for proxy_passed content using plain nginx. You need to compile it with headers-more-nginx-module for that functionality. After you got that module, ...
user avatar
  • 3,527
2 votes

Ok to edit task's xml file in c:\windows\system32\Tasks?

Export the original task, then modify the exported XML file. Import into another computer or delete the original task before importing the newly modified task.
user avatar
  • 21
2 votes

How can I install php53u-xml package (CentOS)?

The reason you had trouble finding it is because PHP 5.3 reached end of life on 2014-08-14. IUS and other third party repositories removed their 5.3 packages from the primary repos. As the other ...
user avatar
2 votes
Accepted

Trying to filter AccessList = %%1537 in event viewer :/

You need to add &#xD;&#xA;&#x09;&#x09;&#x09;&#x09; after %%1537 &#x09; -- the Tab &#xA; -- newline &#xD; -- carriage return <QueryList> <Query Id="0" ...
user avatar
  • 36
2 votes

Utility to LOGICALLY compare two xml files?

Good answer here: Question: How can I diff two XML files? | Super User Answer: How can I diff two XML files? | Super User $ xmllint --format --exc-c14n one.xml > 1.xml $ xmllint --format --exc-...
user avatar
2 votes

"Class 'XMLWriter' not found" Error in php | php55w-xml-5.5.24-1.w6.x86_64.rpm is missing

php55w-* packages are webtatic packages and you don't need this if you don't use webtatics PHP installation. Instead, use the relevant version for your installation of PHP. Normally, it should be ...
user avatar
  • 96.4k
2 votes
Accepted

SHIBBOLETH SP - Shibboleth handler invoked at an unconfigured location - Shibboleth.sso/Session/

Found the answer: The problem was actually with the way Apache is configured. It was rewriting urls to add a / at the end of each url. so https://mysite/Shibboleth.sso/Session became https://mysite/...
user avatar
2 votes

Possible to set ComputerName in Unattend.xml with script?

I got this working with windows 10 pro As a note :Synchronous Commands in the Specialize Stage Appear to Run BEFORE other sections in the same stage. So if you have a PC name specified in WDS client ...
user avatar
1 vote

tcpdump http containing non expected payload bytes

For the record, this was http/chunked traffic and what I am seeing is the chunk header. When opening in wireshark, it will list those packages as TCP segement of a reassembled PDU. Going to the last ...
user avatar
1 vote

How to Make JBoss 5.1.0 GA Meet Diffie-Hellman Standards?

You can actually also increase the DHE size (1024 & 2048 in Java 8 and up to 9192 in Java 9). And you can provide custom made DH Parameters in Java8+, as described here: https://serverfault.com/a/...
user avatar
  • 835
1 vote
Accepted

How to Make JBoss 5.1.0 GA Meet Diffie-Hellman Standards?

For anyone else who has run into this with JBoss 5.1.0 GA, the settings that ended up working for us were similar to this: <Connector protocol="HTTP/1.1" SSLEnabled="true" port="8543" address="${...
user avatar
1 vote
Accepted

How can I install php53u-xml package (CentOS)?

during the discussion (in russian), it was found the location of the server with the package archive: https://dl.iuscommunity.org/pub/ius/archive/Redhat/5/
user avatar
1 vote
Accepted

How to separate solr/home and data/dir in Catalina/localhost XML file?

I don't think it's possible to use Tomcat context environment entries for data directory without patching Solr. It seems only solr/home variable works fine. The better way of doing is by using JVM ...
user avatar
  • 5,797
1 vote

How to separate solr/home and data/dir in Catalina/localhost XML file?

I don't believe so. Work was done a long time ago to support system property substitution when the solrconfig.xml file is loaded, but i don't think that was ever generalized to support JNDI ...
1 vote
Accepted

IIS 7.5 deployment's issue - WebApp won't load

I found the solution and I want to share it with you ! It took time to me to resolve my problem and I hope it'll help you. First, one of the problems was the AppPool's authorisation with the database....
user avatar
1 vote
Accepted

How to change Zimbra Welcome page

Unsure if my answer is useful, but wouldn't you look for answer at (active forums) community.zimbra.com, or (archived forums) forums.zimbra.com For example: Changing ZWC (Zimbra Web Client) Theme ...
user avatar

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