mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-18 16:39:03 +02:00
Update the manuals in Docs/
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
## uninstall-skype.ps1 - Uninstalls Skype
|
||||
## The uninstall-skype.ps1 PowerShell Script
|
||||
|
||||
This PowerShell script uninstalls Skype from the local computer.
|
||||
|
||||
@@ -23,4 +23,31 @@ Author: Markus Fleschutz | License: CC0
|
||||
## Related Links
|
||||
https://github.com/fleschutz/PowerShell
|
||||
|
||||
## Source Code
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Uninstalls Skype
|
||||
.DESCRIPTION
|
||||
This PowerShell script uninstalls Skype from the local computer.
|
||||
.EXAMPLE
|
||||
PS> ./uninstall-skype
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
#>
|
||||
|
||||
try {
|
||||
"Uninstalling Skype, please wait..."
|
||||
|
||||
& winget uninstall "Skype"
|
||||
if ($lastExitCode -ne "0") { throw "Can't uninstall Skype, is it installed?" }
|
||||
|
||||
"Skype is uninstalled now."
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
exit 1
|
||||
}
|
||||
|
||||
*Generated by convert-ps2md.ps1 using the comment-based help of uninstall-skype.ps1*
|
||||
|
Reference in New Issue
Block a user