mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-06-18 19:07:04 +02:00
Replace tabs by spaces in meta header
This commit is contained in:
parent
5d372fc184
commit
6efc805a7d
@ -6,7 +6,7 @@
|
|||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param([string]$Path = "", [string]$Password = "")
|
param($Path = "", $Password = "")
|
||||||
|
|
||||||
function EncryptFile {
|
function EncryptFile {
|
||||||
<#
|
<#
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-current-timezone.ps1
|
.SYNTAX ./list-current-timezone.ps1
|
||||||
.DESCRIPTION lists the current time zone details
|
.DESCRIPTION lists the details of the current time zone
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-drives.ps1
|
.SYNTAX ./list-drives.ps1
|
||||||
.DESCRIPTION lists all drives
|
.DESCRIPTION lists all drives connected to the computer
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Start-Process "mailto:markus@fleschutz.de"
|
start-process "mailto:markus@fleschutz.de"
|
||||||
exit 0
|
exit 0
|
||||||
} catch {
|
} catch {
|
||||||
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#Requires -RunAsAdministrator
|
#Requires -RunAsAdministrator
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Stop-Computer
|
stop-computer
|
||||||
exit 0
|
exit 0
|
||||||
} catch {
|
} catch {
|
||||||
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#Requires -RunAsAdministrator
|
#Requires -RunAsAdministrator
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Restart-Computer
|
restart-computer
|
||||||
exit 0
|
exit 0
|
||||||
} catch {
|
} catch {
|
||||||
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
@ -12,7 +12,7 @@ try {
|
|||||||
|
|
||||||
copy-item "$PathToRepo/Scripts/my-profile.ps1" "$PathToProfile" -force
|
copy-item "$PathToRepo/Scripts/my-profile.ps1" "$PathToProfile" -force
|
||||||
|
|
||||||
write-host -foregroundColor green "OK - updated profile 'CurrentUserCurrentHost', gets active on next login"
|
write-host -foregroundColor green "OK - updated profile 'CurrentUserCurrentHost' (gets active on next login)"
|
||||||
exit 0
|
exit 0
|
||||||
} catch {
|
} catch {
|
||||||
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user