Hot answers tagged

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 ...


10

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 { ...


8

XML parsing in MS Powershell is easier than any parsing mechanism I've seen in any other language or environment I've personally encountered. Given some XML file (test.xml): <root> <one>I like applesauce</one> <two>You sure bet I do!</two> </root> You can easily access, modify and append nodes, values and ...


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 ...


6

For reasons unknown, a great many of the (Windows XP SP3) computers I manage have recently started creating a new pseudoprinter object, called Microsoft XPS Document Writer, seemingly out of nowhere. If I read things correctly the original version of XPS Document Writer and related components for Windows XP shipped as part of .NET Framework ...


5

Unfortunately no. That must be a full physical path. As long as you don't plan to change your site path often, a static path shouldn't be a problem. If you change your path often to different site instances you may want to consider using appcmd to script the change so that it gets all subfolders.


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: ...


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 ...


4

You asked a similar question last month, and I provided instructions on where to go on HP's Web site to get the tools you needed. Here are exact links: You can get CPQLOCFG.EXE (as suggested by sleske) here. You can get HPLOCFG.EXE (a similar tool) here. You can get sample XML files and the Perl locfg.pl utility here. I suggest also looking over the ...


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 ...


3

They are XML-based but still compressed to ZIP files making them binary as far as SharePoint is concerned. Considering that SharePoint doesn't recognise the Office 2007 formats unless you configure them yourself or install the Microsoft Filter Pack, it looks like this feature wasn't ready for SharePoint 2007 RTM.


3

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


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

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, ...


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: http://stackoverflow.com/questions/4454918/how-to-send-xml-messages-to-web-services ...


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

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

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


2

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 answer shows, the IUS php53u packages are still available in the archive (for historical purposes), but you should not use them. There are multiple ...


2

You need to add &#xD;&#xA;&#x09;&#x09;&#x09;&#x09; after %%1537 &#x09; -- the Tab &#xA; -- newline &#xD; -- carriage return <QueryList> <Query Id="0" Path="Security"> <Select Path="Security"> *[EventData[Data[@Name='AccessList'] and ...


2

Ah, whatever you do, consider age. These days dual core are harder to find as they are older. That means slower, per core.


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

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 = ...


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

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

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


2

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...


2

@ewwhite it's a propriety application with very limited distribution. Well, in situations like this, where you have an application with an archaic licensing scheme, you're going to be limited in your options as hardware progresses. Dual-core CPUs are all but obsolete in the modern processor offerings from the major manufacturers. Quad-core CPUs are also ...


2

If you are given just the raw XML, you can load up the XML document. Since you posted an XML fragment, I'll assume that it was exported from the log and has a <Events> root tag. The tricky part is the namespace. $xml = [xml](get-content "PathToXml.xml") $xmlns = New-Object -TypeName System.Xml.XmlNamespaceManager -ArgumentList $xml.NameTable ...


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" ...



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