This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ChildItem "." | ForEach-Object { Compress-Archive -path $_.Name -destinationPath "$($_.Name).zip"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get the list of all physical disks | |
$physicalDisks = Get-PhysicalDisk | |
# Loop through each physical disk and display its media type, drive letter, and device name | |
foreach ($disk in $physicalDisks) { | |
Write-Output "Device ID: $($disk.DeviceID)" | |
Write-Output "Friendly Name: $($disk.FriendlyName)" | |
Write-Output "Media Type: $($disk.MediaType)" | |
# Get the associated partitions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Windows | |
Thumbs.db | |
ehthumbs.db | |
Desktop.ini | |
$RECYCLE.BIN/ | |
# Node.js | |
node_modules/ | |
npm-debug.log* | |
yarn-debug.log* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer AltTabSettings ([int]1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Disable-NetAdapterBinding -Name "*" -ComponentID ms_tcpip6 |