Tag Info

Hot answers tagged

2

Here is an example of creating a list: Create a list with powershell Then this script will loop through each site in the site collection $siteURL = "http://sp14fdev01/" $site = Get-SPSite($siteURL) foreach($web in $site.AllWebs) { } Simply add your list creation code inside the foreach. Note you will want to check to make sure the list doesn't already ...


1

I don't have one that takes a specific object as input, but this may help. It will list out the role assignments on web, list, items for users and SharePoint groups. Start-SPAssignment -global $sites = Get-SPsite -limit All foreach ($site in $sites) { foreach ($web in $site.allwebs) { Write-Host -BackgroundColor ...


1

Provided you have added list as a stp file in List template gallery: $site = Get-SPSite http://site foreach($web in $site.AllWebs) { $listTemplates = $site.GetCustomListTemplates($web) $web.Lists.Add("Your name for list", "", $listTemplates["Your List template name"]) } Remember, you can't pass the template ID in the Add method but ...


1

First, make your backup directory on your SQL Server, if possible. This gives the fastest backup performance. You need to share out your path (e.g. make a share named BackupTest from C:\backuptest), giving Everyone Full Control on the Share permissions (this is usually fine as we'll override the permissions at the NTFS permission level). Next, remove ...


1

To create a Document library: New-SPList -Web http://spwebaddress -ListTitle “Enter Title Here” -ListUrl “ListURL” -Description “Description” -Template “Document Library” To upload to a folder within document library you should get the spfolder then add to it... $folder=$web.GetFolder(“FolderName″) $folder.Files.Add($folder.Url + “/” + $file.Name, ...


1

just take a look at: http://www.automism.at/2013/02/22/sharepoint-2013-managed-accounts-2/ the post contains pretty detailed Information about createing the Managed Accounts for SharePoint 2010/2013 the first post in that series also contains a PowerShell script to create the ActiveDirectory Accounts that are used for the Managed Accounts Bye



Only top voted, non community-wiki answers of a minimum length are eligible