How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.
Ask ATLPROG Your Own Question
ATLPROG, Computer Software Engineer
Category: Programming
Satisfied Customers: 7677
Experience:  MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
Type Your Programming Question Here...
ATLPROG is online now
A new question is answered every 9 seconds

PowerShell and SharePoint expert may be able to help me with

Customer Question

Hi there, PowerShell and SharePoint expert may be able to help me with this.
Please change this script so the outcome includes two more columns
Column 1 (UsersWithFullControl)
- A semi-colon separated listing of users who have Full Control on the relevant SPWeb Object in that row.
Column 2 (DoesThisSPWebInheritPermissions)
- Yes or No
Thanks so much.
-------- The script that I already have is ------
$site= Get-SPSite http://sp
$CountDocumentItems = 0
$CountDocumentLibray =0
$CountListItems = 0
$CountList =0
$Results = @()
foreach($web in $site.AllWebs)
foreach($list in $web.Lists)
if ($list.BaseType -eq "DocumentLibrary")
$CountDocumentLibray = $CountDocumentLibray + 1
$CountDocumentItems = $list.ItemCount + $CountDocumentItems
$CountList = $CountList+1
$CountListItems = $list.ItemCount + $CountListItems
$Results += New-Object PSObject -Property @{'Site URL' = $web.URL
'Site Last Updated' = $web.LastItemModifiedDate
'Document Library Count' = $CountDocumentLibray
'Document Count' = $CountDocumentItems
'List Count' = $CountList
'List Item Count' =$CountListItems }
$CountDocumentItems = 0
$CountDocumentLibray =0
$CountListItems = 0
$CountList =0
$Results | Select 'Site URL', 'Site Last Updated', 'Document Library Count','Document Count', 'List Count','List Item Count'| Export-Csv Details.cs
Submitted: 1 year ago.
Category: Programming
Expert:  Michael Hannigan replied 1 year ago.

Hello. My name is***** can help you with your question.

The formatting of your script is not readable on this page. Can you please attach it in a text document or provide me with a link to where I can download it.?


Customer: replied 1 year ago.

Hi Michael,

Please note this script is provided only as a reference, you can improve this or write your own.

The final outcome should not have any Duplicate values for SPWeb URLs.

The script is here

Thanks a lot.

Customer: replied 1 year ago.

Hi Mike,

Sorry mate, I cannot afford any higher amount.

If you feel appropriate we can make this question available to other professionals? In case they can help!

Thanks so much.