Hmm. I still can't seem to get it to work. On the main Office365 for Labtech[Terminal] window, it show that the process took 3:21 seconds (not sure this is faster for my techs). The messages show
Validating script folder is available
Passing Parameters
Updating Garland Bros., Inc. --> Office365 has been updated
Updating Garland Bros., Inc. --> Office365 has been updated
Updating Garland Bros., Inc. --> Client has a password or username that is incorrect.Updating Garland Bros., Inc. --> Office365 has been updated
Updating Garland Bros., Inc. --> Office365 has been updated
BUT in the labtech console, i see
[08:54] [ Output for LABTECH Execute Command ] #38988488
Setting password never expires state for user
brian@garlandbros.com to False
[08:54] Command #38988493 Execute Command Issued to LABTECH
[08:55] [ Output for LABTECH Execute Command ] #38988493
Setting password never expires state for user
brian@garlandbros.com to False
[08:55] Command #38988496 Execute Command Issued to LABTECH
[08:55] [ Output for LABTECH Execute Command ] #38988496
Connect-Msolservice : The user name or password is incorrect. Verify your user
name, and then type your password again.
At C:\Windows\temp\Office365\exec_Office365.ps1:14 char:2
+ Connect-Msolservice -cred $cred
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [Connect-MsolService], Mic
rosoftOnlineException
+ FullyQualifiedErrorId : 0x80048821,Microsoft.Online.Administration.Autom
ation.ConnectMsolService
Set-MsolUser : You must call the Connect-MsolService cmdlet before calling any
other cmdlets.
At C:\Windows\temp\Office365\exec_Office365.ps1:18 char:1
+ Set-MsolUser -UserPrincipalName
brian@garlandbros.com -PasswordNeverExpires
$fa ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
+ CategoryInfo : OperationStopped: (:) [Set-MsolUser], MicrosoftO
nlineException
+ FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.Micro
softOnlineException,Microsoft.Online.Administration.Automation.SetUser
Setting password never expires state for user
brian@garlandbros.com to False
[08:55] Command #38988497 Execute Command Issued to LABTECH
[08:56] [ Output for LABTECH Execute Command ] #38988497
Setting password never expires state for user
brian@garlandbros.com to False
[08:56] Command #38988501 Execute Command Issued to LABTECH
[08:56] [ Output for LABTECH Execute Command ] #38988501
Setting password never expires state for user
brian@garlandbros.com to False
If I click open shell it opens and i can type get-msoluser and all the users for that customer are available. I can also manually set the pw state here.
What am i missing?