|
|
@ -38,6 +38,27 @@ function Get-BetterADUser {
|
|
|
|
|
|
|
|
|
|
|
|
Get-ADUser -Filter $filter -Server $Server
|
|
|
|
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 {
|
|
|
|
function fsh {
|
|
|
|
param (
|
|
|
|
param (
|
|
|
|
[string]$ComputerName
|
|
|
|
[string]$ComputerName
|
|
|
|