-
Notifications
You must be signed in to change notification settings - Fork 0
Scheduling #5
base: master
Are you sure you want to change the base?
Scheduling #5
Conversation
Use the Matches and Value properties of Select-String Object
Merged Master into Branch to sync updates. Ready for review and merging |
Updated calls
Fixed example texts
return results as they are found
Use one regex whether there's a password or not
.SYNOPSIS | ||
Returns the days, months, and years of all days between 2 days | ||
.DESCRIPTION | ||
Calculates a timespan between 2 dates, then returns each day between those 2 dates as datetime objects |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it inclusive or exclusive?
1-3 inclusive returns 1, 2, and 3
1-3 exclusive returns 2
$DateArray += Get-Date $StartDate | ||
$WorkingTime = Get-Date $StartDate | ||
foreach ($_ in 1..$Timespan.Days) { | ||
$WorkingTime = $WorkingTime.AddDays(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only returns 2nd day and beyond, never the 1st.
$AppointmentDates += (Get-RecurringMeetingDates -Appointment $Appointment -EndDate (Get-Date $End).ToString()).AppointmentDates | ||
foreach ($Date in $AppointmentDates) { | ||
if ($Date -gt (Get-Date $Start)) { | ||
$Results += [pscustomobject]@{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if you take 95-98 and move it to this foreach
(inside the if
on 83), and then pass to the pipeline after you've set the properties?
Will PowerShell care if you pass an object with default display set, rather than an array of objects with default display set? I have a feeling it'll just merge the objects, as long as the display set is the same.
fixes #2
Adds 2 private functions and 1 public function.
Get-OutlookCalendarAppointments returns a object for each meeting it finds in Outlook between specified dates.
The object returned has these properties
The returned objects can be piped into Start-ZoomMeeting or Add-ZoomMeeting