nikkelly / microsoftservicesprofile Goto Github PK
View Code? Open in Web Editor NEWSimplifying the way you manage Microsoft 365 with PowerShell
Simplifying the way you manage Microsoft 365 with PowerShell
Originally posted by CakeOD36 December 8, 2021
Truly appreciate your work here and just wanted to note that including a simple mechanism for module updates would be a bonus.
Where I am continuing my own dig on the details it appears that the User Environment variables used by this module are not properly set on Windows 11 machines. This impacts both the credentials used for starting sessions with the various modules and the MFA settings.
Disable-CheckProfileUpdate to prevent Invoke-CheckProfileUpdate from auto-running
Invoke-WebRequest may trigger security alerts on more sensitive systems/networks
$host.ui.RawUi.WindowTitle = $microsoftUser
Something like this to make juggling multiple windows with multiple tenants easier.
MFA is enabled and saved to the environment variable
Teams tries to connect but ultimately fails - seems like the MFA switch for Teams isn't working right.
Create and use an app registration to limit scope
Have credentials saved
Have MFA status saved
Attempted to connect with "Exchange" and run Get-EXORecipient
but got this error:
New-ExoPSSession : One or more errors occurred.
At C:\Program
Files\WindowsPowerShell\Modules\ExchangeOnlineManagement\2.0.5\netFramework\ExchangeOnlineManagement.psm1:475 char:30
+ ... PSSession = New-ExoPSSession -ExchangeEnvironmentName $ExchangeEnviro ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [New-ExoPSSession], AggregateException
+ FullyQualifiedErrorId : System.AggregateException,Microsoft.Exchange.Management.ExoPowershellSnapin.NewExoPSSess
ion
Used Connect-ExchangeOnline
and then completed interactive login.
else : The term 'else' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\admin.nkelly\Github\microsoftServicesProfile\microsoftServicesProfile.ps1:270 char:7
+ else {
+ ~~~~
+ CategoryInfo : ObjectNotFound: (else:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Seems to be a missing a closing } for if statement starting on microsoftServicesProfile.ps1:267
https://github.com/PowerShell/PSScriptAnalyzer
This will provide better consistency across the board
Either a new command to display the "prompt" block again Display-Commands
Or is there a way to lock it as the top 10% of the window? Perhaps as a toggle option?
Use case: If you know you're going to be using MFA or the service (sharepoint/MSOL) requires a rich login, the startup shouldn't prompt for a password or at least shouldn't error when it's blank.
right now Increment will still fire even if it fails to connect
or add an option to add new credentials that replace the old. This way user doesn't need to navigate to environment variables to change admin accounts
maybe with exchange-server or something
Give options for saving:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.