PowerShell | Time Management Script 1.1

Since its getting closer to the end of the year we need prioritized and make sure we are keeping on task.

So what do i do when sitting at my desk? I run this script. I even have it set to start on logon 😀

 

Before we run this script I suggest that you have the $TimeManagmentFolder to somewhere useful and that you will remember.

 

<#
.SYNOPSIS
Time Management Script

.DESCRIPTION
Time Management script to log notes about what you are doing every 55mins

.EXAMPLE

.NOTES
Author. Luke Keam
Company Name. techgeek.biz
Published. on 1/01/2017 AUS
Version. 1.1
Copyright. Free for personal and comercial use. As long as reference kept.

Questions, comments, suggestions always welcome. Please email me.

1.1 Updated to 55mins and 5mins break

.LINK
Website. techgeek.biz
Email. [email protected]
http://www.techgeek.biz/techtips/powershell-time-management-script-1-1/
#>

# Where you want to store the Logs
$TimeManagementFolder = “C:\Time Management\”

# Edit Windows size
$pshost = get-host
$pswindow = $pshost.ui.rawui
$newsize = $pswindow.windowsize
$newsize.height = 20
$newsize.width = 69
$pswindow.windowsize = $newsize

# Star before Loop
# Beep noise
[console]::beep(200,500)
[console]::beep(200,500)
[console]::beep(200,500)
clear
Write-Host “
Plan your next 55mins”

# 55min Work
Start-Sleep -Seconds 3300

while ($true) {
# Beep noise
[console]::beep(200,500)
[console]::beep(200,500)
[console]::beep(200,500)
clear

$What = Read-Host “
What were you doing this last 55 mins?”
$Date = Get-Date -UFormat “%d-%m-%y”
$Day = Get-Date -UFormat %a
$Time = Get-Date -UFormat %R
“$Day $Time : $What” | Out-File -FilePath “$TimeManagementFolder$Date Time Management.txt” -Append
clear

# Can change this message to whatever you want
Write-Host “
Thanks for your input 😀

5 Minute Break time

Ideas: Walking meditation, cup of tea, walk around”
# 5 Min Break
Start-Sleep -Seconds 300

# Beep noise
[console]::beep(200,500)
[console]::beep(200,500)
[console]::beep(200,500)
clear
Write-Host “
5 Minute Break over

Plan your next 55mins”

# 55min Work
Start-Sleep -Seconds 3300
}

Luke Keam

Luke Keam

Thank you for reading.

Any questions, comments or suggestions please leave a message below

Have a great day from

Luke Keam
techgeek.biz

 
 
Luke Keam

Latest posts by Luke Keam (see all)

Facebooktwittergoogle_plus