martes, 25 de noviembre de 2014

PowerShell: Finding Creator of List, Finding Date of List Creation



To find list creator:

$web = Get-SPWeb “Name of your site (keep the quotes)”
$list = $web.lists["Name of your list (keep the quotes)"]
$listAuthor = $list.Author
Write-Host $listAuthor

To find list creation date:

$web = Get-SPWeb “Name of your site (keep the quotes)”
$list = $web.lists["Name of your list (keep the quotes)"]
$listCreatedDateTime = $list.Created
$web.Dispose()
$web=$null
Write-Host $listCreatedDateTime

Enjoy it!

No hay comentarios:

Publicar un comentario