<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Byty IT Website &#187; Scripting</title>
	<atom:link href="http://byty.ro/category/scripting/feed/" rel="self" type="application/rss+xml" />
	<link>http://byty.ro</link>
	<description>SCOM 2007, Tehnologii Microsoft. Conultanta Servicii IT</description>
	<lastBuildDate>Thu, 17 May 2012 06:38:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Powershell &#8211; IP Assigned de DHCP</title>
		<link>http://byty.ro/2009/04/13/powershell-ip-assigned-de-dhcp/</link>
		<comments>http://byty.ro/2009/04/13/powershell-ip-assigned-de-dhcp/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 05:58:35 +0000</pubDate>
		<dc:creator>Byty</dc:creator>
				<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Powershell DHCP]]></category>

		<guid isPermaLink="false">http://byty.ro/?p=486</guid>
		<description><![CDATA[Un mic script care citeste ce IP a fost Assignat de serveru de DHCP in ziua respectiva. Tot ce trebuie sa faceti este sa schimbati _Server DHCP_ cu numele serverului $datae=Get-Date $ziua=$datae.DayOfWeek $zistring=$ziua.ToString() $fisname=$zistring.Substring(0,3) $fispath = &#8220;\\_Server DHCP_\c$\WINDOWS\system32\dhcp\DhcpSrvLog-&#8221;+$fisname+&#8221;.log&#8221; $a = Get-Content $fispath &#8220;Computers added in DHCP&#8221; &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&#8221; ForEach($linie in $a ){ $b=$linie.split(&#8220;,&#8221;) if ($b[0] -eq [...]]]></description>
			<content:encoded><![CDATA[<p>Un mic script care citeste ce IP a fost Assignat de serveru de DHCP in ziua respectiva. Tot ce trebuie sa faceti este sa schimbati _Server DHCP_ cu numele serverului<br />
$datae=Get-Date<br />
$ziua=$datae.DayOfWeek<br />
$zistring=$ziua.ToString()<br />
$fisname=$zistring.Substring(0,3)<br />
$fispath = &#8220;\\_Server DHCP_\c$\WINDOWS\system32\dhcp\DhcpSrvLog-&#8221;+$fisname+&#8221;.log&#8221;<br />
$a = Get-Content $fispath<br />
&#8220;Computers added in DHCP&#8221;<br />
&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&#8221;<br />
ForEach($linie in $a ){<br />
$b=$linie.split(&#8220;,&#8221;)<br />
if ($b[0] -eq 10) {<br />
&#8220;The computer &#8220;+$b[5]+&#8221; with the MAC address &#8220;+$b[6]+&#8221; and the IP &#8220;+$b[3]+&#8221; Was added to DHCP&#8221;<br />
}<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://byty.ro/2009/04/13/powershell-ip-assigned-de-dhcp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Powershell si bradul :)</title>
		<link>http://byty.ro/2008/12/21/powershell-si-bradul/</link>
		<comments>http://byty.ro/2008/12/21/powershell-si-bradul/#comments</comments>
		<pubDate>Sun, 21 Dec 2008 08:38:34 +0000</pubDate>
		<dc:creator>Byty</dc:creator>
				<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Powershell]]></category>

		<guid isPermaLink="false">http://byty.ro/?p=357</guid>
		<description><![CDATA[Cine vrea acest bradutz in Powershell il poate downloda de Aici. Codul este foarte simplu:     $varf = &#8220;^&#8221;     $frunze = &#8220;/&#124;\&#8221;     write-host -foregroundcolor &#8216;Red&#8217; ($varf.PadLeft(16))     $tree = &#8220;/&#124;\&#8221;   1..15 &#124; ForEach-Object  {     $a=$_      write-host -fore &#8216;green&#8217; (&#8221; &#8220;*(15-$a)+$frunze)     $frunze=&#8221;/&#8221;+$frunze+&#8221;\&#8221;     }     write-host -foregroundcolor &#8216;green&#8217; (&#8220;&#124;&#124;&#124;&#8221;.PadLeft(17))     write-host -foregroundcolor &#8216;green&#8217; (&#8220;&#124;&#124;&#124;&#8221;.PadLeft(17)) [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-358" title="brad_ps" src="http://byty.ro/wp-content/uploads/2008/12/brad_ps.bmp" alt="brad_ps" /></p>
<p>Cine vrea acest bradutz in Powershell il poate downloda de <a href="http://byty.ro/wp-content/uploads/2008/12/brad.ps1">Aici</a>.<br />
Codul este foarte simplu:<br />
    <em>$varf = &#8220;^&#8221;<br />
    $frunze = &#8220;/|\&#8221;<br />
    write-host -foregroundcolor &#8216;Red&#8217; ($varf.PadLeft(16))<br />
    $tree = &#8220;/|\&#8221;<br />
  1..15 | ForEach-Object  {<br />
    $a=$_<br />
     write-host -fore &#8216;green&#8217; (&#8221; &#8220;*(15-$a)+$frunze)<br />
    $frunze=&#8221;/&#8221;+$frunze+&#8221;\&#8221;<br />
    }</em></p>
<p><em>    write-host -foregroundcolor &#8216;green&#8217; (&#8220;|||&#8221;.PadLeft(17))<br />
    write-host -foregroundcolor &#8216;green&#8217; (&#8220;|||&#8221;.PadLeft(17))<br />
    write-host -foregroundcolor &#8216;Cyan&#8217; (&#8220;\&#8212;/&#8221;.PadLeft(18))<br />
    write-host -foregroundcolor &#8216;Cyan&#8217; (&#8220;&#8212;&#8221;.PadLeft(17))</em></p>
<p>Sarbatori Fericite!</p>
]]></content:encoded>
			<wfw:commentRss>http://byty.ro/2008/12/21/powershell-si-bradul/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Powershell</title>
		<link>http://byty.ro/2008/12/14/powershell/</link>
		<comments>http://byty.ro/2008/12/14/powershell/#comments</comments>
		<pubDate>Sun, 14 Dec 2008 18:01:46 +0000</pubDate>
		<dc:creator>Byty</dc:creator>
				<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Powershell]]></category>

		<guid isPermaLink="false">http://byty.ro/?p=347</guid>
		<description><![CDATA[Toata lumea povesteste despre PowerShell. Incerc sa scriu si eu un post care sa explice ce este cu acest limbaj de scripting. PowerShell este un limbaj care sa ii ajute pe administratorii de sistem sa realizeze taskurile zilnice pe care le au. El este mai mult mai complex decat Command Prompt si mai puternic decat [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-348" title="powershelltumbnail" src="http://byty.ro/wp-content/uploads/2008/12/powershelltumbnail.jpg" alt="powershelltumbnail" width="55" height="55" /></p>
<p>Toata lumea povesteste despre PowerShell. Incerc sa scriu si eu un post care sa explice ce este cu acest limbaj de scripting.<br />
PowerShell este un limbaj care sa ii ajute pe administratorii de sistem sa realizeze taskurile zilnice pe care le au. El este mai mult mai complex decat Command Prompt si mai puternic decat orice alt limbaj de scripting, cel mai cunoscut fiind Visual Basic Scripting.<br />
In momentul actual exista versiunea finala Powershell v1 si o versiune <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=7C8051C2-9BFC-4C81-859D-0864979FA403&amp;displaylang=en">CPT Powershell V2</a>.<br />
Cerintele de sistem pentru versiunea CPT V2 sunt: .NET Framework V2.0,  WinRM 2.0 CTP pentru functiile remote,  .NET Framework V3.0 pentru a folosii functiile grafice.<br />
Tutoriale pentru a incepe sa intelegi ce stie si ce poate sa faca puteti gasi pe pagina <a href="http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx">Microsoft.</a> Cateva scripturi foarte simple care te pot ajuta pentru inceput poti gasi pe aceasta <a href="http://www.microsoft.com/technet/scriptcenter/scripts/msh/default.mspx?mfr=true">pagina.</a> In viitor am sa incerc sa postez scripturi mult mai complexe care sa va ajute.</p>
]]></content:encoded>
			<wfw:commentRss>http://byty.ro/2008/12/14/powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

