add Get-Feierabend

master
lub 5 years ago
parent c71bf5a06e
commit 67671dcdfd

@ -38,6 +38,27 @@ function Get-BetterADUser {
Get-ADUser -Filter $filter -Server $Server
}
function Get-Feierabend {
param (
[Parameter(Position = 0)]
[datetime]
$Begin,
[Parameter(Position = 1)]
[datetime]
$PauseStart,
[Parameter(Position = 2)]
[datetime]
$PauseEnd,
[Parameter(Position = 3)]
[single]
$Hours = 6.5
)
$Begin.AddHours($Hours).Add($PauseEnd - $PauseStart)
}
function fsh {
param (
[string]$ComputerName

Loading…
Cancel
Save