Export Office 365 User Last Logon Date
When following this procedure http://technet.microsoft.com/en-US/ms772425 I receive the error below. Any help is appreciated.
C:\Get-LastLogonStats.ps1 : A parameter cannot be found that matches parameter
name 'InputFile'.
At line:1 char:97
+ .\Get-LastLogonStats.ps1 -Office365Username uername@domain -Office365Password
password -InputFile <<<< c:\Files\InputFile.txt
+ CategoryInfo : InvalidArgument: (:) [Get-LastLogonStats.ps1], P
arameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Get-LastLogonStats.ps1
You need to enable auditing to view history in audit files. In v$session you can see only connected sessions.
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1830073957439
http://www.dba-oracle.com/art_builder_sec_audit.htm
Similar Messages
-
Hi All,
How to find a Database USER last logon date on 10g? by script.
Thanks,You need to enable auditing to view history in audit files. In v$session you can see only connected sessions.
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1830073957439
http://www.dba-oracle.com/art_builder_sec_audit.htm -
Search for User by last logon date no longer works after upgrading to SPS18
We used to be able to Search by last logon date under User Administration as a quick way to find out who logged on for a particular date. It worked well, but only for a single date range. We were on EP 6.0 SPS13 at the time. Since we have upgraded to SPS18, it no longer works. All we get back now is no user found no matter what date we enter.
Has anyone else experienced this problem? I've been searching and haven't found anything. I wanted to try and get more information before I create an OSS message.
Thank you,
Kathyit's since SP16, to be correct: http://help.sap.com/saphelp_nw04/helpdata/en/43/bc6b9202454dece10000000a422035/frameset.htm
kr, achim -
Is there a system table or V$ view that will show a user's last logon date?
Is there a system table or V$ view that will show a user's last logon date?
I'm using Oracle 9.2.0.7sqlplus
SQL*Plus: Release 11.2.0.1.0 Production on Tue Aug 31 12:44:42 2010
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter user-name: / as sysdba
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> desc user$
Name Null? Type
USER# NOT NULL NUMBER
NAME NOT NULL VARCHAR2(30)
TYPE# NOT NULL NUMBER
PASSWORD VARCHAR2(30)
DATATS# NOT NULL NUMBER
TEMPTS# NOT NULL NUMBER
CTIME NOT NULL DATE
PTIME DATE
EXPTIME DATE
LTIME DATE
RESOURCE$ NOT NULL NUMBER
AUDIT$ VARCHAR2(38)
DEFROLE NOT NULL NUMBER
DEFGRP# NUMBER
DEFGRP_SEQ# NUMBER
ASTATUS NOT NULL NUMBER
LCOUNT NOT NULL NUMBER
DEFSCHCLASS VARCHAR2(30)
EXT_USERNAME VARCHAR2(4000)
SPARE1 NUMBER
SPARE2 NUMBER
SPARE3 NUMBER
SPARE4 VARCHAR2(1000)
SPARE5 VARCHAR2(1000)
SPARE6 DATE -
Last Logon Date for Deleted Users
Hi,
How can I checked to see last logon date for a deleted user-SAP ECC 6.0?
-Wes> ... chekcing USR02 the TRDAT field has been reset.
In lower releases you could easily have made a big mistake doing that.
In all releases the security audit log (SM20) is the correct tool for this, but you cannot retro-fit it.
If the SM20 log is not activated for logon events, then there are several other ways of reconstructing parts of the information but they are all incomplete and a big effort.
Cheers,
Julius -
PowerShell Active Directory: Get last logon date of a deleted user
So, my first post in this noble community. I've been lurking here and I've been getting some good information. Hopefully, you guys can help me in this concern which may be simple to some but I couldn't seem to get around it.
Is it possible to get the last logon date of a DELETED user in Active Directory?
I can get the available properties of deleted users using the following:
Get-ADObject -Filter {samaccountname -eq <account_name> -and ObjectClass -eq "user"} -IncludeDeletedObjects -Properties *
But the last logon date is not one of the properties available from Get-ADObject. Get-ADUser has the last logon property, but it does not have data on deleted users. Is there anyway this can be achieved? Perhaps convert an ADObject to an ADUser?
Any information would be much appreciated. Thank you.Thanks everyone for your response. It looks like jrv is leading me to the right path, but I'm still having issues. I'm trying to get the lastlogon time by querying all the DCs in our domain, but every query returns a null lastlogon time for all the deleted
users I tried:
$DomainControllers = ((Get-ADForest).Domains | %{ Get-ADDomainController -Filter * -Server $_ }).Name
foreach ($DC in $DomainControllers)
$dn=(Get-ADObject -Filter {samaccountname -eq <user_account>} -includedeletedobjects -server $DC).DistinguishedName
$user=[adsi]"LDAP://$dn"
$user.LastLogon
It always returns null. Morever, simply executing [adsi]"LDAP://$dn" from each DC gives the following error:
format-default : The following exception occurred while retrieving member
"distinguishedName": "There is no such object on the server.
+ CategoryInfo : NotSpecified: (:) [format-default], ExtendedType
SystemException
+ FullyQualifiedErrorId : CatchFromBaseGetMember,Microsoft.PowerShell.Comm
ands.FormatDefaultCommand
It's a bit surprising to me though, since $user=[adsi]"LDAP://$dn" does return a value for $user (instead of null whenever an error is encountered) of type System.DirectoryServices.DirectoryEntry but it has no members.
Anyone know what I'm missing? -
Query users, access level and last logon date
<p>Hello,</p><p> </p><p>Does anybody know how to query Essbase to look up users accesslevel and last logon date?</p><p> </p><p> </p><p>Rey Fiesta</p>
It can be done using the API. Access level is a little complicated because it can be by individual or group they belong to and it of course is different by application/database
-
Script to pull out last logon date
Hello,
I have a list of user that I would like to pull out last logon date from AD.
This is the script I am using at the moment but it produces blanks and I don't know what the blanks mean.
Import-Module ActiveDirectory
#This script requires PowerShell AD Module
Import-csv "c:\scripts\samaccountname.csv" |
foreach-object {get-aduser $_.samaccountname -Properties lastlogondate} |
select name,Lastlogondate |
Export-csv c:\scripts\LastLogon.csv -NoTypeInformation
Please can you help?
Kind Regards, PenDraKonIf you want an accurate lastLogon date, you have to check across domain controllers.
Here's an advanced function I created a while ago for this.
Function Get-LastLogon {
<#
.SYNOPSIS
Returns LastLogon information
.DESCRIPTION
Queries the LastLogin information for a user across domain controllers and returns the highest (latest) value
.EXAMPLE
Get-LastLogon User
.EXAMPLE
Get-LastLogon -Identity User
.EXAMPLE
Get-ADUser User | Get-LastLogon
.EXAMPLE
Get-LastLogon User1, User2
.PARAMETER users
List of users - pipeline can be used
#>
[CmdletBinding()]
param
[Parameter(Position= 0,
Mandatory=$True,
ValueFromPipeline=$True,
HelpMessage='What user would you like to find the last logon for?')]
$identity
Begin {}
Process {
Foreach ($account in $identity) {
$dateStamp = $null
$domainController =$null
Get-ADDomainController -Filter * | Foreach {
$dc = $_.HostName
$lastLogon = (Get-ADUser $account -Properties LastLogon -server $dc | Select-Object Name,@{n='LastLogon';e={[DateTime]::FromFileTime($_.LastLogon)}}).Lastlogon
If ($dateStamp -le $lastlogon)
$dateStamp = $lastlogon
$domainController = $dc
} # End of ForEach
$properties = @{
Name=$account;
LastLogon=$dateStamp;
DomainController=$domainController}
New-Object -TypeName PSObject -Prop $properties
} # End of ForEach
} # End of Process
End {}
} # End of Function
You can then run...
Import-CSV ".\samaccountname.csv" | % {Get-LastLogon $_.samaccountname}
or...
Import-CSV ".\samaccountname.csv" | % {Get-LastLogon $_.samaccountname} | Export-CSV ".\report.csv" -noType -
Last Logon date and Logon time not updating in table USR02
Hi,
Please help us on this. After customer successfully logged in the webshop, we are checking the table USR02 in CRM system and the Logon date and Logon time is not updated. Because of this, the customer will be locked after certain number of days. When we check it in ECC system, customer's last logon date and time is updated. Can you tell us what could be causing this? Any advise what we need to check? Thanks in advance!
Regards,
MikeHi
1. Please check if the USAPPLREF table in ECC has the correct mapping done between the LOGON User and the Sold-to party (Customer)
2. Please check the validity of those user in SU01 user data.
3. Please check the USERS data from the USERADMIN Link (if it is configured in your scenario through XCM settings for USERS)
Hope this will help.
Regards -
BAPI_USER_GET_DETAIL - Last Logon Date not available
From R3 I want to check the last logon Date (USR02-TRDAT) of a user in an outside system such as EBP or BW. BAPI_USER_GET_DETAIL seemed like a good choice but TRDAT is not passed to the BAPI. Last Logon Time is (LTIME) but not Last logon date (TRDAT). How can this be easily done.
Thanks,
-don.the problem with this is that it makes a call for each user. If you have 100k users it becomes a very inefficient process.
If you build something in the backend to collect the details a useble format....1) it is custom, and 2) you need to deply in each backend and 3) maintain it in each backend.
not a good solution.
If anyone has better idea please shout. Again....this RFC call does the job.....but it is like empting a pool full of water with a teaspoon, does the job but very inefficiently.
DenisO -
Hi,
I am working on EP 7.0 SPS 13.
We have LDAP & UME as data source.
Is there any way to get last logon date for all users?
UME method for getting last logon details is deprecated.
What is alternative way?
I need to get list of all users who have not logged on to portal for last 30 days.
Is there any way to achieve this?
Regards,
ApurvaHi Michael,
Thanks for the link.
Our requirement is that if user is not active for say 30 days his userid should be locked and after say 60 days it should be deleted.
In order to determine inactive users we need information about logon details for user ids. Portal Activity Report - Details of users who logged on does not consider reporting period and hence is of no use.
Is there any operation in this web service which can provide us this information?
Regards,
Apurva -
Hi experts,
Anyone knows what is the table where the portal stores the user last logon? The table WCR_USERFIRSTLOGON is for first logon, but... for the last logon?
Thanks in advance,
Regards,Hi Victor,
First thing there is no seperate table for getting User Last Logon information. But we can get the User Last Logon information
by fetching data from two Standard tables
1.WCR_WEBCONTENTSTAT
2.WCR_USERPAGEUSAGE. Using the Primary key of table 1 we can compare it the data with table2 to sort the Last Logon Date for the particular LoginID. Check it you will get a idea.
This works when all the iViews or Pages for the End-Users have Moniter Users property enabled.
Regards,
Nivas
Edited by: Nivas209 on Jul 5, 2011 7:41 AM -
I am trying to use Azure with my Office 365 account. I have a home version of Office 365 (the one for 5 users). When I try and do this I get the following message:
"Sign out of your Microsoft account and sign in with the Office 365 user ID assigned to you by your work or school.
Sign in with the Office 365 user ID assigned to you by your work or school. It looks like [email protected], [email protected], or [email protected]"
I am using the only account I have for Office 365. I don't have another User Id. Does this mean my account is not entitled to use Azure?Hello,
Microsoft Office 365 account does not give access to Microsoft Azure. These are different products.
You can sign-up for a
Trial Version of Microsoft Azure to start off with. You can also find the
Pricing Details of Azure.
Regards,
Neelesh -
Portal users - last logon time details
Hi ,
We have an requirement to get the list of users who logged in with the Last Logon Information .
From Standard Portal activity report ...we can get only the First logon date of the users .
Kindly let us know the other possibilities to get it .
Thanks ,
KeerthiHi Keerthi,
Apart from Coding there is one option available through Authentication logs,this is tested in NW7.3 iam not sure which version you are using if you are using 7.0 then please check if this is available in 7.0 or not.
1) Go to NWA
2) Go to troubleshooting and logs section
3) Open log viewer and choose Authentication logs from the logs option
4) Specify the time frame in filter and choose everywhere for the logs to be picked up in generated report ,this wil gather authentication data from all server nodes.
5) these logs will show each and every login performed bu Useres and it also shows how many times user have logged in to a particular application,choose IRJ as the application.
6) Export the content to excel file and apply filter ,choose aplication as IRJ and choose date and time and select a user it will show all login with the date and time.
7) You can feed this data to a predefined excel format and pull out necessary info ,only you need to develop an excel template for your reporting purpose and manually logs requires to be pulled in from NWA to feed the excel .
this is another way which does not involve any java coding and tested on NW7.3 versions of Portal.
hope this helps.
Thx,
Siddharth -
Find all Office 365 users where calendar permissions on default user is not "NonEditingAuthor"
Hi
How do I make a Powershell script to find all users where calendar permissions on "default" user is not "NonEditingAuthor" in Office 365?
Best Regards
MSISOMHi MSISOM,
To export calendar permission on default user, please refer to this script:
$rptCollection = @()
$mailboxes = get-mailbox -ResultSize Unlimited
$mailboxes | foreach-object{
$alias = $_.alias + ":\Calendar"
$displayName = $_.DisplayName
write-host $alias
$permissions = Get-MailboxFolderPermission $alias | Where-Object {$_.user.UserType.value -eq "Default"}
if($permissions -ne $null){
foreach($perms in $permissions){
foreach($right in $perms.AccessRights){
$rptCollection += New-Object psobject -Property @{
"User" = $perms.User
"Identity" = $perms.Identity
"StringAccessRights" = $right}
}$rptCollection
The result is for your reference:
Then you can filter the result with the cmdlet "where-object {}"
If there is anything else regarding this issue, please feel free to post back.
Best Regards,
Anna Wang
Maybe you are looking for
-
Mail won't open after software update
I just did a software update (I think it was itunes update) and now mail won't open. Mail is still located in the apps folder. Message says to reinstall mail. Any ideas? Thx!
-
Error trying to use multiple lines from a PO in a Goods Receipt PO
I get the following error when I try to add 2 lines from a PO to a single Goods Receipt PO (code below): -5002 One of the base documents has already been closed [PDN1.BaseEntry][line: 1] I can create the Goods Receipt PO if I use 1 line or lines fro
-
Back and forward buttons do not work in Private Browsing mode in FF4. works fin in FF3.x
-
Cant Delete Jar in Apache Jserv? Why???
Hi all Can any one tell me why i cant delete my jar file in Apache Jserv, servlets folder. It says access denied. I stopped apache server and then tried to delete it. But no use. Help me in this matter. One more problem i am getting is my jar file is
-
When filling in forms I get invalid email but works on my laptop
Subject: When filling in forms on web sites I get invalid email but it works on my iPhone and laptop