문제

I need to get all the users that are added to spgroup "XX" on specific date .

$url = "https://spsite.com
$User = Get-SPUser -web $url -Group "XX"

$User | Select Userlogin,Groups,DisplayName,Email,LoginName

how to get creation date ?

도움이 되었습니까?

해결책

well the answer is to get users from the hide spList: "siteUserinfoList"

$today=Get-Date -Format "MM/dd/yyyy"        
        $spSite = Get-SPSite $url 
        $spWeb = Get-SPWeb $url 
        $todayNewUsers =$spWeb.SiteUserInfoList.Items | ?{ (Get-date -Date $_['Created'] -UFormat "%m/%d/%Y") -eq $today}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top