This repository was archived by the owner on Jan 5, 2022. It is now read-only.
Open
Conversation
Use the Matches and Value properties of Select-String Object
Collaborator
Author
|
Merged Master into Branch to sync updates. Ready for review and merging |
Mortein
suggested changes
May 25, 2020
Updated calls
Fixed example texts
return results as they are found
Use one regex whether there's a password or not
Mortein
suggested changes
May 29, 2020
| .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 |
Owner
There was a problem hiding this comment.
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) |
Owner
There was a problem hiding this comment.
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]@{ |
Owner
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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