Password Never Expires

This forum is for Office365 for LabTech (Ver 2) support. When posting remember to include screenshots of any relevant information.
Post Reply
jksanford
Posts: 19
Joined: Mon Jun 05, 2017 3:21 pm
6

Password Never Expires

Post by jksanford »

I just subscribed and am evaluating the plugin. I see all of my various o365 customers and the various accounts (open Shell works and I can issue commands such as setting passwords to never expire through the commandline). I am curious though...

If I highlight the name of a user, and click on the 'Password Never Expires' (because i'm assuming that the 'red' next to that means it's set to false), shouldn't that toggle the setting to 'true' and make that users account password set to never expire?

I see in the labtech area that it's sending the 'false' flag no matter whether it's set to false or set to true.

User avatar
Cubert
Posts: 2430
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Re: Password Never Expires

Post by Cubert »

It will launch a command to set that and on next scan it will updated that information and the dot will show green

jksanford
Posts: 19
Joined: Mon Jun 05, 2017 3:21 pm
6

Re: Password Never Expires

Post by jksanford »

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?

jksanford
Posts: 19
Joined: Mon Jun 05, 2017 3:21 pm
6

Re: Password Never Expires

Post by jksanford »

I tried this again on another customer. I was able to use the plugin to reset this users' pw (and tested by logging in to webmail).

I clicked the red button, and the window pops open with...


Validating script folder is available
Passing Parameters
Updating is3 Tech Services --> Office365 has been updated


But the comman area in the labtech control shows that the password never expire is being set to false.

[10:30] [ Output for LABTECH Execute Command ] #39010460
A subdirectory or file C:\Windows\temp already exists.

[10:30] Command #39010484 SaveText File Issued to LABTECH
[10:30] [ Output for LABTECH Execute Command ] #39010477
A subdirectory or file C:\Windows\temp\Office365 already exists.

[10:30] [ Output for LABTECH SaveText File ] #39010484
OK

[10:30] Command #39010489 Execute Command Issued to LABTECH
[10:31] [ Output for LABTECH Execute Command ] #39010489
Setting password never expires state for user dstord@isddddd.com to False

jksanford
Posts: 19
Joined: Mon Jun 05, 2017 3:21 pm
6

Re: Password Never Expires

Post by jksanford »

Never mind. I cancelled my subscription.

Post Reply

Return to “Office365 for LabTech”