9/20/2015

SharePoint Saturday Cincinnati… Boo!

If you don't put this in your calendar right now… ScarePoint Saturday is going to sneak right past you!

image

SharePoint Saturday Cincinnati is a FREE one day conference. The event is open to the public and is your FREE chance to immerse yourself in the SharePoint platform! Saturday October 10th , 2015 8am-6pm.

FREE one day event

Come learn from the
SharePoint EXPERTS

Register Online http://bit.ly/1DAprtv

Sponsor Raffle & Prizes following
Event

Follow us on Twitter
@spscincinnati  #spscincy

SharePoint Saturday Cincinnati is dedicated to educating and engaging members of the local SharePoint community. SharePoint Saturday Cincinnati draws upon the expertise of local and international SharePoint IT professionals, business experts, developers, architects, and users who donate their time to share real world experiences, lessons learned, best practices and general knowledge with fellow SharePoint enthusiasts.

Speakers: Ajay Iyer, Bill Crider, Brian T. Jackett, Chris McNulty, Daniel Glenn, Gina Montgomery, Heather Newman, Ivan Sanders, JD Wade, John Ramminger, Liz Sundet, Mark Rackley, Michelle Caldwell, Mike Smith, Patrick Tucker, Paul Stork, Ricardo Wilkins, Robert Bogue, Roger Sears, Ryan Dennis, Scott Brewster, Sean McDonough, Seb Matthews, Shila Nagarsenker, Simeon Cathey, Toby McGrail

SHARONVILLE CONVENTION CENTER
11355 Chester Rd, Cincinnati, OH 45246
http://www.spsevents.org/city/cinci/cinci2015/home
October 10th , 2015 8am-6pm

 

A big THANK YOU to all our Sponsors. Without you this event would not be possible.
http://www.spsevents.org/city/cinci/cinci2015/sponsors

image

 

 

.

Upload a File to SharePoint Using PowerShell

 

A while back I posted an article on downloading files from SharePoint using PowerShell (see here) that generated a few questions about uploading files. So… here's a few uploading scripts. Don't stop here though, there are many other examples on the web. Google/Bing is your friend!

 

An Upload with Metadata Script

This script not only uploads files, but lets you add metadata.

# Set a few variables
$file = "C:\test\myTestFile.txt"
$TTNwebUrl = "http://server/sites/yoursite"
$library = "Team Documents"
$overWriteExisting = $True #or add new version if versioning enabled

# do a little SharePoint setup
$web = Get-SPWeb $TTNwebUrl
$files = $web.GetFolder($library).Files
$fileNameForLibrary = $file.Substring($file.LastIndexOf("\")+1) 

# read the file
$data = Get-ChildItem $file

# add any needed metadata
$metadata = @{ "Project ID" = "A-200"; "Region" = "North" }

# or if no metadata needed: $metadata = @{}

# do the upload (the following is one line)
$newfile = $files.Add($library + "/" + $fileNameForLibrary, $data.OpenRead(), $metadata, $overWriteExisting)

 

And if you are a "one liner" PowerShell scripter:

(Get-SPWeb "http://server/sites/yoursite").GetFolder("Team Documents").Files.Add("Team Documents/myTestFile.txt", (Get-ChildItem "C:\test\myTestFile.txt").OpenRead(), $True)

And with metadata:
(Get-SPWeb "http://server/sites/yoursite").GetFolder("Team Documents").Files.Add("Team Documents/myTestFile.txt", (Get-ChildItem "C:\test\myTestFile.txt").OpenRead(), @{ "Project ID" = "A-200"; "Region" = "North" }, $True)

 

Upload an Attachment with a New List Item

I generally recommend linking from a list item to a file in a library, but if you want to add attachments to a list item, here's a sample script:

# Set a few variables
  $TTNweb = Get-SPWeb "http://yourServer/sites/yourSite";
  $list = $TTNweb.lists["yourListName"];
  $filePath = "C:\SampleDocs\yourSampleFile.JPG";

# Create a new list item:
  $item = $list.items.Add(); 
  $item["Title"] = "Test Title";
  # set any addition metadata 
  $item.Update();

# Upload the file:
  $bytes = [System.IO.File]::ReadAllBytes($filePath);
  $item.Attachments.Add([System.IO.Path]::GetFileName($filePath), $bytes);
  $item.Update();

 

 

Looking for a PowerShell course for SharePoint administrators and auditors?

SharePoint 2010 and 2013 Auditing and Site Content Administration using PowerShell

https://www.microsoft.com/en-us/learning/course.aspx?cid=55095A

Or you can attend my class in Cincinnati (locally or remotely)!
http://www.maxtrain.com/Classes/ClassInfo.aspx?Id=119394

.

9/08/2015

New SharePoint 2013 Search for Power Users Class

 

I'm very pleased to announce my latest Courseware Marketplace course! 55141AC SharePoint 2013 Search for Power Users. While the class has not shown up yet on the Microsoft Learning site, it should be here shortly. MCTs can download it today at https://shop.courseware-marketplace.com. You can attend it soon at Microsoft training centers around the world.

If you can't find the class near you, you can attend the class in Cincinnati or remotely at MAX.

SharePoint Search Class 1200

 

Oh, don't forget the administrators! We have a SharePoint 2013 search class just for them: 55122AC Microsoft SharePoint 2013 Search Administration. If you can't find the class near you, you can attend the class in Cincinnati or remotely at MAX.

SharePoint-Search-Class-Administrator-1200

 

.

Note to spammers!

Spammers, don't waste your time... all posts are moderated. If your comment includes unrelated links, is advertising, or just pure spam, it will never be seen.