This file contains hidden or 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
Function New-PopsFakeProgram { | |
<# | |
.SYNOPSIS | |
Add a fake program to programs & features | |
.DESCRIPTION | |
Add a fake program to programs & features | |
.PARAMETER Name | |
The internal name | |
.PARAMETER DisplayName | |
The name that should be shown |
This file contains hidden or 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
$useHttps = $false | |
$serverAddress = "demo.booksonic.org" | |
$serverPort = "80" | |
$adminUsername = "" | |
$adminPassword = "" | |
$csvPath = "C:\path\to\users.csv" | |
$csvDelimiter = ";" #Change to , if that is what your csv use. Excel usually uses ; |
This file contains hidden or 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
copype amd64 C:\WinPE_amd64 | |
dism /Mount-Image /ImageFile:C:\WinPE_amd64\media\sources\boot.wim /index:1 /MountDir:C:\WinPE_amd64\mount | |
dism /Image:C:\WinPE_amd64\mount /Set-InputLocale:041d:0000041d | |
dism /image:C:\winpe_amd64\mount /add-package /packagepath:"\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-WMI.cab" | |
dism /image:C:\winpe_amd64\mount /add-package /packagepath:"\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-NetFX.cab" | |
dism /image:C:\winpe_amd64\mount /add-package /packagepath:"\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-Scripting.cab" |
This file contains hidden or 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 "K:\Ljudbocker" -Recurse -Include *.m4b, *.m4a|ForEach-Object{ | |
$before = $_.FullName | |
$after = $_.FullName.replace($_.Extension, ".mp3") | |
ffmpeg -i $before -acodec libmp3lame $after | |
Rename-Item -Path $before -NewName "$($before).old" | |
#Remove-Item -Path $before | |
} |