Useful Commands/Windows only: Difference between revisions

From Fundamental Ramen
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
= List ports listening =
= List ports listening =


<source lang="text">
<syntaxhighlight lang="text">
netstat -an | findstr LISTENING
netstat -an | findstr LISTENING
</source>
</syntaxhighlight>


= Create a Windows To Go for Mac =
= Create a Windows To Go for Mac =


<source lang="text">
<syntaxhighlight lang="text">
diskpart
diskpart
DISKPART> list disk
DISKPART> list disk
Line 25: Line 25:


bcdboot T:\Windows /s S: /f UEFI
bcdboot T:\Windows /s S: /f UEFI
</source>
</syntaxhighlight>


== Problems ==
== Problems ==
Line 31: Line 31:


= Make powershell output in English =
= Make powershell output in English =
<source lang="text">
<syntaxhighlight lang="text">
chcp 437
chcp 437
chcp 65001
chcp 65001
</source>
</syntaxhighlight>


== Shutdown ==
== Shutdown ==
<source lang="text">
<syntaxhighlight lang="text">
shutdown /s
shutdown /s
shutdown /s /t 30
shutdown /s /t 30
</source>
</syntaxhighlight>

Latest revision as of 20:28, 3 April 2025

List ports listening

netstat -an | findstr LISTENING

Create a Windows To Go for Mac

diskpart
DISKPART> list disk
DISKPART> select disk 0
DISKPART> convert gpt
DISKPART> create partition efi size=300
DISKPART> format quick fs=fat32
DISKPART> assign letter=s
DISKPART> create partition primary size=184320
DISKPART> format quick fs=ntfs
DISKPART> assign letter=t
DISKPART> create partition primary
DISKPART> format quick fs=ntfs
DISKPART> exit

dism /apply-image /imagefile:D:\sources\install.wim /index:1 /applydir:T:\

bcdboot T:\Windows /s S: /f UEFI

Problems

  • VirtualBox USB 3.0 is not stable for External Disk

Make powershell output in English

chcp 437
chcp 65001

Shutdown

shutdown /s
shutdown /s /t 30