How can I see users' Office 365 Password date (date last changed, date it will expire, etc.)? ...
Disable hyphenation for an entire paragraph
What's the purpose of writing one's academic bio in 3rd person?
Sorting numerically
Is there a concise way to say "all of the X, one of each"?
Does surprise arrest existing movement?
"Seemed to had" is it correct?
How to deal with a team lead who never gives me credit?
Should I call the interviewer directly, if HR aren't responding?
Proof involving the spectral radius and Jordan Canonical form
Does accepting a pardon have any bearing on trying that person for the same crime in a sovereign jurisdiction?
Do I really need recursive chmod to restrict access to a folder?
Antler Helmet: Can it work?
How do I mention the quality of my school without bragging
Check which numbers satisfy the condition [A*B*C = A! + B! + C!]
What is the correct way to use the pinch test for dehydration?
Using et al. for a last / senior author rather than for a first author
Why was the term "discrete" used in discrete logarithm?
Java 8 stream max() function argument type Comparator vs Comparable
What do you call a phrase that's not an idiom yet?
Right-skewed distribution with mean equals to mode?
How to motivate offshore teams and trust them to deliver?
Is 1 ppb equal to 1 μg/kg?
G-Code for resetting to 100% speed
Is there a service that would inform me whenever a new direct route is scheduled from a given airport?
How can I see users' Office 365 Password date (date last changed, date it will expire, etc.)?
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)KeePass justificationActive Directory -> Dirsync -> Office 365 best way to change password for remote usersHow should this HTML be formatted when entering it into PowerShell?Comparing two multi-dimensional arrays in PowerShellWindows 2012 Domain Controller NETLOGON errorCan I use Office 365 Business Premium at home for personal use?Use Office 365 account to login to Windows 10Upgrade to Outlook 2016 Fails with Office 365 AccountExcel PowerQuery cannot find SharePoint files after a certain dateHow to leave Azure AD, when Microsoft account got joined to it by exchange to office 365 migration
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I know I can see the password dates (date last changed, date it will expire, etc.) for our in-house Active Directory. How do I see this information for Office 365 accounts, either with PowerShell or in any other way? This information is very handy to have at times. I especially need to see when people's passwords were changed.
Thanks,
Jono
powershell office365 password-management
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I know I can see the password dates (date last changed, date it will expire, etc.) for our in-house Active Directory. How do I see this information for Office 365 accounts, either with PowerShell or in any other way? This information is very handy to have at times. I especially need to see when people's passwords were changed.
Thanks,
Jono
powershell office365 password-management
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I know I can see the password dates (date last changed, date it will expire, etc.) for our in-house Active Directory. How do I see this information for Office 365 accounts, either with PowerShell or in any other way? This information is very handy to have at times. I especially need to see when people's passwords were changed.
Thanks,
Jono
powershell office365 password-management
I know I can see the password dates (date last changed, date it will expire, etc.) for our in-house Active Directory. How do I see this information for Office 365 accounts, either with PowerShell or in any other way? This information is very handy to have at times. I especially need to see when people's passwords were changed.
Thanks,
Jono
powershell office365 password-management
powershell office365 password-management
asked Apr 21 '16 at 19:18
JonoJono
15129
15129
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
I think I have it, or at least I have enough to figure out what I need.
Get-MsolUser -userprincipalname user@domain.org | select DisplayName, LastPasswordChangeTimeStamp,@{Name=”PasswordAge”;Expression={(Get-Date)-$_.LastPasswordChangeTimeStamp}}
The result looks like this (date and time format will match your computer's):
DisplayName LastPasswordChangeTimestamp PasswordAge
----------- --------------------------- -----------
User, Name 09-Mar-16 5:48p 42.22:34:10.6964630
.
In order to see all users whose passwords are older than 30 days, use this.
Get-MsolUser -All | select DisplayName, LastPasswordChangeTimeStamp,@{Name=”PasswordAge”;Expression={(Get-Date)-$_.LastPasswordChangeTimeStamp}} | where {$_.PasswordAge -gt “30”} | sort-object PasswordAge -descending
It will list all of the users with passwords older than 30 days and sort the list by the password age.
I hope this helps others as well.
add a comment |
To properly calculate the Age against UTC time, you can use the ToUniversalTime() method.
Get-MsolUser -All | select DisplayName, LastPasswordChangeTimeStamp,@{Name=”PasswordAge”;Expression={((Get-Date).ToUniversalTime())-$_.LastPasswordChangeTimeStamp}} | sort-object PasswordAge -desc
What's so different about this answer that's not already mentioned in the other answer again? Also, if you determine this is indeed not a duplicated answer then consider clarifying and add a little more context to this answer to convey what you are suggesting exactly and why it works, etc. You know, consider adding some reference to this answer supporting what you state and why it is.
– Pimp Juice IT
Aug 16 '17 at 23:53
I see the difference. A more accurate list will result by doing the calculation against UTC since that's the dates and times that PS uses. Without the added expression, there would be a few hours difference as it calculated against the computer time instead of UTC. Is that correct @Toby?
– Jono
Aug 18 '17 at 11:03
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1068269%2fhow-can-i-see-users-office-365-password-date-date-last-changed-date-it-will-e%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I think I have it, or at least I have enough to figure out what I need.
Get-MsolUser -userprincipalname user@domain.org | select DisplayName, LastPasswordChangeTimeStamp,@{Name=”PasswordAge”;Expression={(Get-Date)-$_.LastPasswordChangeTimeStamp}}
The result looks like this (date and time format will match your computer's):
DisplayName LastPasswordChangeTimestamp PasswordAge
----------- --------------------------- -----------
User, Name 09-Mar-16 5:48p 42.22:34:10.6964630
.
In order to see all users whose passwords are older than 30 days, use this.
Get-MsolUser -All | select DisplayName, LastPasswordChangeTimeStamp,@{Name=”PasswordAge”;Expression={(Get-Date)-$_.LastPasswordChangeTimeStamp}} | where {$_.PasswordAge -gt “30”} | sort-object PasswordAge -descending
It will list all of the users with passwords older than 30 days and sort the list by the password age.
I hope this helps others as well.
add a comment |
I think I have it, or at least I have enough to figure out what I need.
Get-MsolUser -userprincipalname user@domain.org | select DisplayName, LastPasswordChangeTimeStamp,@{Name=”PasswordAge”;Expression={(Get-Date)-$_.LastPasswordChangeTimeStamp}}
The result looks like this (date and time format will match your computer's):
DisplayName LastPasswordChangeTimestamp PasswordAge
----------- --------------------------- -----------
User, Name 09-Mar-16 5:48p 42.22:34:10.6964630
.
In order to see all users whose passwords are older than 30 days, use this.
Get-MsolUser -All | select DisplayName, LastPasswordChangeTimeStamp,@{Name=”PasswordAge”;Expression={(Get-Date)-$_.LastPasswordChangeTimeStamp}} | where {$_.PasswordAge -gt “30”} | sort-object PasswordAge -descending
It will list all of the users with passwords older than 30 days and sort the list by the password age.
I hope this helps others as well.
add a comment |
I think I have it, or at least I have enough to figure out what I need.
Get-MsolUser -userprincipalname user@domain.org | select DisplayName, LastPasswordChangeTimeStamp,@{Name=”PasswordAge”;Expression={(Get-Date)-$_.LastPasswordChangeTimeStamp}}
The result looks like this (date and time format will match your computer's):
DisplayName LastPasswordChangeTimestamp PasswordAge
----------- --------------------------- -----------
User, Name 09-Mar-16 5:48p 42.22:34:10.6964630
.
In order to see all users whose passwords are older than 30 days, use this.
Get-MsolUser -All | select DisplayName, LastPasswordChangeTimeStamp,@{Name=”PasswordAge”;Expression={(Get-Date)-$_.LastPasswordChangeTimeStamp}} | where {$_.PasswordAge -gt “30”} | sort-object PasswordAge -descending
It will list all of the users with passwords older than 30 days and sort the list by the password age.
I hope this helps others as well.
I think I have it, or at least I have enough to figure out what I need.
Get-MsolUser -userprincipalname user@domain.org | select DisplayName, LastPasswordChangeTimeStamp,@{Name=”PasswordAge”;Expression={(Get-Date)-$_.LastPasswordChangeTimeStamp}}
The result looks like this (date and time format will match your computer's):
DisplayName LastPasswordChangeTimestamp PasswordAge
----------- --------------------------- -----------
User, Name 09-Mar-16 5:48p 42.22:34:10.6964630
.
In order to see all users whose passwords are older than 30 days, use this.
Get-MsolUser -All | select DisplayName, LastPasswordChangeTimeStamp,@{Name=”PasswordAge”;Expression={(Get-Date)-$_.LastPasswordChangeTimeStamp}} | where {$_.PasswordAge -gt “30”} | sort-object PasswordAge -descending
It will list all of the users with passwords older than 30 days and sort the list by the password age.
I hope this helps others as well.
edited Apr 21 '16 at 20:44
answered Apr 21 '16 at 20:26
JonoJono
15129
15129
add a comment |
add a comment |
To properly calculate the Age against UTC time, you can use the ToUniversalTime() method.
Get-MsolUser -All | select DisplayName, LastPasswordChangeTimeStamp,@{Name=”PasswordAge”;Expression={((Get-Date).ToUniversalTime())-$_.LastPasswordChangeTimeStamp}} | sort-object PasswordAge -desc
What's so different about this answer that's not already mentioned in the other answer again? Also, if you determine this is indeed not a duplicated answer then consider clarifying and add a little more context to this answer to convey what you are suggesting exactly and why it works, etc. You know, consider adding some reference to this answer supporting what you state and why it is.
– Pimp Juice IT
Aug 16 '17 at 23:53
I see the difference. A more accurate list will result by doing the calculation against UTC since that's the dates and times that PS uses. Without the added expression, there would be a few hours difference as it calculated against the computer time instead of UTC. Is that correct @Toby?
– Jono
Aug 18 '17 at 11:03
add a comment |
To properly calculate the Age against UTC time, you can use the ToUniversalTime() method.
Get-MsolUser -All | select DisplayName, LastPasswordChangeTimeStamp,@{Name=”PasswordAge”;Expression={((Get-Date).ToUniversalTime())-$_.LastPasswordChangeTimeStamp}} | sort-object PasswordAge -desc
What's so different about this answer that's not already mentioned in the other answer again? Also, if you determine this is indeed not a duplicated answer then consider clarifying and add a little more context to this answer to convey what you are suggesting exactly and why it works, etc. You know, consider adding some reference to this answer supporting what you state and why it is.
– Pimp Juice IT
Aug 16 '17 at 23:53
I see the difference. A more accurate list will result by doing the calculation against UTC since that's the dates and times that PS uses. Without the added expression, there would be a few hours difference as it calculated against the computer time instead of UTC. Is that correct @Toby?
– Jono
Aug 18 '17 at 11:03
add a comment |
To properly calculate the Age against UTC time, you can use the ToUniversalTime() method.
Get-MsolUser -All | select DisplayName, LastPasswordChangeTimeStamp,@{Name=”PasswordAge”;Expression={((Get-Date).ToUniversalTime())-$_.LastPasswordChangeTimeStamp}} | sort-object PasswordAge -desc
To properly calculate the Age against UTC time, you can use the ToUniversalTime() method.
Get-MsolUser -All | select DisplayName, LastPasswordChangeTimeStamp,@{Name=”PasswordAge”;Expression={((Get-Date).ToUniversalTime())-$_.LastPasswordChangeTimeStamp}} | sort-object PasswordAge -desc
answered Aug 16 '17 at 23:18
TobyToby
1
1
What's so different about this answer that's not already mentioned in the other answer again? Also, if you determine this is indeed not a duplicated answer then consider clarifying and add a little more context to this answer to convey what you are suggesting exactly and why it works, etc. You know, consider adding some reference to this answer supporting what you state and why it is.
– Pimp Juice IT
Aug 16 '17 at 23:53
I see the difference. A more accurate list will result by doing the calculation against UTC since that's the dates and times that PS uses. Without the added expression, there would be a few hours difference as it calculated against the computer time instead of UTC. Is that correct @Toby?
– Jono
Aug 18 '17 at 11:03
add a comment |
What's so different about this answer that's not already mentioned in the other answer again? Also, if you determine this is indeed not a duplicated answer then consider clarifying and add a little more context to this answer to convey what you are suggesting exactly and why it works, etc. You know, consider adding some reference to this answer supporting what you state and why it is.
– Pimp Juice IT
Aug 16 '17 at 23:53
I see the difference. A more accurate list will result by doing the calculation against UTC since that's the dates and times that PS uses. Without the added expression, there would be a few hours difference as it calculated against the computer time instead of UTC. Is that correct @Toby?
– Jono
Aug 18 '17 at 11:03
What's so different about this answer that's not already mentioned in the other answer again? Also, if you determine this is indeed not a duplicated answer then consider clarifying and add a little more context to this answer to convey what you are suggesting exactly and why it works, etc. You know, consider adding some reference to this answer supporting what you state and why it is.
– Pimp Juice IT
Aug 16 '17 at 23:53
What's so different about this answer that's not already mentioned in the other answer again? Also, if you determine this is indeed not a duplicated answer then consider clarifying and add a little more context to this answer to convey what you are suggesting exactly and why it works, etc. You know, consider adding some reference to this answer supporting what you state and why it is.
– Pimp Juice IT
Aug 16 '17 at 23:53
I see the difference. A more accurate list will result by doing the calculation against UTC since that's the dates and times that PS uses. Without the added expression, there would be a few hours difference as it calculated against the computer time instead of UTC. Is that correct @Toby?
– Jono
Aug 18 '17 at 11:03
I see the difference. A more accurate list will result by doing the calculation against UTC since that's the dates and times that PS uses. Without the added expression, there would be a few hours difference as it calculated against the computer time instead of UTC. Is that correct @Toby?
– Jono
Aug 18 '17 at 11:03
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1068269%2fhow-can-i-see-users-office-365-password-date-date-last-changed-date-it-will-e%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown