<?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>Avivo Tech Blog &#187; System administration</title>
	<atom:link href="http://tech.avivo.si/category/system-administration/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.avivo.si</link>
	<description>Solving problems</description>
	<lastBuildDate>Tue, 24 Jan 2012 14:46:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Visual Source Safe Analyze and Repair tool problems</title>
		<link>http://tech.avivo.si/2011/12/visual-source-safe-analyze-and-repair-tool-problems/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=visual-source-safe-analyze-and-repair-tool-problems</link>
		<comments>http://tech.avivo.si/2011/12/visual-source-safe-analyze-and-repair-tool-problems/#comments</comments>
		<pubDate>Thu, 22 Dec 2011 08:28:47 +0000</pubDate>
		<dc:creator>Avivo</dc:creator>
				<category><![CDATA[Programming Techniques]]></category>
		<category><![CDATA[System administration]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[analyze and repair]]></category>
		<category><![CDATA[Cannot rebuild the database while Visual SourceSafe is being run. Make sure all users have exited SourceSafe and try again.]]></category>
		<category><![CDATA[microsoft visual sorce safe]]></category>
		<category><![CDATA[source safe]]></category>
		<category><![CDATA[version control software]]></category>
		<category><![CDATA[vss]]></category>

		<guid isPermaLink="false">http://tech.avivo.si/?p=1438</guid>
		<description><![CDATA[This is the solution if you got this error message when trying to do Analyze and Repair some VSS database using does prompt command: C:\&#62;&#8221;C:\Program Files (x86)\Microsoft Visual SourceSafe\analyze.exe&#8221; -F -V3 -D &#8220;\\my_server\my_vss_database\data Error was: Database analysis in progress File ../data/status.dat is already open Cannot rebuild the database while Visual SourceSafe is being run. Make [...]]]></description>
			<content:encoded><![CDATA[<p>This is the solution if you got this error message when trying to do Analyze and Repair some VSS database using does prompt command:<br />
<strong>C:\&gt;&#8221;C:\Program Files (x86)\Microsoft Visual SourceSafe\analyze.exe&#8221; -F -V3 -D &#8220;\\my_server\my_vss_database\data</strong></p>
<p>Error was:</p>
<p><span style="color: #ff0000;">Database analysis in progress</span> <span style="color: #ff0000;"> File ../data/status.dat is already open</span> <span style="color: #ff0000;"> Cannot rebuild the database while Visual SourceSafe is being run. Make sure all users have exited SourceSafe and try again.</span></p>
<p><strong>Solution</strong></p>
<p>Make sure there are no users connected to the VSS database (running <strong>ssexp</strong>, <strong>ssadmin</strong>, etc), that users cannot connect to the database using the web service (they connect only for short times, so it&#8217;s hard to see them listed as logged in with <strong>ssadmin</strong>), and that <strong>VSS LAN Service is stopped</strong> (use <strong>net stop ssservice</strong>), as it may keep a connection open to the database.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.avivo.si/2011/12/visual-source-safe-analyze-and-repair-tool-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding stored JavaScript procedures to MongoDB using Windows Batch script</title>
		<link>http://tech.avivo.si/2011/10/adding-stored-javascript-procedures-to-mongodb-using-windows-batch-script/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=adding-stored-javascript-procedures-to-mongodb-using-windows-batch-script</link>
		<comments>http://tech.avivo.si/2011/10/adding-stored-javascript-procedures-to-mongodb-using-windows-batch-script/#comments</comments>
		<pubDate>Fri, 07 Oct 2011 12:05:55 +0000</pubDate>
		<dc:creator>developer</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[System administration]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mongo]]></category>
		<category><![CDATA[MongoDB]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Stored Procedure]]></category>

		<guid isPermaLink="false">http://tech.avivo.si/?p=1394</guid>
		<description><![CDATA[MongoDB can use stored procedures similar to MSSQL. To make a MongoDB procedure create a new file, name it like DoSomething.js, write a function and attach it to database. Guide through example Lets say we have a log of website visitors stored in visitors collection inside myweb database. Each visitors record contains date and time [...]]]></description>
			<content:encoded><![CDATA[<p>MongoDB can use stored procedures similar to MSSQL. To make a MongoDB procedure create a new file, name it like <strong>DoSomething.js</strong>, write a function and attach it to database.</p>
<h2>Guide through example</h2>
<p>Lets say we have a log of website visitors stored in <strong>visitors</strong> collection inside <strong>myweb</strong> database. Each <strong>visitors</strong> record contains date and time of a visit. Now we want to create monthly statistics &#8211; how many users visits website per month.</p>
<p><strong>visitors</strong> collection looks like:</p>
<pre>&gt; use myweb
&gt; db.visitors.findOne()
{
  "_id": ObjectId("4e0cb7e7da3ea11d18d841e7"),
  "timestamp": "Thu Jun 30 2011 19:52:39 GMT+0200 (Central Europe Daylight Time)"
}</pre>
<p>Most reusable way to get data is to create a stored procedure <strong>GetVisitsPerMonth()</strong> and call it on demand. Create a file <strong>GetVisitsPerMonth.js</strong> and copy-paste the following code inside. Note that file name is named by procedure.</p>
<pre>function ()
{
	var result = db.visitors.group(
	{
		keyf: function(doc)
		{
			return { //NOTE: Bracket must be in this line!!!
				month: doc.timestamp.getMonth(),
				year: doc.timestamp.getFullYear()
			};
		},
		initial: {count:0},
		reduce: function(doc, prev) { prev.count++ }
	});

	return result;
}</pre>
<h2>How to attach one procedure</h2>
<p>Stored procedure can be manually attached like this:</p>
<pre>db = connect("localhost:27017/myweb");
db.system.js.save({"_id":"GetVisitsPerMonth", "value": function() { ... });</pre>
<h2>How to attach multiple procedures</h2>
<p>Large sets of procedures should be well organized in files so you can quickly find a procedure and fix it if necessary. To insert or update all procedures at once use a simple batch script.</p>
<p>Create a new file, name it <strong>install.bat</strong> and copy-paste the following code inside:</p>
<pre>@echo off

:parameters
set DBCON=localhost:27017/myweb
set MONGO=c:\mongodb\bin\mongo.exe
set SCRIPT=script.js

:startup
if not exist %MONGO% goto error
if not "%1"=="" goto add

rem Append connection string
echo Adding connection string...
echo db = connect("%DBCON%"); &gt; %SCRIPT%
echo. &gt;&gt; %SCRIPT%

rem Append scripts
call %0 GetVisitsPerMonth
rem call %0 DoSomething
rem other procedures go here

goto install
rem goto end

:add
echo Adding script %1...
echo db.system.js.save({"_id":"%1", "value": &gt;&gt; %SCRIPT%
type %1.js &gt;&gt; %SCRIPT%
echo }); &gt;&gt; %SCRIPT%
echo. &gt;&gt; %SCRIPT%
goto end

:install
echo Running script...
%MONGO% %SCRIPT%
goto end

:error
echo Check if mongo is installed:
echo %MONGO%

:end</pre>
<p>Edit parameters according to your needs: path to mongo.exe, database name, and list of procedures.<br />
Simply run the script and it is done.</p>
<h2>Testing a stored procedure</h2>
<p>Log into mongo console:</p>
<pre>&gt; use myweb
&gt; db.eval("GetVisitsPerMonth()")
[
  {
    "month": 5,
    "year": 2011,
    "count": 28233,
  },
  {
    "month": 6,
    "year": 2011,
    "count": 48026,
  },
  {
    "month": 7,
    "year": 2011,
    "count": 92754,
  }
]</pre>
]]></content:encoded>
			<wfw:commentRss>http://tech.avivo.si/2011/10/adding-stored-javascript-procedures-to-mongodb-using-windows-batch-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 7 &#8211; Fix if SLEEP mode does not work</title>
		<link>http://tech.avivo.si/2011/09/windows-7-fix-if-sleep-mode-does-not-work/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=windows-7-fix-if-sleep-mode-does-not-work</link>
		<comments>http://tech.avivo.si/2011/09/windows-7-fix-if-sleep-mode-does-not-work/#comments</comments>
		<pubDate>Sun, 11 Sep 2011 08:33:11 +0000</pubDate>
		<dc:creator>Avivo</dc:creator>
				<category><![CDATA[System administration]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[awakening]]></category>
		<category><![CDATA[fixing sleep mode on windows 7]]></category>
		<category><![CDATA[microsofts]]></category>
		<category><![CDATA[power management]]></category>
		<category><![CDATA[sleep mode]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://tech.avivo.si/?p=1386</guid>
		<description><![CDATA[Check your network card properties through the device manager and disable the “Allow this devide to wake the computer” feature. Right click on your “My Computer” then select Properties. Click Device Manager on the left side of the Properties window. Check your Network card on the Network Adapters (Click on the + sign to expand). [...]]]></description>
			<content:encoded><![CDATA[<p>Check your network card properties through the device manager and disable the “Allow this devide to wake the computer” feature.</p>
<ol>
<li>Right click on your “My Computer” then select Properties.</li>
<li>Click Device Manager on the left side of the Properties window.</li>
<li>Check your Network card on the Network Adapters (Click on the + sign to expand).</li>
<li>Right click on your network card and select properties.</li>
<li>Go to the Power Management tab and untick the option there to prevent your network card from ever waking up your Windows.</li>
</ol>
<p><img class="alignnone size-full wp-image-1387" title="windows-7-sleep-mode-fix" src="http://tech.avivo.si/wp-content/uploads/2011/09/windows-7-sleep-mode-fix.jpg" alt="" width="414" height="461" /></p>
<h2>Find out what wakes up your Windows 7/Vista from its sleep</h2>
<p>To find out what event/device woke up your Windows from its sleep  state, go to command prompt (type cmd on the Run/Search box and press  ENTER), then type this:<br />
<strong>powercfg – lastwake</strong></p>
<div><ins><ins id="aswift_1_anchor"></ins></ins></div>
<p>&nbsp;</p>
<p>To get the most detailed info (and probably easiest) on the device that wakes your Windows up during the sleep, type:<br />
<strong>powercfg –devicequery wake_armed</strong></p>
<p>&nbsp;</p>
<p>There! You’ll find the culprit I clicked my mouse to wake my Windows up intentionally so that’s why  you see an HID compliant mouse on the screenshot above. Yours might be  different.</p>
<p>Hope this helps to prevent your computer wakes up from sleep by itself!</p>
<p><strong>If it still doesn’t work:</strong></p>
<ul>
<li>Check out your Power Management Options on your Control Panel  (Start, Control Panel, Power Settings, Change plan settings, Change  advanced power settings).<br />
-&gt; “Multimedia settings” option, “When sharing media.” -&gt;”Allow the computer to sleep.<br />
-&gt; Check other options one by one while you’re at it.</li>
</ul>
<p>Original article available <a href="http://www.cravingtech.com/fix-windows-vista7-sleep-mode-from-waking-up-by-itself.html" target="_blank&quot;">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.avivo.si/2011/09/windows-7-fix-if-sleep-mode-does-not-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get all project files from Visual Source Safe for a given date</title>
		<link>http://tech.avivo.si/2011/08/get-all-project-files-from-visual-source-safe-for-given-date/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=get-all-project-files-from-visual-source-safe-for-given-date</link>
		<comments>http://tech.avivo.si/2011/08/get-all-project-files-from-visual-source-safe-for-given-date/#comments</comments>
		<pubDate>Sun, 21 Aug 2011 11:52:03 +0000</pubDate>
		<dc:creator>Avivo</dc:creator>
				<category><![CDATA[Programming Techniques]]></category>
		<category><![CDATA[System administration]]></category>
		<category><![CDATA[get all projects files from visual source safe for a given date]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[microsoft visual source safe]]></category>
		<category><![CDATA[version control]]></category>
		<category><![CDATA[visual source safe]]></category>
		<category><![CDATA[vss]]></category>

		<guid isPermaLink="false">http://tech.avivo.si/?p=1362</guid>
		<description><![CDATA[If you are developing some application and use Visual Source Safe as version control software then you probably needed (at least one time) to retrieve all files from your project for specific day from the past. Visual Source Safe does not allow you to do this from its GUI but there is a DOS command [...]]]></description>
			<content:encoded><![CDATA[<p>If you are developing some application and use Visual Source Safe as version control software then you probably needed (at least one time) to retrieve all files from your project for specific day from the past.<br />
Visual Source Safe does not allow you to do this from its GUI but there is a DOS command that can help you.</p>
<p>To use the command-line, you must set the Environment Variable for <strong>SSDIR</strong> to the location of your working SourceSafe database, such as <strong>\\Dev1\VSS</strong> where Dev1 is the name of the server and VSS is the name of the share where the database is located. You may also need to add ss.exe path to your <strong>PATH </strong>variable &#8211; it is usually in folder: <strong>c:\Program Files (x86)\Microsoft Visual SourceSafe\</strong></p>
<p>This is the command:</p>
<div style="margin:20px 0;">
<pre>ss Get "$/your_vss_folder" -R -Vd15-03-2009;2:00a</pre>
</div>
<p>or just without an hour</p>
<div style="margin:20px 0;">
<pre>ss Get "$/your_vss_folder" -R -Vd15-03-2009</pre>
</div>
<ul>
<li>First parameter is folder under your Visual Source Safe project</li>
<li>-R means to get all files recursively</li>
<li>-V means date and in this example we get all files for 15.3.2009</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://tech.avivo.si/2011/08/get-all-project-files-from-visual-source-safe-for-given-date/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to block Remote IP address (hacker attack) on Windows 2008 Server?</title>
		<link>http://tech.avivo.si/2011/04/how-to-block-remote-ip-address-hacker-attack-on-windows-2008-server/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-block-remote-ip-address-hacker-attack-on-windows-2008-server</link>
		<comments>http://tech.avivo.si/2011/04/how-to-block-remote-ip-address-hacker-attack-on-windows-2008-server/#comments</comments>
		<pubDate>Fri, 08 Apr 2011 10:44:13 +0000</pubDate>
		<dc:creator>Avivo</dc:creator>
				<category><![CDATA[System administration]]></category>
		<category><![CDATA[attack]]></category>
		<category><![CDATA[block intruder]]></category>
		<category><![CDATA[block ip address on windows 2008 server]]></category>
		<category><![CDATA[block remote ip]]></category>
		<category><![CDATA[dos attack]]></category>
		<category><![CDATA[hacker]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[prevent hacker attack]]></category>
		<category><![CDATA[protect your server]]></category>
		<category><![CDATA[windows 2008 server]]></category>

		<guid isPermaLink="false">http://tech.avivo.si/?p=1277</guid>
		<description><![CDATA[Block IP address with Windows Firewall 2008 This procedure helped us when someone wanted to hack our server (taken from original post). If you ever feel that someone may be trying to break into your server or know an IP address that you want to block from accessing your server there is a built in [...]]]></description>
			<content:encoded><![CDATA[<h2>Block IP address with Windows Firewall 2008</h2>
<p>This procedure helped us when someone wanted to hack our server (taken from original <a href="https://support.gearhost.com/KB/a520/block-ip-address-with-windows-firewall-2008.aspx" target="_blank">post</a>). If you ever feel that someone may be trying to break into your server or know an IP address that you want to block from accessing your server there is a built in firewall on all of our 2008 DDS servers. You can use this firewall to block either a range of IP addresses or a single address.</p>
<ol>
<li>Log into your server via RDP.</li>
<li>Click on <strong>start &gt; administrative tools &gt; windows firewall with advanced security</strong></li>
<li>On the left side of the firewall window click on the <strong>inbound rules</strong> option.</li>
<li>On the right side of the screen click on <strong>New Rule</strong>.</li>
<li>Click on the <strong>custom radio button</strong> and then click <strong>next</strong>.</li>
<li>Make sure the <strong>All programs radio is selected</strong> then click <strong>next</strong>.</li>
<li>On the protocol and ports options <strong>leave everything</strong> at its defaults and click <strong>next</strong>.</li>
<li>On the scope screen you will see two boxes the top one is for local IP addresses and the bottom is for <strong>remote IP addresses</strong>. In this scenario we are trying to block an outside (remote) IP from accessing anything on the server so we will need to add the IP address to this section only as it will not be a local IP address.</li>
<li>Click on the <strong>radio </strong>that says <strong>these IP addresses</strong> in the remote section as shown below:<br />
<img class="alignnone size-full wp-image-1279" title="DDSipblockremoteradioshot" src="http://tech.avivo.si/wp-content/uploads/2011/04/DDSipblockremoteradioshot.png" alt="" width="555" height="249" /></li>
<li>Click on the <strong>Add </strong>button.</li>
<li>In the next window we will be adding a single IP address to the rule, you can also add an entire range at this point if you wish.<br />
<img class="alignnone size-full wp-image-1278" title="DDSipblockipinput" src="http://tech.avivo.si/wp-content/uploads/2011/04/DDSipblockipinput.png" alt="" width="344" height="370" /></li>
<li>Click <strong>ok</strong>, click <strong>next</strong>.</li>
<li>Make sure you select the<strong> Block the connection</strong> radio on the next screen and then click <strong>next</strong>.</li>
<li><strong>Leave all of the options</strong> on the next screen checked this will be sure to block the IP no matter the connection they are trying to use. Click <strong>next</strong>.</li>
<li><strong>Name the rule</strong> on the next screen something you can remember in case you wish to remove or edit it in the future. Click <strong>finish </strong>and thats it</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://tech.avivo.si/2011/04/how-to-block-remote-ip-address-hacker-attack-on-windows-2008-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to recover Firefox bookmarks, settings and whole profile?</title>
		<link>http://tech.avivo.si/2011/03/how-to-recover-firefox-bookmarks-settings-and-whole-profile/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-recover-firefox-bookmarks-settings-and-whole-profile</link>
		<comments>http://tech.avivo.si/2011/03/how-to-recover-firefox-bookmarks-settings-and-whole-profile/#comments</comments>
		<pubDate>Wed, 09 Mar 2011 15:23:10 +0000</pubDate>
		<dc:creator>Avivo</dc:creator>
				<category><![CDATA[System administration]]></category>
		<category><![CDATA[bookmarks recovery]]></category>
		<category><![CDATA[browsers]]></category>
		<category><![CDATA[favourites]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[recover bookmarks]]></category>
		<category><![CDATA[recover firefox settings]]></category>
		<category><![CDATA[restore firefox bookmarks]]></category>
		<category><![CDATA[web links]]></category>

		<guid isPermaLink="false">http://tech.avivo.si/?p=1223</guid>
		<description><![CDATA[Imagine that you computer crashed (let&#8217;s hope it will not) and be optimistic (that means that you do daily/weekly/monthly backups or your HDD is still alive). Before you reinstall your OS (this tutorial is for Vista and Windows 7) make sure you have backup of your data. Go to this folder of your original (crashed) [...]]]></description>
			<content:encoded><![CDATA[<p>Imagine that you computer crashed (let&#8217;s hope it will not) and be optimistic (that means that you do daily/weekly/monthly backups or your HDD is still alive).</p>
<ol>
<li>Before you reinstall your OS (this tutorial is for Vista and Windows 7) make sure you have backup of your data.</li>
<li>Go to this folder of your original (crashed) system and copy all from it to some folder in your new OS filesystem:<br />
<strong>C:\Users\[SOME_USER]\AppData\Roaming\Mozilla\Firefox\Profiles\[SOME_RANDOM_CODE].default\</strong></p>
<p>where:<br />
<strong>[SOME_USER]</strong> is your current logged user&#8217;s username<br />
<strong>[SOME_RANDOM_CODE]</strong> &#8211; some random Firefox profile code like: <strong>mhwibcep.default</strong></li>
<li>Now, go to the new Firefox folder on your reinstalled OS:<br />
<strong>C:\Users\[SOME_USER]\AppData\Roaming\Mozilla\Firefox\Profiles\[OTHER_RANDOM_CODE].default\</strong></p>
<p>where:<br />
<strong>[SOME_USER]</strong> is your current logged user&#8217;s username<br />
<strong>[</strong><strong>OTHER_RANDOM_CODE</strong><strong>]</strong> &#8211; some other random Firefox profile code from your new Firefox installation like: <strong>bbtibcep.default</strong></li>
<li>Copy all files from <strong>Step 2</strong> into <strong>Step 3</strong></li>
</ol>
<p>Happy surfing!</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.avivo.si/2011/03/how-to-recover-firefox-bookmarks-settings-and-whole-profile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Import/Export DNS zones from DNS Manager in Windows 2008 R2</title>
		<link>http://tech.avivo.si/2011/02/importexport-dns-zones-from-dns-manager-in-windows-2008-r2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=importexport-dns-zones-from-dns-manager-in-windows-2008-r2</link>
		<comments>http://tech.avivo.si/2011/02/importexport-dns-zones-from-dns-manager-in-windows-2008-r2/#comments</comments>
		<pubDate>Mon, 14 Feb 2011 11:02:29 +0000</pubDate>
		<dc:creator>Avivo</dc:creator>
				<category><![CDATA[System administration]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[dns import]]></category>
		<category><![CDATA[dns manager]]></category>
		<category><![CDATA[domain name service]]></category>
		<category><![CDATA[export and import dns zones]]></category>
		<category><![CDATA[export dns listing]]></category>
		<category><![CDATA[windows 2008]]></category>

		<guid isPermaLink="false">http://tech.avivo.si/?p=1207</guid>
		<description><![CDATA[First, you must have installed on your Windows 2008 server DNS Server Role. If you don&#8217;t installed it use this: (Server Manager &#62; Roles Summary &#62; Add Roles &#62; DNS Server) Now, you can start DNS Manager clicking on icon or command %SystemRoot%\system32\mmc.exe %SystemRoot%\system32\dnsmgmt.msc /s Just replace with your values: [your_server_name] - your server name [...]]]></description>
			<content:encoded><![CDATA[<p>First, you must have installed on your Windows 2008 server<strong> DNS Server Role. </strong>If you don&#8217;t installed it use this:</p>
<address>(Server Manager &gt; Roles Summary &gt; Add Roles &gt; DNS Server)</address>
<p>Now, you can start DNS Manager clicking on icon or command <em><strong>%SystemRoot%\system32\mmc.exe %SystemRoot%\system32\dnsmgmt.msc /s</strong></em></p>
<p>Just replace with your values:</p>
<ul>
<li> <strong>[your_server_name] </strong>- your server name</li>
<li><strong>[your_domain_name] </strong>- your domain (must repeat this for every domain &#8211; Export and Import)</li>
<li><strong>[your_primary_ip] </strong>- because we were importing secondary zones, we needed to specify primary IP address (primary zone)</li>
<li><strong>[your_custom_folder] </strong>- your custom folder where yo want to move exported domains and to import from</li>
</ul>
<h3><strong>EXPORT SPECIFIC DNS ZONE</strong></h3>
<pre>dnscmd [your_server_name] /ZoneExport [your_domain_name] [your_domain_name].txt</pre>
<pre>move /Y c:\Windows\System32\dns\[your_domain_name].txt [your_custom_folder]</pre>
<h3><strong>IMPORT SPECIFIC DNS ZONE</strong></h3>
<pre>move /Y [your_custom_folder]\[your_domain_name].txt c:\Windows\System32\dns\</pre>
<pre>dnscmd [your_server_name] /ZoneAdd [your_domain_name] /Secondary
             [your_primary_ip] /file [your_domain_name].txt /load</pre>
]]></content:encoded>
			<wfw:commentRss>http://tech.avivo.si/2011/02/importexport-dns-zones-from-dns-manager-in-windows-2008-r2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Save HDD space &#8211; delete Visual Studio ReflectedSchemas</title>
		<link>http://tech.avivo.si/2011/02/save-hdd-space-delete-visual-studio-reflectedschemas/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=save-hdd-space-delete-visual-studio-reflectedschemas</link>
		<comments>http://tech.avivo.si/2011/02/save-hdd-space-delete-visual-studio-reflectedschemas/#comments</comments>
		<pubDate>Sat, 12 Feb 2011 07:23:23 +0000</pubDate>
		<dc:creator>Avivo</dc:creator>
				<category><![CDATA[System administration]]></category>
		<category><![CDATA[folder reflected schemas]]></category>
		<category><![CDATA[ReflectedSchemas]]></category>
		<category><![CDATA[visual studio 2008]]></category>
		<category><![CDATA[xsd scheme]]></category>

		<guid isPermaLink="false">http://tech.avivo.si/?p=1200</guid>
		<description><![CDATA[You can use WinDirStat to see what is filling your HDD&#8230; You can find out that this folder can be really big &#8211; Schemas for Visual Studio 2008. We delete this folder and after restarting VS2008 some schemas rebuilded and we didn&#8217;t get any problems, but saved 10GB! These folders can be cleare C:\Users\&#8230;\AppData\Roaming\Microsoft\VisualStudio\9.0\ReflectedSchemas (Visual [...]]]></description>
			<content:encoded><![CDATA[<p>You can use <a href="http://sourceforge.net/projects/windirstat/" target="_blank">WinDirStat </a>to see what is filling your HDD&#8230;</p>
<p>You can find out that this folder can be really big &#8211; Schemas for Visual Studio 2008. We delete this folder and after restarting VS2008 some schemas rebuilded and we didn&#8217;t get any problems, but saved 10GB!</p>
<p>These folders can be cleare</p>
<ul>
<li><strong>C:\Users\&#8230;\AppData\Roaming\Microsoft\VisualStudio\9.0\ReflectedSchemas</strong> (Visual Studio 2008 xsd files)<strong><br />
</strong></li>
<li><strong>C:\Users\&#8230;\AppData\Local\Nikon\Capture NX\ThumbnailCache</strong> (if you use Nikon Capture programme you got with you digital camera)</li>
<li>You can also turn hibernation feature by using command from DOS prompt (Run as Administrator):<strong> </strong><code><strong>powercfg -h off</strong> </code>and you can turn it on anytime by <strong><code>powercfg -h on</code> </strong><code></code></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://tech.avivo.si/2011/02/save-hdd-space-delete-visual-studio-reflectedschemas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SLEEP/WAIT command in BATCH file</title>
		<link>http://tech.avivo.si/2010/12/sleepwait-command-in-batch-file/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sleepwait-command-in-batch-file</link>
		<comments>http://tech.avivo.si/2010/12/sleepwait-command-in-batch-file/#comments</comments>
		<pubDate>Fri, 17 Dec 2010 01:42:48 +0000</pubDate>
		<dc:creator>Avivo</dc:creator>
				<category><![CDATA[System administration]]></category>
		<category><![CDATA[batch command]]></category>
		<category><![CDATA[batch file]]></category>
		<category><![CDATA[dos]]></category>
		<category><![CDATA[dos execution]]></category>
		<category><![CDATA[sleep]]></category>
		<category><![CDATA[sleep or wait command in batch file]]></category>
		<category><![CDATA[time delay in batch file]]></category>
		<category><![CDATA[wait]]></category>

		<guid isPermaLink="false">http://tech.avivo.si/?p=992</guid>
		<description><![CDATA[The most popular way to do it is by ping: ping 1.1.1.1 -n NumberOfRetries -w TimeToWaitBetweenTries so that it waits for approximately (NumberOfRetries) multiplied by (TimeToWaitBetweenTries) milliseconds. If you want to suppress the output to the screen, just redirect it like this: ping 1.1.1.1 -n 3 -w 1000 > null]]></description>
			<content:encoded><![CDATA[<p>The most popular way to do it is by <strong>ping</strong>:</p>
<div style="margin-top:20px; margin-bottom:20px;">
<pre class=csharp>
ping 1.1.1.1 -n NumberOfRetries -w TimeToWaitBetweenTries
</pre>
</div>
<p>so that it waits for approximately (<strong>NumberOfRetries</strong>) multiplied by (<strong>TimeToWaitBetweenTries</strong>) milliseconds.</p>
<p>If you want to suppress the output to the screen, just redirect it like this:</p>
<div style="margin-top:20px; margin-bottom:20px;">
<pre class=csharp>
ping 1.1.1.1 -n 3 -w 1000 > null
</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://tech.avivo.si/2010/12/sleepwait-command-in-batch-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compiler Error Message: CS0016: Could not write to output file &#8211; Temporary ASP.NET Files &#8211; Access is denied</title>
		<link>http://tech.avivo.si/2010/11/compiler-error-message-cs0016-could-not-write-to-output-file-temporary-asp-net-files-access-is-denied/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=compiler-error-message-cs0016-could-not-write-to-output-file-temporary-asp-net-files-access-is-denied</link>
		<comments>http://tech.avivo.si/2010/11/compiler-error-message-cs0016-could-not-write-to-output-file-temporary-asp-net-files-access-is-denied/#comments</comments>
		<pubDate>Thu, 11 Nov 2010 13:30:31 +0000</pubDate>
		<dc:creator>Avivo</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[System administration]]></category>
		<category><![CDATA[Access is denied]]></category>
		<category><![CDATA[App_GlobalResources.xxxxxxx.dll]]></category>
		<category><![CDATA[Compiler Error Message]]></category>
		<category><![CDATA[CS0016: Could not write to output file]]></category>
		<category><![CDATA[iis 7 error]]></category>
		<category><![CDATA[iis error]]></category>
		<category><![CDATA[v2.0.50727\Temporary ASP.NET Files]]></category>

		<guid isPermaLink="false">http://tech.avivo.si/?p=808</guid>
		<description><![CDATA[Everything was working perfectly and then suddenly during ASP.NET (MVC) development you got this error from your IIS 7 server (in our case from Windows 7 64-bit): Compiler Error Message: CS0016: Could not write to output file ‘c:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\myapp\xxxxx\xxxxx\App_GlobalResources.xxxxxxx.dll’ — &#8216;Access is denied.&#8217; So, what goes wrong? You don&#8217;t know because it was working [...]]]></description>
			<content:encoded><![CDATA[<p>Everything was working perfectly and then suddenly during ASP.NET (MVC) development you got this error from your IIS 7 server (in our case from Windows 7 64-bit):<br />
<strong><span style="color: #ff0000;">Compiler Error Message: CS0016: Could not write to output file ‘c:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\myapp\xxxxx\xxxxx\App_GlobalResources.xxxxxxx.dll’ — &#8216;Access is denied.&#8217;</span></strong><br />
So, what goes wrong? You don&#8217;t know because it was working perfectly previous day, it is also compiles OK but not working anymore on your IIS webserver and, all you got, is yellow screen with this error message.</p>
<h4 style="margin-bottom: 25px;"><strong>We searched a little bit and found that the problem appeared because the permission were lost on following Temporary folders:</strong></h4>
<pre style="margin-bottom: 25px;" lang="text">C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\

C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\

C:\Windows\Temp
</pre>
<h4><strong>Recipe</strong></h4>
<ul>
<li>Gave a full permission to NETWORK SERVICE user to these folders (extreme case is to give full permission to Everyone user to these folders &#8211; do this only it doesn&#8217;t work)</li>
<li>Restart IIS using <strong>iisreset </strong>command</li>
</ul>
<p>IIS started to serve pages again&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.avivo.si/2010/11/compiler-error-message-cs0016-could-not-write-to-output-file-temporary-asp-net-files-access-is-denied/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

