<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.itcollege.ee/index.php?action=history&amp;feed=atom&amp;title=Skript%2C_mis_teeb_sama_mis_WinToFLash</id>
	<title>Skript, mis teeb sama mis WinToFLash - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.itcollege.ee/index.php?action=history&amp;feed=atom&amp;title=Skript%2C_mis_teeb_sama_mis_WinToFLash"/>
	<link rel="alternate" type="text/html" href="https://wiki.itcollege.ee/index.php?title=Skript,_mis_teeb_sama_mis_WinToFLash&amp;action=history"/>
	<updated>2026-05-06T02:09:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wiki.itcollege.ee/index.php?title=Skript,_mis_teeb_sama_mis_WinToFLash&amp;diff=48157&amp;oldid=prev</id>
		<title>Rlehiste at 06:12, 15 May 2012</title>
		<link rel="alternate" type="text/html" href="https://wiki.itcollege.ee/index.php?title=Skript,_mis_teeb_sama_mis_WinToFLash&amp;diff=48157&amp;oldid=prev"/>
		<updated>2012-05-15T06:12:39Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:12, 15 May 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l14&quot;&gt;Line 14:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 14:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   Muutmise kuup2ev 15.05.201&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   Muutmise kuup2ev 15.05.201&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;.LINK&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;.LINK&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;http&lt;/del&gt;://wiki.itcollege.ee&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;https&lt;/ins&gt;://wiki.itcollege.ee&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;/index.php/Skript,_mis_teeb_sama_mis_WinToFLash&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;.PROBLEMS&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;.PROBLEMS&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   Ei pruugi toimida kõikide USB 2.0 pulkadega.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   Ei pruugi toimida kõikide USB 2.0 pulkadega.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key ico_mediawiki-ITK_:diff:1.41:old-48156:rev-48157:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Rlehiste</name></author>
	</entry>
	<entry>
		<id>https://wiki.itcollege.ee/index.php?title=Skript,_mis_teeb_sama_mis_WinToFLash&amp;diff=48156&amp;oldid=prev</id>
		<title>Rlehiste at 06:10, 15 May 2012</title>
		<link rel="alternate" type="text/html" href="https://wiki.itcollege.ee/index.php?title=Skript,_mis_teeb_sama_mis_WinToFLash&amp;diff=48156&amp;oldid=prev"/>
		<updated>2012-05-15T06:10:52Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:10, 15 May 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l5&quot;&gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  Loob bootiva usb pulga kust on võimalik installida windowsi 7 ja 8&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  Loob bootiva usb pulga kust on võimalik installida windowsi 7 ja 8&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;.DESCRIPTION&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;.DESCRIPTION&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   Vajalik USB pulga suurus vähemalt 4 GB&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   Vajalik USB pulga suurus vähemalt 4 GB &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ja Windows 7 või 8 plaat või mounditud image&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   Windows peab olema sama arhitektuuriga, mis etteantav windowsi plaat. Näiteks Windows 64-bit ja cd 64-bit&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   Windows peab olema sama arhitektuuriga, mis etteantav windowsi plaat. Näiteks Windows 64-bit ja cd 64-bit&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;.Example&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;.Example&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l58&quot;&gt;Line 58:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 58:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     $usb = (Get-WmiObject -Class win32_logicaldisk | where { $_.driveType -eq 2 } | where { $_.Size -gt 0 } | select -First 1 )&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     $usb = (Get-WmiObject -Class win32_logicaldisk | where { $_.driveType -eq 2 } | where { $_.Size -gt 0 } | select -First 1 )&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     $a = new-object -comobject wscript.shell      &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     $a = new-object -comobject wscript.shell      &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     if (!$usb){&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     if (!$usb){&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         $vastus = $a.popup(&amp;quot;Ei leitud USB pulka&amp;quot;,0,&amp;quot;!!ERROR!!&amp;quot;,5)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         $vastus = $a.popup(&amp;quot;Ei leitud USB pulka&amp;quot;,0,&amp;quot;!!ERROR!!&amp;quot;,5)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key ico_mediawiki-ITK_:diff:1.41:old-48155:rev-48156:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Rlehiste</name></author>
	</entry>
	<entry>
		<id>https://wiki.itcollege.ee/index.php?title=Skript,_mis_teeb_sama_mis_WinToFLash&amp;diff=48155&amp;oldid=prev</id>
		<title>Rlehiste: Created page with &#039;==Skript== &lt;source lang=&quot;powershell&quot;&gt; &lt;# .SYNOPSIS  Loob bootiva usb pulga kust on võimalik installida windowsi 7 ja 8 .DESCRIPTION   Vajalik USB pulga suurus vähemalt 4 GB.   …&#039;</title>
		<link rel="alternate" type="text/html" href="https://wiki.itcollege.ee/index.php?title=Skript,_mis_teeb_sama_mis_WinToFLash&amp;diff=48155&amp;oldid=prev"/>
		<updated>2012-05-15T06:09:17Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;==Skript== &amp;lt;source lang=&amp;quot;powershell&amp;quot;&amp;gt; &amp;lt;# .SYNOPSIS  Loob bootiva usb pulga kust on võimalik installida windowsi 7 ja 8 .DESCRIPTION   Vajalik USB pulga suurus vähemalt 4 GB.   …&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Skript==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;powershell&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;#&lt;br /&gt;
.SYNOPSIS&lt;br /&gt;
 Loob bootiva usb pulga kust on võimalik installida windowsi 7 ja 8&lt;br /&gt;
.DESCRIPTION&lt;br /&gt;
  Vajalik USB pulga suurus vähemalt 4 GB.&lt;br /&gt;
  Windows peab olema sama arhitektuuriga, mis etteantav windowsi plaat. Näiteks Windows 64-bit ja cd 64-bit&lt;br /&gt;
.Example&lt;br /&gt;
  C:\PS&amp;gt;.\windowsalmighty.ps1 &lt;br /&gt;
.NOTES&lt;br /&gt;
  Autor: Rauno Lehiste &lt;br /&gt;
  Versioon: 0.1&lt;br /&gt;
  Muutmise kuup2ev 15.05.201&lt;br /&gt;
.LINK&lt;br /&gt;
  http://wiki.itcollege.ee&lt;br /&gt;
.PROBLEMS&lt;br /&gt;
  Ei pruugi toimida kõikide USB 2.0 pulkadega.&lt;br /&gt;
  Kui UBS pulgal on juba eelnevalt NTFS ja bootable, ei suuda bootsect.exe oma tööd teha&lt;br /&gt;
#&amp;gt;&lt;br /&gt;
function otsi( $path ) {     &lt;br /&gt;
    $object = New-Object -comObject Shell.Application  &lt;br /&gt;
    $popup = new-object -comobject wscript.shell&lt;br /&gt;
    $folder = $object.BrowseForFolder(0, &amp;#039;Kus asub Windows plaat&amp;#039;, 0, 0 )&lt;br /&gt;
    if ($folder -ne $null) { &lt;br /&gt;
        $asukoht = $folder.self.Path&lt;br /&gt;
         if ((test-path $asukoht\boot) -eq &amp;#039;true&amp;#039;){&lt;br /&gt;
              $path = $path[0]+&amp;#039;:&amp;#039;              &lt;br /&gt;
              $vastus = $popup.popup(&amp;quot;Alustame USB pulga $path formateerimist. Kõik andmed kustutatkse! Jätkame?&amp;quot;,0,&amp;quot;Format&amp;quot;,4)&lt;br /&gt;
              if($vastus -eq 6){           &lt;br /&gt;
                  $format = (Get-WmiObject -Class Win32_Volume -Filter &amp;quot;DriveLetter=&amp;#039;$path&amp;#039;&amp;quot; ). `&lt;br /&gt;
                  Format(&amp;#039;NTFS&amp;#039;,$true,4096,&amp;quot;Windows_Almighty&amp;quot;,$false);&lt;br /&gt;
                  #kui error, peamine probleem EI ole admin.        &lt;br /&gt;
                  if ($format.ReturnValue -eq 3){&lt;br /&gt;
                      $popup.popup(&amp;#039;Esines tõrge. Käivita powershell Run as Adminstrator, ehk aitab&amp;#039;,0,&amp;quot;!!ERROR!!&amp;quot;,0)&lt;br /&gt;
                  }&lt;br /&gt;
                 else{&lt;br /&gt;
                     $cp = $asukoht&lt;br /&gt;
                     if ($asukoht.EndsWith(&amp;#039;\&amp;#039;) -eq &amp;#039;true&amp;#039;){&lt;br /&gt;
                        $asukoht = $asukoht+&amp;#039;boot\&amp;#039;&lt;br /&gt;
                     }             &lt;br /&gt;
                     Set-Location $asukoht&lt;br /&gt;
                     bootsect.exe /nt60 $path                     &lt;br /&gt;
                     Set-Location $path&lt;br /&gt;
                     $popup.popup(&amp;quot;Andmeid hakatakse kopeerima. Nüüd läheb kaua aega.(kuni 15min.) Palun ära eemalda arvutist usbd või windowsi plaati&amp;quot;,0,&amp;#039;Selge?&amp;#039;,0)&lt;br /&gt;
                     copy $cp* $path -recurse -force&lt;br /&gt;
                     $popup.popup(&amp;quot;Valmis. Meeldivat kasutamist!&amp;quot;,0,&amp;#039;Valmis&amp;#039;,0)&lt;br /&gt;
                }&lt;br /&gt;
            }&lt;br /&gt;
         }&lt;br /&gt;
         else{&lt;br /&gt;
            otsi ( $path )&lt;br /&gt;
         }&lt;br /&gt;
    }&lt;br /&gt;
} &lt;br /&gt;
&lt;br /&gt;
function check_usb(){&lt;br /&gt;
    $usb = (Get-WmiObject -Class win32_logicaldisk | where { $_.driveType -eq 2 } | where { $_.Size -gt 0 } | select -First 1 )&lt;br /&gt;
    $a = new-object -comobject wscript.shell     &lt;br /&gt;
    &lt;br /&gt;
    if (!$usb){&lt;br /&gt;
        $vastus = $a.popup(&amp;quot;Ei leitud USB pulka&amp;quot;,0,&amp;quot;!!ERROR!!&amp;quot;,5)&lt;br /&gt;
        if($vastus -eq 4){&lt;br /&gt;
            check_usb&lt;br /&gt;
        }&lt;br /&gt;
        else{&lt;br /&gt;
           break&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    else{&lt;br /&gt;
        $usb.DeviceID&lt;br /&gt;
    }    &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
$a = new-object -comobject wscript.shell &lt;br /&gt;
$vastus = $a.popup(&amp;quot;Antud skript loob bootiva usb mille pealt saab paigaldada Windows 7 ja 8. Olenevalt Teie etteantud Windowsi plaadist. Lisaks peab teie hetkel kasutatav operatsioonisüsteem olema Windows 7 ja sama arhitektuuriga mis Windowsi plaat. Katsetatud on ainult USB 2.0 pulik. Kas soovid jätkata?&amp;quot;, ` &lt;br /&gt;
                    0,&amp;quot;USB almighty v0.1&amp;quot;,4) &lt;br /&gt;
if ($vastus -eq 6) { &lt;br /&gt;
        $check = check_usb&lt;br /&gt;
        otsi ($check)&lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: Skriptimiskeeled]]&lt;/div&gt;</summary>
		<author><name>Rlehiste</name></author>
	</entry>
</feed>