mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-22 07:53:21 +01:00
Updated the scripts
This commit is contained in:
parent
68decf6c89
commit
b9153cd5da
@ -1,26 +1,26 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Launches the Visual Studio app
|
Launches Visual Studio
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
This script launches the Microsoft Visual Studio application.
|
This PowerShell script launches the Microsoft Visual Studio application.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./open-visual-studio
|
PS> ./open-visual-studio.ps1
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
Author: Markus Fleschutz | License: CC0
|
Author: Markus Fleschutz | License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
function TryLaunching { param($Path)
|
function tryToLaunch { param($filePath)
|
||||||
if (test-path "$Path" -pathType leaf) {
|
if (Test-Path "$filePath" -pathType leaf) {
|
||||||
start-process "$Path"
|
Start-Process "$filePath"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
TryLaunching "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe"
|
tryToLaunch "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe"
|
||||||
TryLaunching "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe"
|
tryToLaunch "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
@ -1,4 +1,17 @@
|
|||||||
"Removing System Applications..."
|
<#
|
||||||
|
.SYNOPSIS
|
||||||
|
Uninstalls bloatware
|
||||||
|
.DESCRIPTION
|
||||||
|
This PowerShell script uninstalls unnecessary software and applications.
|
||||||
|
.EXAMPLE
|
||||||
|
PS> ./uninstall-bloatware.ps1
|
||||||
|
.LINK
|
||||||
|
https://github.com/fleschutz/PowerShell
|
||||||
|
.NOTES
|
||||||
|
Author: Markus Fleschutz | License: CC0
|
||||||
|
#>
|
||||||
|
|
||||||
|
"⏳ (1/3) Removing System Applications..."
|
||||||
winget uninstall 'OMEN Audio Control'
|
winget uninstall 'OMEN Audio Control'
|
||||||
winget uninstall 'OMEN Gaming Hub'
|
winget uninstall 'OMEN Gaming Hub'
|
||||||
winget uninstall 'Clipchamp'
|
winget uninstall 'Clipchamp'
|
||||||
@ -32,14 +45,14 @@ winget uninstall 'Microsoft Teams'
|
|||||||
winget uninstall 'Mail and Calendar'
|
winget uninstall 'Mail and Calendar'
|
||||||
winget uninstall 'Snipping Tool'
|
winget uninstall 'Snipping Tool'
|
||||||
|
|
||||||
"Removing Xbox associated applications..."
|
"⏳ (2/3) Removing Xbox associated applications..."
|
||||||
winget uninstall 'Xbox'
|
winget uninstall 'Xbox'
|
||||||
winget uninstall 'Xbox TCUI'
|
winget uninstall 'Xbox TCUI'
|
||||||
winget uninstall 'Xbox Game Bar Plugin'
|
winget uninstall 'Xbox Game Bar Plugin'
|
||||||
winget uninstall 'Xbox Identity Provider'
|
winget uninstall 'Xbox Identity Provider'
|
||||||
winget uninstall 'Xbox Game Speech Window'
|
winget uninstall 'Xbox Game Speech Window'
|
||||||
|
|
||||||
"Removing miscellaneous Apps that crowd the Start Menu..."
|
"⏳ (3/3) Removing miscellaneous Apps that crowd the Start Menu..."
|
||||||
winget uninstall 'Spotify Music'
|
winget uninstall 'Spotify Music'
|
||||||
winget uninstall 'Messenger'
|
winget uninstall 'Messenger'
|
||||||
winget uninstall 'Instagram'
|
winget uninstall 'Instagram'
|
||||||
@ -48,4 +61,5 @@ winget uninstall 'Netflix'
|
|||||||
winget uninstall 'LinkedIn'
|
winget uninstall 'LinkedIn'
|
||||||
winget uninstall 'Prime Video for Windows'
|
winget uninstall 'Prime Video for Windows'
|
||||||
|
|
||||||
|
"✔️ Finished"
|
||||||
exit 0 # success
|
exit 0 # success
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Writes an ASCII image
|
Writes an ASCII image
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
This PowerShell script writes an animated Mandelbrot fractal.
|
This PowerShell script writes an animated Mandelbrot fractal.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./write-fractal
|
PS> ./write-fractal.ps1
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
|
Loading…
Reference in New Issue
Block a user