Tag Info

Hot answers tagged

4

You only see the last error because Set-Content overwrites the existing content, use Add-Content instead. If you want to have a more encompassing approach, like Robert suggested, there's a more PowerShell'y (?) way of doing this with Start/Stop-Transcript which takes all console output between the Start & Stop cmdlet calls and outputs it to a file.


4

There were some SharePoint 2010 evaluation VM's available from Microsoft at one point but I don't think you can get them anymore. Even if you could, they can only be used for a limited time - generally between 30 and 90 days. You can create your own VM for SharePoint 2010 quite easily. If you use SharePoint Foundation instead of SharePoint Server you can ...


3

i have no idea what you mean by: From where I can download SP 2010 VM in my system where to install in your vm or where to download a vm to install on your local machine? it will run on your setup but will not be smooth, i think you should be looking at atleast 6gb ram.... your going to be running sql server on the same vm if its a tests vm amoungst ...


3

$RootFolder.SubFolders will give you the collection of folders. Loop through the collection and use StartsWith with each folder: $folders = $RootFolder.SubFolders; foreach ($folder in $folders) { if ($folder.Name.StartsWith("a")) { // Call $folder.Subfolders again to get folders present in this folder // Then use foreach to loop ...


3

As previously stated, you should have at least 6GB of RAM to run an SP2010 VM, but you'd be better off with 8 or more. The pre-built VM's for 2010 by Microsoft are getting harder to find, IMHO. I always use this guide as my go-to because it gets you up and running with a good, stable, all-in environment with links to all of the evaluation software. ...


2

In general you should't be storing documents of big size in SharePoint. A better approach would be to store it on a file share or FTP and simply link to the file from SharePoint. You technically cannot store a file larger than 2 GB (2047 MB) to SharePoint. This is the maximum size. If you want to allow files up to 2 GB you'll need to increase the connection ...


1

Thanks for the responses, Actually I came across a remedy in a similar article Referring to tha post answer, in my code I invoked the below javascript OnClientClick event of the LinkButton. function setFormSubmitToFalse() { setTimeout(function () { _spFormOnSubmitCalled = false; }, 3000); return true; }


1

You can get the document link using following line: var url = _spPageContextInfo.webAbsoluteUrl + oListItem.get_item('FileRef');


1

That's more a case of LMGTFY - Here's a complete tutorial plus a .wsp to add this function. To get some basic understanding Since you can't download multiple files in one response, you need to package them in a .zip for example. What you have to do is getting the byte[] foreach file and package them together. Then add created .zip to the response to invoke ...


1

SharePoint registers a JavaScript "on submit" handler. In this handler the global variable _spFormOnSubmitCalled is set to true. SharePoint uses this variable to check if a submit was executed and prevents any further submits. Since your "download postback" does not refresh the page this variable remains true. With the effect that that all other buttons stop ...


1

Sorry. I corrected My Try catch Block and its seems To be Working Fine if((Get-PSSnapin "Microsoft.SharePoint.PowerShell") -eq $null) { Add-PSSnapin Microsoft.SharePoint.PowerShell } $destination = "C:\\Test\\" $web = Get-SPWeb -Identity "http://xyz:4444/" $list = $web.GetList("http://xyx:4444/Shared Documents/") function ProcessFolder { ...


1

You could use Write-Output "Logging text" in your catches and then when you run the script you can run it as MyFancyScriptName.ps1 > C:\file.log


1

You could use the REST service, but since you are downloading this amount of data you could as well use the CSOM. Try this: Install the Microsoft.SharePoint.Client package from NuGet: Install-Package Microsoft.SharePoint.Client (This package is for 2010, but it will work for 2013 as well). Then use this code: const string host = "http://2013-sp"; const ...



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