-
Notifications
You must be signed in to change notification settings - Fork 346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FreeBusyChecker Final Version #2264
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ function Test-ExchangeOnlineConnection { | |
Write-Host -ForegroundColor Green " Checking Exchange Online Configuration" | ||
Write-Host " Testing Connection to Exchange Online with EO Prefix." | ||
try { | ||
$CheckExoMailbox = get-EOMailbox $Script:UserOnline -ErrorAction Stop | ||
$CheckExoMailbox = Get-EOMailbox $Script:UserOnline -ErrorAction Stop | ||
if ($null -ne $CheckExoMailbox) { | ||
return $true | ||
} else { | ||
|
@@ -24,14 +24,12 @@ function FetchEWSInformation { | |
if (-not $Script:WebServicesVirtualDirectory -or -not $Script:WebServicesVirtualDirectoryOAuth) { | ||
$Script:WebServicesVirtualDirectory = Get-WebServicesVirtualDirectory -Server $Script:Server | Select-Object Identity, Name, ExchangeVersion, *Authentication*, *url -ErrorAction SilentlyContinue | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you, great point! Will do. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. -ADPropertiesOnly indeed can't be used Get-WebServicesVirtualDirectory was called multiple times. It is called initially as it is a required Initial Parameter. It was also called on DAuth and Oauth Checks. It was executed 3 times if user inputs -Auth All when calling script: Now it is called only once initially: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, run the cmdlet once and then store it in a script variable or get it with a cmdlet that has it stored within a script variable. |
||
$Script:WebServicesVirtualDirectoryOAuth = $Script:WebServicesVirtualDirectory | ||
$Script:ExchangeOnPremEWS = ($Script:WebServicesVirtualDirectory.externalURL.AbsoluteUri) | ||
} | ||
} | ||
function CheckIfExchangeServer { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd recommend using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
param ( | ||
[string]$Server | ||
) | ||
$exchangeServer = Get-ExchangeServer $Server -ErrorAction SilentlyContinue | ||
if (!$exchangeServer) { | ||
$exchangeShell = Confirm-ExchangeShell | ||
if (-not($exchangeShell.ShellLoaded)) { | ||
Write-Host "$Server is not an Exchange Server. This script should be run in Exchange Server Management Shell" | ||
exit | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,11 @@ To Provide Feedback about this tool: [Feedback Form](https://forms.office.com/pa | |
|
||
Use: Collects OAuth and DAuth Hybrid Availability Configuration Settings Both for Exchange On Premises and Exchange Online if connected to Exchange Online using -Prefix EO before executing this script (see Usage bellow). | ||
|
||
How To Run: | ||
|
||
This script must be run as Administrator in Exchange Management Shell on an Exchange Server. You can provide no parameters, and the script will just run against Exchange On-Premises and Exchange Online to query for OAuth and DAuth configuration settings. It will compare existing values with standard values and provide details of what may not be correct. | ||
Please take note that though this script may output that a specific setting is not a standard setting, it does not mean that your configurations are incorrect. For example, DNS may be configured with specific mappings that this script cannot evaluate. | ||
|
||
Example Screen Output: | ||
|
||
![image](./image1.png) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Make sure to redact the valid tenant information (e.g., DomainNames). We are not allowed to use non-CELA approved domains in our documentations. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch, this needs to be done and squashed to avoid a commit history showing the incorrect names. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Domains redacted |
||
|
@@ -40,17 +45,6 @@ Please make sure that the account used is a member of the Local Administrator gr | |
|
||
Other Pre Requisites: | ||
|
||
AD management Tools: | ||
|
||
If not available, they can be installed with the following command: | ||
|
||
```powershell | ||
Install-WindowsFeature -name AD-Domain-Services -IncludeManagementTools | ||
``` | ||
Imports and Installs the following Modules (if not available): | ||
|
||
PSSnapin: microsoft.exchange.management.powershell.snapin | ||
|
||
Module : ActiveDirectory Module | ||
Module : ExchangeOnlineManagement Module | ||
|
||
|
dpaulson45 marked this conversation as resolved.
Show resolved
Hide resolved
|
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.
Can we add
GenericScriptUpdate.ps1
here? This adds update capabilities to the script and allows the script to perform an auto-update whenever a new version is released.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.
Added this:
The version CSV does not hold information about this script. I suppose this message will display Script Name and version when the csv holds this information:
I see implementations with aka url poiting to csv update file. Should I create one?
Can't test this., so not sure if I understood correctly.
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.
It isn't required, but you can put one there.
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.
Ok, i will commit this evening