How to add tags to SharePoint via Powershell?
Hi,
I have a large directory of folders and files that I have to upload onto SharePoint Online. The only thing is, my boss wants to keep the folder structure but not the folders
Basically he wants to use the folder names for tags and upload files underneath the tags.
Is there a way to upload the tags using powershell?
Or if not is there a way to upload files to existing tags ?
thanks
Dearbhla Bradley
You can create social tag using powershell
http://www.c-sharpcorner.com/uploadfile/anavijai/create-social-tag-in-sharepoint-2010-using-powershell/
http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=468
Not sure if this will work in SharePoint Online
If this helped you resolve your issue, please mark it Answered
Similar Messages
-
How to add tags to a number of pdfs?
It seems that batch processing does not support adding tags. I'm wondering if there is an automatical way to add tags to multiple pdfs. Or I have to use javascript to do? Or there is a third party tool to do so?
I have Acrobat 8.3 Professional and you can create a batch sequence, In documents there is an option "Make Accessible". This will add tags to a bunch of files.
-
How to add Navigation attributes values via ABAP while creation of CVC
Hi,
I have a requirement like, I have to add navigational attributes to the cvc record while CVC creation ( /sapapo/mc62 transaction).
There were two scenarios: 1. Usually when they load master data from BW side those navigation attributes available and when we do CVC creation it's automatically picks those values. If NOT then i have to bring Market segment and Business unit navigational attributes values from ECC via RFC function module by passing MPN and End customer division as a input.
I am facing problem when BW side if business unit and Market segment were blank.
Do we have any Function modules available to add navigational attributes data and should update corresponding master data tables.
Please help me step by step process on this.
Thanks
Ravi
Edited by: REDDY KALLURI on Jan 22, 2011 10:30 PMMichael,
Are you intending this as a commercial solution or a work around?
To take an existing equivalent, one would build a view in the database tailored for each grid in an Oracle Forms application. Or a separate query layered over tables for each form/grid in a Delphi or Access application? Even if it is ninety nine percent the same over half a dozen forms/grids?
And now you've added a whole slew of "slightly different" rowSetInfos to maintain.
So if you wanted to add a column that needs to appear everywhere... you've just increased the workload multi-fold?
That would be a management nightmare, wouldn't it? Not to mention yet more performance cost and a slower system?
Hmmmm..... I'm not sure I like where this is headed... someone needs to do some convincing...
null -
How to add tags to the existing XML file?
Hi,
I have a requirement wherein I have to add a tag to the existing xml data.
For Eg:
<ROW>
<EVNT_ID>7333976</EVNT_ID>
<DISTRCT_CD>67</DISTRCT_CD>
<TIME_OFF>06-May-2008 10:50:04 AM</TIME_OFF>
</ROW>
The desired output is,
<DI_DATA>
<ROW>
<EVNT_ID>7333976</EVNT_ID>
<DISTRCT_CD>67</DISTRCT_CD>
<TIME_OFF>06-May-2008 10:50:04 AM</TIME_OFF>
</ROW>
</DI_DATA>
I have to add <DI_DATA> </DI_DATA>at the start and end of the input.
Could any of you help me on this?
Thanks,
GVIf your XML is just in a CLOB, you can just use string manipulation to prepend/append the nodes on. If you have it in an XMLType you could just do the following
select appendchildxml(XMLTYPE('<DI_DATA/>'),
'DI_DATA',
XMLTYPE('<ROW>
<EVNT_ID>7333976</EVNT_ID>
<DISTRCT_CD>67</DISTRCT_CD>
<TIME_OFF>06-May-2008 10:50:04 AM</TIME_OFF>
</ROW>')) -- this would be your variable
from dual;which will put your data within the DI_DATA node. -
How do add tags within text of another tag in xml...
I have the following template I want to create in xml and read it to send out emails.... but in body i want to insert the tags <DATE> and <COUNT> in certain location of the text how is that possible this is what I have:
<email>
<from>[email protected]</from>
<to>[email protected]</to>
<cc>[email protected]</cc>
<bcc>[email protected]</bcc>
<subject>This is the subject</subject>
<body>This is the body of an email message.As of <_DATE> there are <COUNT> outstanding items. Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text
Text Text Text Text Text Text Text Text Text
Text Text Text Text</body>
</email>
From: <_FROM>
To: <_TO>
Cc: <>
Subject: Hello
As of <_DATE> there are <COUNT> outstanding items. Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text
Text Text Text Text Text Text Text Text Text
Text Text Text Text
Thank you,
Sys AdminIn ur program
Betweens = station.getChildren("between");here the "Between" is a List having "between" elements.
if u want to traverse through all the <between> elements which are inside the<noservice>,.
check with this,
Betweens = station.getChildren("between");
between = (Element)Betweens.get(0);
bNames =between.getChildren("station");
blineNames =between.getChildren("line");instead of this..
java.util.List Between = station.getChildren("between");
ListIterator iter = Between.listIterator();
while(iter.hasNext())
Element between = (Element) i.next();
bNames =between.getChildren("station");
blineNames =between.getChildren("line");
If the XMl document is something like this..
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="style.css"?>
<DisruptionsInfo>
<Title>Disruptions on the London Underground</Title>
<noService>
<between>
<description>The are no service between</description>
<station>BAKER STREET</station>
<description>and</description>
<station>EUSTON SQUARE</station>
<description>on the</description>
<line>METROPOLITAN LINE</line>
</between><between>
<description> 2 The are no service between</description>
<station>2 BAKER STREET</station>
<description>2 and</description>
<station>2 EUSTON SQUARE</station>
<description>2 on the</description>
<line>2 METROPOLITAN LINE</line>
</between>
<description>The following station(s) are closed due
to engineering works:</description>
</noService>
<closed>
<station> Green Park </station>
<station> Maida Vale </station>
</closed>
<description>The following line(s) are closed due to
flooding</description>
<DelaysLine>
<line>Jubilee line</line>
</DelaysLine>
</DisruptionsInfo>the above code will travel thro all the <between> children of the <noservice> element.
i think this would help u. -
How to add tags to photos?
After transferring photos from iPhone (or iPad) to PC I see that I can add to each photo a Tag, Title, Author or Comment, but there appears to be no way to do this on the iPhone (or iPad) when the photo has been freshly snapped. I suppose there's an app for that, but the App Store is a haystack. Is there any built-in feature to associate text with a photo?
Captions would also be nice, but the apps I have tried all seem to want to decorate a photo rather than identify it.You have to post process your html pages (editing after publishing).
You need to add title inside some html tags, three that I know of:
1. img src tag
2. a href tag
3. area href tag
ie:
a href="javascript:void(0)" title="blah blah"
or
img src="blah blah" title="blah blah"
Now, the bad part is that you have to do this EVERY time you publish your sites.
unless, you have a script to do heavy lifting -
How to add new os entry via BCDEDIT ?
hi friends.
i am familiar with bcdedit but i have a problem:
i installed win2008 R2 in drive C: & then installed win7 in drive D: . then for test purposes i deleted win2008 entry from bcd using bcdedit /delete command. now system doesn't show win2008 in boot menu and directly boots into win 7.
now in win 7 i run this command bcdedit /create /d "windows 2008R2" /application osloader
but noting happens & win2008 is not added to my bcd & boot menu.
have i missed any required steps or commands ?
thanks in advanceHi john.s,
You can examine with
Visual BCD Editor the contents of BCD.
On left pane all existing loaders are listed (as well as all other objects in BCD).
A loader for Windows 7 / 2008R2 is shown below:
(Please note that image shows EFI loader. ApplicationPath for BIOS loader is \Windows\system32\winload.exe)
Elements that must be present:
ApplicationPath, ApplicationDevice, Description (text for boot menu), OSDevice and SystemRoot. Other elements are optional and if missing have default values - for example locale defaults to en-US.
To be shown in boot menu one additional element must contain the {GUID} of the loader - DisplayOrder element in {bootmgr} object. DisplayOrder is a list of loader IDs and make up the boot menu. (Instead of the GUID the Description of the loader is shown
to the user by boot manager when displaying boot menu).
Usually bcdboot fixes wrong loader entries.
Maybe you have to delete the partial entry for 2008R2 you have created. (click on loader and select "Delete")
Visual BCD can create loaders automatically (using F9 key) by scanning all accessible partitions and adding a loader entry if an OS found does not have a corresponding loader entry in BCD.
thanks a lot -
How to add repeating comments features in Sharepoint Announcement List.
I have a challange to add commenting features in Announcement lists identical to sharepoint blogs.
When super user adds Announcement in the team page, i wanna display add comments right underneath the new announcement to people with contributer access to provide feedback to the item. It is very identical as default sharepoint issues
list where people can provide multiple comments that provides time stamp and user info about the contributor of the comment.
Any help will be appreciated.
Thank You
Napster123Hi Napster123,
Please check this. It’s about how to add comments to SharePoint. I think Steve’s suggestion would be helpful.
http://sharepoint.stackexchange.com/questions/495/how-to-add-comments-to-web-page-in-sharepoint
Hope this helps.
Thanks.
Pengyu Zhao
TechNet Community Support -
How do I add tag words to my website in iweb
I need to learn how to add tag words to my website (in iweb).
The title tag and meta description are added to the HTML doc for each page of your website. You need to do this after you have published to a local folder from iWeb using the second method shown here...
http://www.iwebformusicians.com/iWeb/Publish-Website.html
Its a lot easier to use the third party software iWeb SEO Tool...
http://www.iwebformusicians.com/Search-Engine-Optimization/Tags.html
More info about SEO here...
http://www.iwebformusicians.com/Search-Engine-Optimization/SEO.html -
FInvoice How to add the SOAP frame thru XSLT transform
Dear All,
i have the following problem i have implemented as xslt codeto send data from SAP Idoc invoic to WS Finvoic .
the coding looking as following :
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:output encoding="ISO-8859-1"/>
<xsl:template match="/">
<!-- Create SOAP-Envelope -->
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:eb="http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd">
<!-- Create Header Container -->
<SOAP-ENV:Header>
<eb:MessageHeader xmlns:eb="http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd" SOAP-ENV:mustUnderstand="1" eb:id="">
<eb:From>
<eb:PartyId>
<xsl:value-of select="Finvoice/SellerOrganisationUnitNumber"/>
</eb:PartyId>
<eb:Role>Sender</eb:Role>
</eb:From>
<eb:From>
<eb:PartyId>
<xsl:value-of select="Finvoice//SellerBic"/>
</eb:PartyId>
<eb:Role>Intermediator</eb:Role>
</eb:From>
<eb:To>
<eb:PartyId>
<xsl:value-of select="Finvoice//InvoiceRecipientAddress"/>
</eb:PartyId>
<eb:Role>Receiver</eb:Role>
</eb:To>
<eb:To>
<eb:PartyId>
<xsl:value-of select="Finvoice//InvoiceRecipientIntermediatorAddress"/>
</eb:PartyId>
<eb:Role>Intermediator</eb:Role>
</eb:To>
<eb:CPAId>yoursandmycpa</eb:CPAId>
<eb:Service>Routing</eb:Service>
<eb:Action>ProcessInvoice</eb:Action>
<eb:MessageData>
<eb:MessageId>
<xsl:value-of select="Finvoice//SellerReferenceIdentifier"/>
</eb:MessageId>
<eb:Timestamp>
<xsl:value-of select="Finvoice//InvoiceDate"/>
</eb:Timestamp>
</eb:MessageData>
</eb:MessageHeader>
</SOAP-ENV:Header>
<!-- Create Body -->
<SOAP-ENV:Body>
<eb:Manifest eb:id="Manifest" eb:version="2.0">
<eb:Reference eb:id="Finvoice" xlink:href="1009">
<eb:schema eb:location="http://www.finvoice.info/yrityksen_verkkolasku/ladattavat/Tekniset tiedostot/schemat/Finvoice.xsd"/>
</eb:Reference>
</eb:Manifest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
<!-- Add Finvoice msg. as Payload Container-->
<xsl:text disable-output-escaping="yes">
<?xml version="1.0" encoding="ISO-8859-15"?>
</xsl:text>
<xsl:text disable-output-escaping="yes">
<!DOCTYPE Finvoice SYSTEM "Finvoice.dtd">
</xsl:text>
<xsl:processing-instruction name="xml-stylesheet">type="text/xsl" href="Finvoice.xsl"</xsl:processing-instruction>
<xsl:copy-of select="*"/>
</xsl:template>
</xsl:stylesheet
My problem is that I don't know how to add the doctype part via xslt:
<?xml version="1.0" encoding="ISO-8859-15"?>
<!DOCTYPE Finvoice SYSTEM "Finvoice.dtd">
could sombody give me input concerning this
Thank in advace.
Best regards !Hi,
I don't know if I completely understand your requirements,
however, if you have the field DocType in your Idoc Structure Message, like follow:
<EDI34243 doctype="XXX"/>
You can use:
<xsl:value-of select="@doctype"/> -
How to Add Multiple Driver Packages Using Reference File via PowerShell
Hey All -
I've got a task I'm working on which would be much easier via PowerShell. I tried figuring it out, but couldn't so thought I'd post.
The Task
I need to create about 50 new, empty driver packages (most are in the same folder in the console) and am trying to find a method of doing so where I may use a source text file / csv file as reference in the command line. Each package has a unique name
and source path. Here are examples:
- Latitude E5440 Win7 x86 [A01] \\server\drivers\5440x86
- Latitude E5440 Win7 x64 [A01] \\server\drivers\5440x64
The Structure
All of the ones I want to add via PowerShell will go into the same folder in the console. They will be in the folder "root\New Drivers\Dell CAB Drivers"
Any ideas or will this just take more time than it's worth for 50? Thanks!
Ben K.Also, the creation of the driver package won't be your biggest challenge, as it's as simple as New-CMDriverPackage (see:
http://technet.microsoft.com/en-us/library/jj821724(v=sc.20).aspx).
The biggest challenge is relating your models to a share name (unless they're all Latitude).
My Blog: http://www.petervanderwoude.nl/
Follow me on twitter: pvanderwoude -
SharePoint 2010 Rest API: How to add attachment to a list item via ListData.svc
Hi
I have set up a project using the REST API in c# Visual Studio 2010.
I have added a service reference to the URL //site/_vti_bin/listdata.svc/
I can query the list and get back data, but I can't retrieve the attachments.
I can write data to the list, but I can't add attachments.
Are there any examples of how to add or retrieve attachments using the REST API services.
Thanks
MikeHi,
If you want to work with list attachments using REST API, here are some links will show how to do this using Javascript:
http://msdn.microsoft.com/en-us/library/office/dn292553.aspx#FileAttachments
http://chuvash.eu/2013/02/20/rest-api-add-a-plain-text-file-as-an-attachment-to-a-list-item/
http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2013/06/27/how-to-get-list-item-attachments-using-rest-and-javascript-in-sharepoint-2013.aspx
Best regards
Patrick Liang
TechNet Community Support -
How to add video tag in office 365 master page?
Hi All,
I have created a branding in Office 365. Now I want to add video in the background of my master page.
How should I achieve It. the <Video></Video> is not working. It is giving error to me.
Any option how to add videos in background of master page in Office 365?
Thanks in Advance.Hi,
From your description, my understanding is that you want to use video tag in your Office 365.
You should check the video type in your issue, video tag only support mp4 file which you could refer to this article:http://www.w3schools.com/tags/tag_video.asp.
In addition, you could refer to these articles:
Video Player for SharePoint 2013 and Office 365
http://sharepointroot.com/2014/01/22/video-player-for-sharepoint-2013-and-office-365-2/
how to play a video in sharepoint 2013 foundation version
https://social.msdn.microsoft.com/Forums/sharepoint/en-US/2818becf-e132-4b9a-b50f-8990fa28cf88/how-to-play-a-video-in-sharepoint-2013-foundation-version?forum=appsforsharepoint.
Best Regards
Vincent Han
TechNet Community Support -
How to add the Note board web part to a page with powershell
Hi everyone,
I've been looking around everywhere but haven't seen it explicitly mentioned.
Does anyone know how to add the Note Board web part to a Team Site page, e.g. Non-publishing site, Left Zone, First webpart in the zone in powershell?
Examples like this one http://adicodes.com/adding-web-part-to-page-with-powershell/ only talk about custom web parts uploaded from a local drive.
The example here looks good - http://spcrew.com/blogs/lists/posts/post.aspx?id=21 but is it for the Page Viewer Web Part. How would you go about getting the correct name for the note board web part and configuring it?
Many Thanks,
Ashley
function main(){
[void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
$url = "http://sp2010dev1/sites/test1"
$OpenWeb = Get-SPWeb $url
$OpenWeb
$OpenSite = Get-SPSite $url
$file = $OpenWeb.GetFile("http://sp2010dev1/sites/test1/SitePages/test1.aspx")
$WebPartManager = $file.GetLimitedWebPartManager([System.Web.UI.WebControls.WebParts.PersonalizationScope]::Shared)
Add-PageViewerWebPart "http://sp2010dev1/sites/test1" "http://sp2010dev1/sites/test1/SitePages/test1.aspx" "Body" 0 "SPCrew Site" "sp2010dev"
$OpenWeb.Dispose()
function Add-PageViewerWebPart($SiteURL, $pageUrl, $webpartzone, $index, $title, $content)
$site = new-object Microsoft.SharePoint.SPSite($SiteURL)
$web=$site.OpenWeb()
$webpartmanager=$web.GetLimitedWebPartManager($pageUrl, [System.Web.UI.WebControls.WebParts.PersonalizationScope]::Shared)
$webpart = new-object Microsoft.SharePoint.WebPartPages.PageViewerWebPart
$webpart.ChromeType = [System.Web.UI.WebControls.WebParts.PartChromeType]::TitleOnly;
$webpart.Title = $title
$webpart.ContentLink = "http://www.spcrew.com";
$webpartmanager.AddWebPart($webpart, $webpartzone, $index);
$web.Close()
$site.Close()
function Get-SPSite([string]$url) {
New-Object Microsoft.SharePoint.SPSite($url)
function Get-SPWeb([string]$url) {
$SPSite = Get-SPSite $url
return $SPSite.OpenWeb()
$SPSite.Dispose()Hi,
According to your post, my understanding is that you wanted to add the Note board web part to a page with PowerShell.
The name of the Note Board web part is SocialCommentWebPart.
I recommend to use the powershell code below:
$pageUrl="http://sitename/SitePages/test.aspx"
$SiteURL="http://sitename"
$site = new-object Microsoft.SharePoint.SPSite($SiteURL)
$web=$site.OpenWeb()
$webpartmanager=$web.GetLimitedWebPartManager($pageUrl, [System.Web.UI.WebControls.WebParts.PersonalizationScope]::Shared)
$webpart = new-object Microsoft.SharePoint.Portal.WebControls.SocialCommentWebPart
$webpart.title="Note Board"
$webpartmanager.AddWebPart($webpart, "MiddleZone", 0);
$web.Close()
Then the Note board web part will be added to the page.
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
How to add hash table values to SQL Table using Powershell
Hi,
I have sharepoint list with four(column1, column2, column3,column4)columns.I am reading the list column values and adding to hashtable. Now I want to add values from hastable to SQL table with four(column1, column2, colum3,column4)columns using powershell.
I have written the following script for single column but I would like to know how to add values for multiple columns.
if(($key -eq "Column1") )
$SqlQuery = "INSERT INTO [TableName] ([Column1]) VALUES ('" + $HashTable.Item($key) +"')"
#Set new object to connect to sql database
$connection = new-object system.data.sqlclient.sqlconnection
$Connection.ConnectionString ="server=SQLServerName;database=SQLDBName;Integrated Security = True;"
$connection #List connection information
$connection.open() #Open Connection
$Cmd = New-Object System.Data.SqlClient.SqlCommand
$Cmd.CommandText = $SqlQuery
$Cmd.Connection = $connection
$SqlAdapter = New-Object System.Data.SqlClient.SqlDataAdapter
$SqlAdapter.SelectCommand = $SqlCmd
$DataSet = New-Object System.Data.DataSet
$SqlAdapter.Fill($DataSet)
$DataSet.Tables[0]
$connection.Close()
Can anybody please help me out to accomplish the task? Any help would be greatly appreciated.
AA.Hi AOk2013,
Not knowledgable on PowercShell, based on my understanding on HashTable in Java, Some modification you can make in your code to achieve your requirement.
If the Keys in HashTable are "Column1","Column2","Column3","Column4", you can reference below.
if(($key -eq "Column1") ) #what is the purposed of this if ?
#$SqlQuery = "INSERT INTO [TableName] ([Term]) VALUES ('" + $HashTable.Item($key) +"')"
#specify the real column names in the table
$SqlQuery = "INSERT INTO [TableName] ([ColumnA],[ColumnB],[ColumnC],[ColumnD]) VALUES ('" + $HashTable.Item("Column1") +"','"+ $HashTable.Item("Column2") +"','"+$HashTable.Item("Column3") +"','"+$HashTable.Item("Column4") +"')"
#Set new object to connect to sql database
$connection = new-object system.data.sqlclient.sqlconnection
$Connection.ConnectionString ="server=SQLServerName;database=SQLDBName;Integrated Security = True;"
$connection #List connection information
$connection.open() #Open Connection
$Cmd = New-Object System.Data.SqlClient.SqlCommand
$Cmd.CommandText = $SqlQuery
$Cmd.Connection = $connection
$SqlAdapter = New-Object System.Data.SqlClient.SqlDataAdapter
$SqlAdapter.SelectCommand = $SqlCmd
$DataSet = New-Object System.Data.DataSet
$SqlAdapter.Fill($DataSet)
$DataSet.Tables[0]
$connection.Close()
Since your question is regarding PowerShell, I would suggest you post it in a dedicated
PowerShell Forum. It is more appropriate and more experts will assist you.
If you have any feedback on our support, you can click
here.
Eric Zhang
TechNet Community Support
Maybe you are looking for
-
Early 2011 MacBook Pro- The thermal paste discussion.
It is my goal to clear up the questions and concerns Apple customers have been having regarding heat or fan related concerns with Early 2011 MacBook Pros. If your MacBook Pro was produced within the last few months the thermal issue has been resolved
-
How to pass values to Oracle store procedure in Crystal Report
Hi all, I am newbie on passing values to stored procedure parameters. I created a Crystal Report using the Crystal Report wiward with PULL method and data come from Oracle stored procedure. In an ASP.NET page, I have stored two values in Session and
-
Each Hyper-V host is a Windows 2012 Server Each host is Connected to a Dell Powervault MD3260 via Dual SAS Cables. We started getting Errors similar to the Following: Log Name: System Source: Microsoft-Windows-FailoverClustering Date: 9/22/2014 12:0
-
How to reset already posted GL line item attributes
Hi Experts, I have an issue with GL line items for Bank clearing account. At the time of conversion posted the line items in bank clearing account which are not open items and also not cleared items. Now I want to make it as open items in order to cl
-
Numerous applications crashing after Maverick upgrade
One Crash report below. I'm still relatively new to Mac and up to recently a confirmed convert. However over the last few months things have gotten steadily worse in terms of application quitting and now with the Adobe Elemnets app I cannot access