<?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>Pario TechnoBlob &#187; Windows</title>
	<atom:link href="http://pario.no/category/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://pario.no</link>
	<description>A cronological documentation test project, nothing serious, really!</description>
	<lastBuildDate>Thu, 02 Feb 2012 13:17:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Disable DLNA in Windows 7</title>
		<link>http://pario.no/2012/01/26/disable-dlna-in-windows-7/</link>
		<comments>http://pario.no/2012/01/26/disable-dlna-in-windows-7/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 21:17:38 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[DLNA]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://pario.no/?p=1691</guid>
		<description><![CDATA[If you are using your Windows 7 and have a active wireless network, then the chances are that you are sharing your media files with DLNA enabled devices like smartphones, TVs with wireless access and media centers. This HOWTO describes how you can disable DLNA in Windows 7. Type &#8220;Manage advanced sharing settings&#8221; in the [...]]]></description>
			<content:encoded><![CDATA[<p>If you are using your Windows 7 and have a active wireless network, then the chances are that you are sharing your media files with DLNA enabled devices like smartphones, TVs with wireless access and media centers.<br />
This HOWTO describes how you can disable DLNA in Windows 7.</p>
<ol>
<li>Type &#8220;Manage advanced sharing settings&#8221; in the Start Menu</li>
<li>Go to &#8220;Home and Work&#8221;</li>
<li>Under &#8220;Media Streaming&#8221; you click the &#8220;Choose media streaming options&#8221; link</li>
<li>Click the &#8220;Block all&#8221; button followed by the &#8220;OK&#8221; button</li>
</ol>
<p>You have now disabled DLNA sharing on your computer.</p>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMTIvMDEvMjYvZGlzYWJsZS1kbG5hLWluLXdpbmRvd3MtNy88d3B0Yj5EaXNhYmxlIERMTkEgaW4gV2luZG93cyA3PHdwdGI%2BaHR0cDovL3BhcmlvLm5vPHdwdGI%2BUGFyaW8gVGVjaG5vQmxvYg%3D%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2012/01/26/disable-dlna-in-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows grep command alternative</title>
		<link>http://pario.no/2011/09/14/windows-grep-command-alternative/</link>
		<comments>http://pario.no/2011/09/14/windows-grep-command-alternative/#comments</comments>
		<pubDate>Wed, 14 Sep 2011 12:54:29 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[findstr]]></category>
		<category><![CDATA[grep]]></category>

		<guid isPermaLink="false">http://pario.no/?p=1596</guid>
		<description><![CDATA[grep is a linux console command to print lines matching a line, but Windows does not have the grep command. In Windows you have to use the findstr command in a console window. Example C:\>dir &#124;findstr Windows 13.09.2011 10:41 Windows The findstr command is default case sensitive just like in linux. findstr options C:\>findstr -? [...]]]></description>
			<content:encoded><![CDATA[<p>grep is a linux console command to print lines matching a line, but Windows does not have the grep command.<br />
In Windows you have to use the findstr command in a console window.</p>
<p>Example</p>
<pre>
C:\>dir |findstr Windows
13.09.2011  10:41    <DIR>          Windows</pre>
<p>The findstr command is default case sensitive just like in linux.</p>
<p>findstr options</p>
<pre>
C:\>findstr -?
Searches for strings in files.

FINDSTR [/B] [/E] [/L] [/R] [/S] [/I] [/X] [/V] [/N] [/M] [/O] [/P] [/F:file]
        [/C:string] [/G:file] [/D:dir list] [/A:color attributes] [/OFF[LINE]]
        strings [[drive:][path]filename[ ...]]

  /B         Matches pattern if at the beginning of a line.
  /E         Matches pattern if at the end of a line.
  /L         Uses search strings literally.
  /R         Uses search strings as regular expressions.
  /S         Searches for matching files in the current directory and all
             subdirectories.
  /I         Specifies that the search is not to be case-sensitive.
  /X         Prints lines that match exactly.
  /V         Prints only lines that do not contain a match.
  /N         Prints the line number before each line that matches.
  /M         Prints only the filename if a file contains a match.
  /O         Prints character offset before each matching line.
  /P         Skip files with non-printable characters.
  /OFF[LINE] Do not skip files with offline attribute set.
  /A:attr    Specifies color attribute with two hex digits. See "color /?"
  /F:file    Reads file list from the specified file(/ stands for console).
  /C:string  Uses specified string as a literal search string.
  /G:file    Gets search strings from the specified file(/ stands for console).
  /D:dir     Search a semicolon delimited list of directories
  strings    Text to be searched for.
  [drive:][path]filename
             Specifies a file or files to search.

Use spaces to separate multiple search strings unless the argument is prefixed
with /C.  For example, 'FINDSTR "hello there" x.y' searches for "hello" or
"there" in file x.y.  'FINDSTR /C:"hello there" x.y' searches for
"hello there" in file x.y.

Regular expression quick reference:
  .        Wildcard: any character
  *        Repeat: zero or more occurrences of previous character or class
  ^        Line position: beginning of line
  $        Line position: end of line
  [class]  Character class: any one character in set
  [^class] Inverse class: any one character not in set
  [x-y]    Range: any characters within the specified range
  \x       Escape: literal use of metacharacter x
  \<xyz    Word position: beginning of word
  xyz\>    Word position: end of word

For full information on FINDSTR regular expressions refer to the online Command
Reference.</pre>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMTEvMDkvMTQvd2luZG93cy1ncmVwLWNvbW1hbmQtYWx0ZXJuYXRpdmUvPHdwdGI%2BV2luZG93cyBncmVwIGNvbW1hbmQgYWx0ZXJuYXRpdmU8d3B0Yj5odHRwOi8vcGFyaW8ubm88d3B0Yj5QYXJpbyBUZWNobm9CbG9i";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2011/09/14/windows-grep-command-alternative/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>List installed Windows Updates using WMIC</title>
		<link>http://pario.no/2011/06/19/list-installed-windows-updates-using-wmic/</link>
		<comments>http://pario.no/2011/06/19/list-installed-windows-updates-using-wmic/#comments</comments>
		<pubDate>Sun, 19 Jun 2011 21:27:32 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[MBSA]]></category>
		<category><![CDATA[Windows 2008]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[wmic]]></category>

		<guid isPermaLink="false">http://pario.no/?p=1538</guid>
		<description><![CDATA[I have recently been trying to find a way to export a list of some, but not all installed Windows Updates and patches on a Windows 2008 server. WMIC is a Windows command that has been available in Windows for a long time and has become a tool that can perform many kinds of actions [...]]]></description>
			<content:encoded><![CDATA[<p>I have recently been trying to find a way to export a list of some, but not all installed Windows Updates and patches on a Windows 2008 server. WMIC is a Windows command that has been available in Windows for a long time and has become a tool that can perform many kinds of actions and queries.<br />
Microsoft has created a tool called Microsoft Baseline Security Analyzer that helps you determine the security state in accordance with Microsoft security recommendations and offers specific remediation guidance, but I have not tried it to see if all patches and updates are exported.</p>
<p>Open a Windows Command Prompt (cmd.exe) and type the following command</p>
<pre>
wmic qfe get</pre>
<p>The result presented in plain text</p>
<pre>
Caption                                        CSName    Description      FixComments  HotFixID   InstallDate  InstalledBy          InstalledOn  Name  ServicePackInEffect  Status
http://go.microsoft.com/fwlink/?LinkId=133041  PC-NAME Update                        982861                  pc-name\username      3/20/2011
http://go.microsoft.com/fwlink/?LinkId=161784  PC-NAME Update                        KB971033                NT AUTHORITY\SYSTEM  8/9/2010
http://support.microsoft.com/?kbid=2305420     PC-NAME Security Update               KB2305420               NT AUTHORITY\SYSTEM  12/17/2010
http://support.microsoft.com/?kbid=2393802     PC-NAME Security Update               KB2393802               NT AUTHORITY\SYSTEM  2/10/2011
...</pre>
<p>WMIC can also be used to gather other Windows related information and this is a list with many wmic commands I have copied from <a href="http://tech-wreckblog.blogspot.com/2009/11/wmic-command-line-kung-fu.html">Tech-Wreck InfoSec Blog: WMIC Command Line Kung-Fu</a> in case the site becomes unavailable.<br />
This site has produced <a href="http://blog.commandlinekungfu.com/p/index-of-tips-and-tricks.html">many interesting articles</a> and is well worth a visit. </p>
<table>
<tr>
<th><strong>Description</strong></th>
<th><strong>- Command</strong></th>
</tr>
<tr>
<td><strong>Spot Odd Executables</strong></td>
<td> &#8211; wmic PROCESS WHERE &#8220;NOT ExecutablePath LIKE &#8216;%Windows%&#8217;&#8221; GET ExecutablePath</td>
</tr>
<tr>
<td><strong>Look at services that are set to start automatically</strong></td>
<td> &#8211; wmic SERVICE WHERE StartMode=&#8221;Auto&#8221; GET Name, State</td>
</tr>
<tr>
<td><strong>Find user-created shares (usually not hidden)</strong></td>
<td> &#8211; wmic SHARE WHERE &#8220;NOT Name LIKE &#8216;%$&#8217;&#8221; GET Name, Path</td>
</tr>
<tr>
<td><strong>Find stuff that starts on boot</strong></td>
<td> &#8211; wmic STARTUP GET Caption, Command, User</td>
</tr>
<tr>
<td><strong>Identify any local system accounts that are enabled (guest, etc.)</strong></td>
<td> &#8211; wmic USERACCOUNT WHERE &#8220;Disabled=0 AND LocalAccount=1&#8243; GET Name&#8221;</td>
</tr>
<tr>
<td><strong>Change Start Mode of Service</strong></td>
<td> &#8211; wmic service where (name like &#8220;Fax&#8221; OR name like &#8220;Alerter&#8221;) CALL ChangeStartMode Disabled</td>
</tr>
<tr>
<td><strong>Number of Logons Per USERID</strong></td>
<td> &#8211; wmic netlogin where (name like &#8220;%skodo&#8221;) get numberoflogons</td>
</tr>
<tr>
<td><strong>Obtain a Certain Kind of Event from Eventlog</strong></td>
<td> &#8211; wmic ntevent where (message like &#8220;%logon%&#8221;) list brief</td>
</tr>
<tr>
<td><strong>Clear the Eventlog (Security example)</strong></td>
<td> &#8211; wmic nteventlog where (description like &#8220;%secevent%&#8221;) call cleareventlog</td>
</tr>
<tr>
<td><strong>Get Mac Address</strong></td>
<td> &#8211; wmic nic get macaddress</td>
</tr>
<tr>
<td><strong>Reboot or Shutdown</strong></td>
<td> &#8211; wmic os where buildnumber=&#8221;2600&#8243; call reboot</td>
</tr>
<tr>
<td><strong>Update static IP address</strong></td>
<td> &#8211; wmic nicconfig where index=9 call enablestatic(&#8220;192.168.16.4&#8243;), (&#8220;255.255.255.0&#8243;)</td>
</tr>
<tr>
<td><strong>Change network gateway</strong></td>
<td> &#8211; wmic nicconfig where index=9 call setgateways(&#8220;192.168.16.4&#8243;, &#8220;192.168.16.5&#8243;),(1,2)</td>
</tr>
<tr>
<td><strong>Enable DHCP</strong></td>
<td> &#8211; wmic nicconfig where index=9 call enabledhcp</td>
</tr>
<tr>
<td><strong>Service Management</strong></td>
<td> &#8211; wmic service where caption=&#8221;DHCP Client&#8221; call changestartmode &#8220;Disabled&#8221;</td>
</tr>
<tr>
<td><strong>Start an Application</strong></td>
<td> &#8211; wmic process call create &#8220;calc.exe&#8221;</td>
</tr>
<tr>
<td><strong>Terminate an Application</strong></td>
<td> &#8211; wmic process where name=&#8221;calc.exe&#8221; call terminate</td>
</tr>
<tr>
<td><strong>Change Process Priority</strong></td>
<td> &#8211; wmic process where name=&#8221;explorer.exe&#8221; call setpriority 64</td>
</tr>
<tr>
<td><strong>Get List of Process Identifiers</strong></td>
<td> &#8211; wmic process where (Name=&#8217;svchost.exe&#8217;) get name,processid</p>
<tr>
<td><strong>Information About Harddrives</strong></td>
<td> &#8211; wmic logicaldisk where drivetype=3 get name, freespace, systemname, filesystem, size, volumeserialnumber</td>
</tr>
<tr>
<td><strong>Information about os</strong></td>
<td> &#8211; wmic os get bootdevice,  buildnumber, caption, freespaceinpagingfiles, installdate, name,  systemdrive, windowsdirectory /format:htable &gt; c:\osinfo.htm</td>
</tr>
<tr>
<td><strong>Information about files</strong></td>
<td> &#8211; wmic path cim_datafile where &#8220;Path=&#8217;\\windows\\system32\\wbem\\&#8217; and FileSize&gt;1784088&#8243; &gt; c:\wbemfiles.txt</td>
</tr>
<tr>
<td><strong>Process list</strong></td>
<td> &#8211; wmic process get /format:htable &gt; c:\process.htm</td>
</tr>
<tr>
<td><strong>Retrieve list of warning and error events not from system or security logs</strong></td>
<td> &#8211; WMIC NTEVENT WHERE &#8220;EventType&lt;3 AND LogFile != &#8216;System&#8217; AND  LogFile != &#8216;Security&#8217;&#8221; GET LogFile, SourceName, EventType, Message,  TimeGenerated /FORMAT:&#8221;htable.xsl&#8221;:&#8221; datatype = number&#8221;:&#8221; sortby =  EventType&#8221; &gt; c:\appevent.htm</td>
</tr>
<tr>
<td><strong>Total Hard Drive Space Check</strong></td>
<td> &#8211; wmic LOGICALDISK LIST BRIEF</td>
</tr>
<tr>
<td><strong>Get Running Services Information</strong></td>
<td> &#8211; Wmic service where (state=”running”) get caption, name, startmode, state</td>
</tr>
<tr>
<td><strong>Get Startmode of Services</strong></td>
<td> &#8211; Wmic service get caption, name, startmode, state</td>
</tr>
<tr>
<td><strong>Get Domain Names And When Account PWD set to Expire</strong></td>
<td> &#8211; WMIC UserAccount GET name,PasswordExpires /Value</td>
</tr>
<tr>
<td><strong>Get Hotfix and Security Patch Information</strong></td>
<td> &#8211; WMIC QFE GET /format:CSV &gt;QFE.CSV</td>
</tr>
<tr>
<td><strong>Get Startup List</strong></td>
<td> &#8211; wmic startup list full</td>
</tr>
<tr>
<td><strong>Find a specific Process</strong></td>
<td> &#8211; wmic process list brief<br />
find &#8220;cmd.exe&#8221;</td>
</tr>
<tr>
<td><strong>Get List of IP Interfaces</strong></td>
<td> &#8211; wmic nicconfig where IPEnabled=&#8217;true&#8217;</td>
</tr>
<tr>
<td><strong>Change IP Address</strong></td>
<td> &#8211; wmic nicconfig where Index=1 call EnableStatic (&#8220;10.10.10.10&#8243;), (&#8220;255.255.255.0&#8243;)</td>
</tr>
<tr>
<td><strong>OS/System Report HTML Formatted</strong></td>
<td> &#8211; wmic /output:c:\os.html os get /format:hform</td>
</tr>
<tr>
<td><strong>Products/Programs Installed Report HTML Formatted</strong></td>
<td> &#8211; wmic /output:c:\product.html product get /format:hform</td>
</tr>
<tr>
<td><strong>Services Report on a Remote Machine HTML Formatted </strong></td>
<td>- wmic /output:c:\services.htm /node:server1 service list full / format:htable</td>
</tr>
<tr>
<td><strong>Turn on Remoted Desktop Remotely!</strong></td>
<td> &#8211; Wmic /node:&#8221;servername&#8221; /user:&#8221;user@domain&#8221; /password: &#8220;password&#8221;<br />
RDToggle where ServerName=&#8221;server name&#8221; call SetAllowTSConnections 1</td>
</tr>
<tr>
<td><strong>Get Server Drive Space Usage Remotely</strong></td>
<td> &#8211; WMIC /Node:%%A LogicalDisk Where DriveType=&#8221;3&#8243; Get DeviceID,FileSystem,FreeSpace,Size /Format:csv<br />
MORE /E +2 &gt;&gt; SRVSPACE.CSV</td>
</tr>
<tr>
<td><strong>Get PC Serial Number</strong></td>
<td> - wmic /node:”HOST” bios get serialnumber</td>
</tr>
<tr>
<td><strong>Get PC Product Number</strong></td>
<td> &#8211; wmic /node:”HOST” baseboard get product</td>
</tr>
<tr>
<td><strong>Get Services for Remote Machine in HTML Format</strong></td>
<td> &#8211; wmic /output:c:\services.htm /node:server1 service list full / format:htable</td>
</tr>
</table>
<script type="text/javascript">var wordpress_toolbar_urls = ["http:\/\/tech-wreckblog.blogspot.com\/2009\/11\/wmic-command-line-kung-fu.html","http:\/\/blog.commandlinekungfu.com\/p\/index-of-tips-and-tricks.html"];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMTEvMDYvMTkvbGlzdC1pbnN0YWxsZWQtd2luZG93cy11cGRhdGVzLXVzaW5nLXdtaWMvPHdwdGI%2BTGlzdCBpbnN0YWxsZWQgV2luZG93cyBVcGRhdGVzIHVzaW5nIFdNSUM8d3B0Yj5odHRwOi8vcGFyaW8ubm88d3B0Yj5QYXJpbyBUZWNobm9CbG9i";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2011/06/19/list-installed-windows-updates-using-wmic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NetBackup 7.x port usage</title>
		<link>http://pario.no/2011/06/01/netbackup-7-x-port-usage/</link>
		<comments>http://pario.no/2011/06/01/netbackup-7-x-port-usage/#comments</comments>
		<pubDate>Wed, 01 Jun 2011 10:29:29 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Backup]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[nbu7]]></category>
		<category><![CDATA[netbackup]]></category>
		<category><![CDATA[symantec]]></category>

		<guid isPermaLink="false">http://pario.no/?p=1533</guid>
		<description><![CDATA[If you are unsure what ports Symantec NetBackup 7.x master or media Windows server uses, just open the following file %SYSTEMROOT%\system32\drivers\etc\services The content in this file could be like this if you have not made any changes to the default configuration bpcd 13782/tcp bprd 13720/tcp vnetd 13724/tcp vopied 13783/tcp bpdbm 13721/tcp bpjobd 13723/tcp bpjava-msvc 13722/tcp [...]]]></description>
			<content:encoded><![CDATA[<p>If you are unsure what ports Symantec NetBackup 7.x master or media Windows server uses, just open the following file</p>
<pre>
%SYSTEMROOT%\system32\drivers\etc\services</pre>
<p>The content in this file could be like this if you have not made any changes to the default configuration</p>
<pre>
bpcd		13782/tcp
bprd		13720/tcp
vnetd		13724/tcp
vopied		13783/tcp
bpdbm		13721/tcp
bpjobd		13723/tcp
bpjava-msvc		13722/tcp
NB_dbsrv		13785/tcp
vmd		13701/tcp
tldcd		13711/tcp
tl8cd		13705/tcp
tl4d		13713/tcp
tlmd		13716/tcp
tlhcd		13717/tcp
acsd		13702/tcp</pre>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMTEvMDYvMDEvbmV0YmFja3VwLTcteC1wb3J0LXVzYWdlLzx3cHRiPk5ldEJhY2t1cCA3LnggcG9ydCB1c2FnZTx3cHRiPmh0dHA6Ly9wYXJpby5ubzx3cHRiPlBhcmlvIFRlY2hub0Jsb2I%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2011/06/01/netbackup-7-x-port-usage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clear Read-Only flag on Disk in Windows 7 using Diskpart</title>
		<link>http://pario.no/2011/05/23/clear-read-only-flag-on-disk-in-windows-7-using-diskpart/</link>
		<comments>http://pario.no/2011/05/23/clear-read-only-flag-on-disk-in-windows-7-using-diskpart/#comments</comments>
		<pubDate>Sun, 22 May 2011 22:55:05 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[diskpart]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://pario.no/?p=1519</guid>
		<description><![CDATA[This is a short HOWTO clear the read-only/readonly flag/attribute on a disk in Windows 7 using the diskpart command from a Windows Command Prompt. Warning! Be sure to do this on the right disk since the diskpart command can do serious damage if you run it on the wrong disk. Open a command window by [...]]]></description>
			<content:encoded><![CDATA[<p>This is a short HOWTO clear the read-only/readonly flag/attribute on a disk in Windows 7 using the diskpart command from a Windows Command Prompt.</p>
<p>Warning!<br />
Be sure to do this on the right disk since the diskpart command can do serious damage if you run it on the wrong disk.</p>
<ol>
<li>Open a command window by running the diskpart command from a Command Prompt</li>
<li>Determine which disk you are going to modify:
<li>
<pre>DISKPART&gt; list disk

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online          149 GB  1024 KB
  Disk 1    Online          465 GB   465 GB</pre>
</li>
</li>
<li>Select the disk you are going to modify
<pre>DISKPART&gt; select disk 1</pre>
<p>You have now selected disk 1</p>
<pre>list disk

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online          149 GB  1024 KB
* Disk 1    Online          465 GB   465 GB</pre>
</li>
<li>Clear the Read-Only attribute on the selected disk
<pre>DISKPART&gt; attributes disk clear readonly</pre>
</li>
</ol>
<p>The disk is no longe Read-Only protected.</p>
<p>If you would like to set the disk Read-Only again just do the same procedure and write</p>
<pre>DISKPART&gt; attributes disk set readonly</pre>
<p>in the last operation.</p>
<p>When you are done modifying the disk attributes just issue the exit command</p>
<pre>DISKPART&gt; exit</pre>
<p>and the diskpart windows will be closed.</p>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMTEvMDUvMjMvY2xlYXItcmVhZC1vbmx5LWZsYWctb24tZGlzay1pbi13aW5kb3dzLTctdXNpbmctZGlza3BhcnQvPHdwdGI%2BQ2xlYXIgUmVhZC1Pbmx5IGZsYWcgb24gRGlzayBpbiBXaW5kb3dzIDcgdXNpbmcgRGlza3BhcnQ8d3B0Yj5odHRwOi8vcGFyaW8ubm88d3B0Yj5QYXJpbyBUZWNobm9CbG9i";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2011/05/23/clear-read-only-flag-on-disk-in-windows-7-using-diskpart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

