This commit is contained in:
Stian 2025-01-22 17:21:16 +01:00
parent 5fd37353ab
commit d1cd4ebae9
3 changed files with 8 additions and 6 deletions

View File

@ -1,6 +1,6 @@
# Get-AppxPackage, Get-AppxProvisionedPackage
Write-Output "AppxPackage"
Write-Output " AppxPackages"
Write-Output "======================"
#Get-AppxPackage -AllUsers
@ -8,10 +8,10 @@ Get-AppxPackage -Allusers * | Select Name, PackageFullName
#Get-AppxPackage *Windows.DevHome* | Remove-AppxPackage
#Get-AppxPackage -AllUsers -PackageTypeFilter Bundle -Name "*Windows.DevHome*" | Remove-AppxPackage
#Get-appxprovisionedpackage -online | where-object {$_.packagename -like '*Windows.DevHome*'} | remove-appxprovisionedpackage -online
#Get-appxProvisionedPackage -online | where-object {$_.packagename -like '*Windows.DevHome*'} | remove-appxprovisionedpackage -online
Write-Output "AppxProvisionedPackage"
Write-Output "======================"
Write-Output "AppxProvisionedPackages"
Write-Output "======================="
Get-AppxProvisionedPackage -online | select PackageName

View File

@ -10,7 +10,9 @@ SVCL="/d/bin/NirsoftLauncher/NirSoft/svcl.exe"
RENDER_DEVICES=$($SVCL /scomma | grep "Device,Render" | cut -d "," -f1)
if [ $# -eq 0 ]; then
echo -e "Available audio devices:\n$RENDER_DEVICES"
echo "Usage: $(basename $0) [devicename]"
echo "Available audio devices:"
echo "$RENDER_DEVICES"
exit 0;
fi

View File

@ -37,7 +37,7 @@ if [[ ! -f "$input" ]]; then
fi
# Fix paths for Cygwin and create working directory
if [[ "$(uname -o)" == "Cygwin" ]]; then
if [[ "$(uname)" == *"CYGWIN"* ]]; then
# Use Windows-compatible directories for Cygwin
input=$(cygpath -w "$input")
output=$(cygpath -w "$output")