<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://wiki.borovicka.name/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://wiki.borovicka.name/feed.php">
        <title>wiki.borovicka.name programming:powershell</title>
        <description></description>
        <link>http://wiki.borovicka.name/</link>
        <image rdf:resource="http://wiki.borovicka.name/lib/tpl/artic/images/favicon.ico" />
       <dc:date>2026-04-30T13:15:53+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://wiki.borovicka.name/programming/powershell/killprocess?rev=1529603284&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.borovicka.name/programming/powershell/mssqlexport2csv?rev=1529603284&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.borovicka.name/programming/powershell/runexecuable?rev=1529603284&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://wiki.borovicka.name/lib/tpl/artic/images/favicon.ico">
        <title>wiki.borovicka.name</title>
        <link>http://wiki.borovicka.name/</link>
        <url>http://wiki.borovicka.name/lib/tpl/artic/images/favicon.ico</url>
    </image>
    <item rdf:about="http://wiki.borovicka.name/programming/powershell/killprocess?rev=1529603284&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-06-21T19:48:04+02:00</dc:date>
        <title>programming:powershell:killprocess</title>
        <link>http://wiki.borovicka.name/programming/powershell/killprocess?rev=1529603284&amp;do=diff</link>
        <description>Kill process

	*  Kills the process and continues without error when process does not run.
	*  


	Stop-Process -ProcessName processName -force -ErrorAction SilentlyContinue</description>
    </item>
    <item rdf:about="http://wiki.borovicka.name/programming/powershell/mssqlexport2csv?rev=1529603284&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-06-21T19:48:04+02:00</dc:date>
        <title>programming:powershell:mssqlexport2csv</title>
        <link>http://wiki.borovicka.name/programming/powershell/mssqlexport2csv?rev=1529603284&amp;do=diff</link>
        <description>Export data from MSSQL to csv with Powershell

	*  Useful when you need to export data from MSSQL into csv with a script.

	*  At first you need to add sql server snapin.


add-pssnapin sqlserverprovidersnapin100
add-pssnapin sqlservercmdletsnapin100</description>
    </item>
    <item rdf:about="http://wiki.borovicka.name/programming/powershell/runexecuable?rev=1529603284&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-06-21T19:48:04+02:00</dc:date>
        <title>programming:powershell:runexecuable</title>
        <link>http://wiki.borovicka.name/programming/powershell/runexecuable?rev=1529603284&amp;do=diff</link>
        <description>Run executable

	*  In PowerShell is several ways how to run executable, here are some (not all) of them.

[Diagnostics.Process] Start()


$process= New-Object System.Diagnostics.Process
$process.StartInfo.Filename = &quot;ping&quot;
$process.StartInfo.Arguments = &quot;8.8.8.8&quot;
$process.StartInfo.RedirectStandardOutput = $True
$process.StartInfo.UseShellExecute = $False
$process.start()
#$process.Kill() # kills the process
$process.WaitForExit();
[string] $stdOut = $process.StandardOutput.ReadToEnd();</description>
    </item>
</rdf:RDF>
