https://helpx.adobe.com/acrobat/kb/unable-to-install-pdf-printer-certificate-revoked-port-unknown.html
echo 드라이브 찾기
dism /online /get-drivers /format:table
echo 삭제
pnputil -d oem?.inf
드라이버 패키지를 삭제하지 못함: 지정한 INF를 사용하는 하나 이상의 장치가 현재 설치되어 있습니다.
echo https://kspl.tistory.com/5
echo 삭제 안되는 경우 강제 삭제
pnputil -d oem?.inf -f
pnputil -d oem0.inf -f
pnputil -d oem1.inf -f
pnputil -e
pnputil /enum-devices /drivers
pnputil /enum-devices /drivers > d:\install_drivers.txt
pnputil /disable-device "SWD\PRINTENUM\{677E2314-E4FF-4126-B216-3C067E7F6D59}"
pnputil /remove-device "SWD\PRINTENUM\{677E2314-E4FF-4126-B216-3C067E7F6D59}"
프린터나 그런 것은 그냥 삭제 하는 것이 좋다
아래는 다른 것 입니다.
https://answers.microsoft.com/en-us/windows/forum/all/how-to-add-or-reinstall-the-microsoft-pdf-printer/a473357b-8a8f-44fe-ba3a-9680b6bdfa79
echo 사용안함
dism /Online /Disable-Feature /FeatureName:"Printing-PrintToPDFServices-Features" /NoRestart
echo 사용함
dism /Online /Enable-Feature /FeatureName:"Printing-PrintToPDFServices-Features" /NoRestart
https://www.tenforums.com/tutorials/66132-add-remove-microsoft-print-pdf-printer-windows-10-a.html
printui.exe /dl /n "Microsoft Print to PDF"
Remove-Printer -Name "Microsoft Print to PDF"
https://www.raymond.cc/blog/add-or-remove-windows-features-through-the-command-prompt/
get-windowsoptionalfeature -online | ft | more > d:\get-windowsoptionalfeature.txt
disable-windowsoptionalfeature -online -featureName Printing-XPSServices-Features
disable-windowsoptionalfeature -online -featureName Printing-PrintToPDFServices-Features
disable-windowsoptionalfeature -online -featureName
https://stackoverflow.com/questions/60609574/how-to-enable-wcf-services-on-windows-10-with-powershell
아쉽게 아래 명령어는 되지 않는다. 모두 켜기는 되지만 모두 끄기 기능증 지원 하지 않는다 -_-;;
echo 우리는 비활성 해야 하니 반대로 하기 IIS 모두 Enable 되어 있으면 Disabled 비활성 하기
Get-WindowsOptionalFeature -Online | Where-Object {$_.State -like "Enable" -and $_.FeatureName -like "*IIS*"} | % {Disabled-WindowsOptionalFeature -Online -FeatureName $_.FeatureName -All}
echo 드디어 성공 ㅎㅎ 올래~! 이렇게 하면 된다.
Get-WindowsOptionalFeature -Online | Where-Object {$_.State -like "Enabled" -and $_.FeatureName -like "*Printing*"} | % {disable-windowsoptionalfeature -online -featureName $_.FeatureName}
echo -NoRestart를 해야 물어 보지 않는다 자꾸 물어봄 ㅎ
Get-WindowsOptionalFeature -Online | Where-Object {$_.State -like "Enabled" -and $_.FeatureName -like "MediaPlayback"} | % {disable-windowsoptionalfeature -online -featureName $_.FeatureName -NoRestart}
Get-WindowsOptionalFeature -Online | Where-Object {$_.State -like "Enabled" -and $_.FeatureName -like "WindowsMediaPlayer"} | % {disable-windowsoptionalfeature -online -featureName $_.FeatureName -NoRestart}
Get-WindowsOptionalFeature -Online | Where-Object {$_.State -like "Enabled" -and $_.FeatureName -like "*Printing*"} | % {disable-windowsoptionalfeature -online -featureName $_.FeatureName -NoRestart}
Get-WindowsOptionalFeature -Online | Where-Object {$_.State -like "Enabled" -and $_.FeatureName -like "*SMB1*"} | % {disable-windowsoptionalfeature -online -featureName $_.FeatureName -NoRestart}
Get-WindowsOptionalFeature -Online | Where-Object {$_.State -like "Enabled" -and $_.FeatureName -like "*Internet-Explorer*"} | % {disable-windowsoptionalfeature -online -featureName $_.FeatureName -NoRestart}
Get-WindowsOptionalFeature -Online | Where-Object {$_.State -like "Enabled" -and $_.FeatureName -like "*MSRDC*"} | % {disable-windowsoptionalfeature -online -featureName $_.FeatureName -NoRestart}
Get-WindowsOptionalFeature -Online | Where-Object {$_.State -like "Enabled" -and $_.FeatureName -like "*WorkFolders*"} | % {disable-windowsoptionalfeature -online -featureName $_.FeatureName -NoRestart}
첫댓글 Get-WindowsOptionalFeature -Online | Where-Object {$_.State -like "Disabled" -and $_.FeatureName -like "WCF"} | % {Enable-WindowsOptionalFeature -Online -FeatureName $_.FeatureName -All}
https://learn.microsoft.com/en-us/powershell/module/dism/get-windowsoptionalfeature?view=windowsserver2022-ps
여기서 Enabled가 맞다
Enable는 틀리다 이미 실행 하고 있는 거라서.
Get-WindowsOptionalFeature -Online | Where-Object {$_.State -like "Enabled" -and $_.FeatureName -like "*Printing*"} | % {disable-windowsoptionalfeature -online -featureName $_.FeatureName}