Quantcast
Channel: SharePoint 2013 - Setup, Upgrade, Administration and Operations forum
Viewing all 21070 articles
Browse latest View live

Authentication Scheme change for existing user

$
0
0

In the sharepoint farm, one of our web application is changing authentication for existing users. Users were using Windows authentication but now same user would be using forms based authentication to log in to the site. 

Scenario:

User John logs in to Sharepoint site sharepoint.com using Windows authentication with domain A

Now FBA is configure for domain A and john has to start using sharepoint using FBA.

With my testing i have found that John even though present there through windows authentication will not be able to log in with FBA. And i guess that is due to identity provider. 

My question is , is there any way to effectively manage permission without having users deleted and added again using manual process. Is there a powershell script or any method to switch existing users authenitaction from windows to FBA. 


sachin


Sharepoint 2013 Problem - User Personal site is not creating

$
0
0

Hi All

     we have a issue where personal page is not creating and nothing happen when we click on newsfeed, sites and Skydrive. All the configuration in User profile, My site are configured as given in the microsoft guide.

there is an error we found using uls viewer:

"Skipping creation of personal site from MySitePersonalSiteUpgradeOnNavigationWebPart::CreatePersonalSite() because one or more of the creation criteria has not been met. [SPWeb Url=......../Person.aspx?accountname=(User Name )] htt://......./Person.aspx?accountname=username]Self-Service Site Creation == True Can Create Personal Site == False Is user licensed == False Storage&Social UPA Permission == True Site or Page or Web Part is in design mode == False"

Help me to resolve this

Thanks

joe




Apps will not load properly

$
0
0

Here's the deal...I have fully configured apps in 3 2013 environments up to this point and this time around I cannot get apps to load properly.  I get the error below in the server application log.  In short it is an Internal Server 500 error and these are the relevant lines (I think):

Exception type: UriFormatException 
Exception message: Invalid URI: The hostname could not be parsed.

My setup is as follows (as it has been in the last 3 environments I have built where apps is working):

1 x SharePoint 2013 Web server

1 x SharePoint 2013 App Server

1 x SharePoint DB Server (SQL 2012 R2)

I have configured Apps by creating the App Management and Subscription service, and creating a new web application with no host header that is listening on 443.  I have a load balancer that is also listening on 443, which has the web server on port 443 as its only load balanced node.  DNS points all request to *.appdomain.com to the load balancer on 443 then to the back end web server on 443.  I have the app domain and app domain prefix set in SharePoint CA.  I can to a site collection and browse the SharePoint App Store, install it, but when I launch it it shows me the app, but only the text.  There are no images.  And each time I try to launch the app there is a corresponding event log ASP.NET 4.0.30319.0 error 1309 which indicates the following:

Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 7/3/2014 3:52:29 PM 
Event time (UTC): 7/3/2014 7:52:29 PM 
Event ID: b2508f42438c49028d246d472a63096d 
Event sequence: 32 
Event occurrence: 22 
Event detail code: 0 
 
Application information: 
    Application domain: /LM/W3SVC/1624334000/ROOT-1-130488879715269082 
    Trust level: Full 
    Application Virtual Path: / 
    Application Path: C:\inetpub\wwwroot\wss\VirtualDirectories\appdomain.com443\ 
    Machine name: SP-DR-WEB01 
 
Process information: 
    Process ID: 5408 
    Process name: w3wp.exe 
    Account name: domain\sp_dr_app_pool 
 
Exception information: 
    Exception type: UriFormatException 
    Exception message: Invalid URI: The hostname could not be parsed.
   at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
   at Microsoft.SharePoint.SPSite.GetHostHeaderRelativeUrlFromLookupKey(String hostHeaderLookupKey)
   at Microsoft.SharePoint.SPSite.LookupSiteInfo(SPFarm farm, Boolean contextSite, Boolean swapSchemeForPathBasedSites, Uri& requestUri, Boolean& lookupRequiredContext, Guid& applicationId, Guid& contentDatabaseId, Guid& siteId, Guid& siteSubscriptionId, SPUrlZone& zone, String& serverRelativeUrl, Boolean& hostHeaderIsSiteName, Boolean& appWebRequest, String& appHostHeaderRedirectDomain, String& appSiteDomainPrefix, String& subscriptionName, String& appSiteDomainId, Uri& primaryUri)
   at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, Boolean swapSchemeForPathBasedSites, SPUserToken userToken)
   at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, Boolean swapSchemeForPathBasedSites)
   at Microsoft.SharePoint.Administration.SPAlternateUrl.GetContextUri(HttpContext ctx)
   at Microsoft.SharePoint.Publishing.CatalogUrlCache.GetFriendlyUrlCacheKeyFromContext()
   at Microsoft.SharePoint.Publishing.PublishingHttpModule.OverrideUsageAnalyticsData()
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 
 
Request information: 
    Request URL: https://apps-a7a948ec2f773b.dr.appdomain.com:443/_layouts/15/init.js?rev=/WTxr8UesytJ8GB/5hOwZA== 
    Request path: /_layouts/15/init.js 
    User host address: 10.210.1.135 
    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: domain\sp_dr_app_pool 
 
Thread information: 
    Thread ID: 41 
    Thread account name: domain\sp_dr_app_pool 
    Is impersonating: False 
    Stack trace:    at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
   at Microsoft.SharePoint.SPSite.GetHostHeaderRelativeUrlFromLookupKey(String hostHeaderLookupKey)
   at Microsoft.SharePoint.SPSite.LookupSiteInfo(SPFarm farm, Boolean contextSite, Boolean swapSchemeForPathBasedSites, Uri& requestUri, Boolean& lookupRequiredContext, Guid& applicationId, Guid& contentDatabaseId, Guid& siteId, Guid& siteSubscriptionId, SPUrlZone& zone, String& serverRelativeUrl, Boolean& hostHeaderIsSiteName, Boolean& appWebRequest, String& appHostHeaderRedirectDomain, String& appSiteDomainPrefix, String& subscriptionName, String& appSiteDomainId, Uri& primaryUri)
   at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, Boolean swapSchemeForPathBasedSites, SPUserToken userToken)
   at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, Boolean swapSchemeForPathBasedSites)
   at Microsoft.SharePoint.Administration.SPAlternateUrl.GetContextUri(HttpContext ctx)
   at Microsoft.SharePoint.Publishing.CatalogUrlCache.GetFriendlyUrlCacheKeyFromContext()
   at Microsoft.SharePoint.Publishing.PublishingHttpModule.OverrideUsageAnalyticsData()
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 
 
Custom event details: 

Any help would be GREATLY appreciated.  

Thanks. 

Use a seperate SQL server in Sharepoint 2013

$
0
0

We have SharePoint 2013 installed and running and its config, content, Search, etc. DBs on SQL 2008R2. 

I want to create several NEW SharePoint DBs on a different SQL server that is running SQL 2012 SP1 (For BI mainly) but Im getting errors when attempting to do this.  I do have rights on the server and in SQL to perform this action but what im afraid is that SharePoint doesn't allow me connect to two different SQL servers in the same SP farm.  I'm am wrong on this assumption? 

Office web apps Server for Sharepoint 2013

$
0
0

Hello,

I used the following article to install office web apps server and hook it up to a test sharepoint server:http://technet.microsoft.com/en-us/library/jj219455(v=office.15).aspx. The OWAS service was verified as working by loading:https://owas.companyname.com/hosting/discovery

For the sharepoint configuration phase, the following commands were run on the sharepoint machine:

1) New-SPWOPIBinding -ServerName "owas.companyname.com"   -- (owas.companyname.com) is the host name of the owas server)

2) Get-SPWOPIZone
3) Set-SPWOPIZone -zone "external-https"

However, office documents are still launching in the desktop office applications, not in the browser. Any ideas of what else I may need to do?

thanks,


Sherazad

New Top Support Solutions blog

$
0
0

Hello

As part of our efforts to keep our communities informed about the most relevant content that address the top questions that we are getting in out forums and other support channels we want to introduce the new “Top Solution Content” blog (http://blogs.technet.com/b/topsupportsolutions).

In this blog you will find up-to-date and valuable information about Microsoft top support solutions for several of our popular products in the Server and Tools portfolio. You can use the tags (http://blogs.technet.com/b/topsupportsolutions/archive/tags) to easily locate the product of your preference or visit the home page to see what’s going on for the different Microsoft Enterprise and developer products. As a blog you can also subscribe to post and comments using the RSS feeds.

We hope this will reduce time and effort when you are looking for relevant content. Enjoy it!

Thanks

Microsoft Support team


Qiao Wei
TechNet Community Support

No stored credentials for SSRS integrated with SharePoint 2013

$
0
0

In SharePoint 2010, I was able to report with my integrated SSRS on SharePoint lists using stored credentials.  This allowed me to set-up subscriptions for these reports.

I find now in SharePoint 2013 that I must use claims-based authentication and claims-based authentication does not allow stored credentials.  If I upgrade to SharePoint 2013, I will not be able to produce reports on SharePoint lists with subscriptions.   Is there a work around?  Am I misunderstanding? 

SharePoint 2013 SP1 Issue

$
0
0

I have installed the SP1 released (released a month ago) in both Dev and QA Environments. Now by the time I plan to install I have gone through blogs and understood that due to some issues the downloadable link for SP1 has been disabled, now do I need to wait for next rerelease of SP1?: I have not seen any issues in QA and Dev Farms after installation of SP1. Do I need to install the SP1 (with old setup that I have) in Prod 2013 or wait for rerelease? Incase if we need to wait for next SP1 release what about the SP1 installed in DEV and QA farms? Do I need to rebuild both the farms?

 

Please clarify me.

 

Thanks

Ram Ch


Thanks, Ram Ch


SharePoint database error when timer job runs

$
0
0

Hi, we are getting a SharePoint database error when timer job runs, any clues???

This is a new SharePoint 2013 install on Windows Server 2012.

The database server is Windows 2012 R2 with SQL 2012 sp1 and  CU 7.

Event viewer log
++++++++++++++++++++++++++++++++++++++++
Log Name:      Application
Source:        Microsoft-SharePoint Products-SharePoint Foundation
Date:          12/02/2014 12:00:01 AM
Event ID:      5586
Task Category: Database
Level:         Error
Keywords:     
User:          xxxxxxxxxxx
Computer:      xxxxxxxxxxxxxx
Description:
Unknown SQL Exception 21 occurred. Additional error information from SQL Server is included below.
Warning: Fatal error 7105 occurred at Feb 12 2014 12:00AM. Note the error and time, and contact your system administrator.
++++++++++++++++++++++++++++++++++++++++

ULS
++++++++++++++++++++++++++++++++++++++++
Timestamp    : 12/02/2014 12:00:02 AM
Continuation : False
Process      : OWSTIMER.EXE (0x0EB4)
ThreadID     : 3440
Area         : SharePoint Foundation
Category     : Database
EventID      : 880i
Level        : High
Message      : System.Data.SqlClient.SqlException (0x80131904): Warning: Fatal error 7105 occurred at Feb 12 2014
               12:00AM. Note the error and time, and contact your system administrator.     at
               System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1
               wrapCloseInAction)     at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject
               stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)     at
               System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader
               dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
                   at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()     at
               System.Data.SqlClient.SqlDataReader.get_MetaData()     at System.Data...
Correlation  : 5333739c-e578-9053-f07e-771f63ed369b
Context      : {}
++++++++++++++++++++++++++++++++++++++++

Trevor


TJ

Cannot delete user profiles "Sorry, this site hasn't been shared with you."

$
0
0

Hi all,

I'm unable to delete user profiles in my User Profile Service Application. Everything else seems to be working as expected with the UPA. I can create profiles manually, amend profiles etc. Full and incremental syncs with AD are working as expected. 

But if I search for a user profile then try and delete from http://CentralAdmin:1234/_layouts/15/ProfMngr.aspx within Central Admin then I get the message "Sorry, this site hasn't been shared with you."

Looking at some of the messages in the ULS logs it looks like it's to do with permissions on my My Site site collection when deleting user photos:

SPRequest.GetFileAndFolderProperties: UserPrincipalName=, AppPrincipalName= ,bstrUrl=http://mysite.contoso.org.au ,bstrStartUrl=User Photos/Profile Pictures/USER_MThumb.jpg ,ListDocsFlags=16400 ,bThrowException=False

System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)), StackTrace:   
 at Microsoft.SharePoint.SPWeb.GetFileOrFolderProperties(String strUrl, ListDocsFlags listDocsFlags, Boolean throwException, SPBasePermissions& permMask)    
 at Microsoft.SharePoint.SPFile.PropertiesCore(Boolean throwException)    
 at Microsoft.SharePoint.SPFile.get_Exists()    
 at Microsoft.Office.Server.UserProfiles.UserProfile.RemoveProfilePictures()    
 at Microsoft.Office.Server.UserProfiles.UserProfileManager.RemoveProfilePictures(Guid guid)    
 at Microsoft.Office.Server.UserProfiles.UserProfileManager.RemoveUserProfileBase(Nullable`1 guidDelete, Boolean bBypassCanary)    
 at Microsoft.Office.Server.UserProfiles.UserProfileManager.RemoveUserProfileBase(Guid guidDelete)    
 at Microsoft.Office.Server.UserProfiles.UserProfileManager.RemoveUserProfile(Guid guidDelete)    
 at Microsoft.SharePoint.Portal.UserProfiles.AdminUI.ProfileManager.HandlePostBacks()    
 at Microsoft.SharePoint.Portal.UserProfiles.AdminUI.ProfileManager.OnLoad(EventArgs e)    
 at System.Web.UI.Control.LoadRecursive()    
 at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)    
 at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)    
 at System.Web.UI.Page.ProcessRequest()    
 at System.Web.UI.Page.ProcessRequest(HttpContext context)    
 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()    
 at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)    
 at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)    
 at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)    
 at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)    
 at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)    
 at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)    
 at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)    
 at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)    
 at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)    
 at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

Access Denied. Exception: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)), StackTrace:  
 at Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAndFolderProperties(String bstrUrl, String bstrStartUrl, ListDocsFlags ListDocsFlags, Boolean bThrowException, Int32& phrStatus, Object& pvarFiles, Object& pvarDirs, UInt32& pdwNumberOfFiles, UInt32& pdwNumberOfDirs)    
 at Microsoft.SharePoint.Library.SPRequest.GetFileAndFolderProperties(String bstrUrl, String bstrStartUrl, ListDocsFlags ListDocsFlags, Boolean bThrowException, Int32& phrStatus, Object& pvarFiles, Object& pvarDirs, UInt32& pdwNumberOfFiles, UInt32& pdwNumberOfDirs).

UserProfileManager.RemoveProfilePictures() exception while deleting profile pictures of 'faece0ae-4a1c-4407-8e2f-f8b32b475fda': System.Threading.ThreadAbortException: Thread was being aborted.    
 at Microsoft.SharePoint.SPFile.get_Exists()    
 at Microsoft.Office.Server.UserProfiles.UserProfile.RemoveProfilePictures()    
 at Microsoft.Office.Server.UserProfiles.UserProfileManager.RemoveProfilePictures(Guid guid)

 

Has anyone come across this before? I'm logged in and carrying out this operation using my "admin/setup" account which is a site collection administrator of mysite, has admin/full control of the User Profile Service Application. Even with DB owner permissions (UPA databases and My Site Content DB) I still get this problem.

Thanks.

Sharepoint Kerberos Authentication and Azure

$
0
0

Hello,

I'm doing a proof of concept multi server Sharepoint farm in Azure, with a vendor recommendation of using Kerberos authentication.

I've never actually set up a multi server farm like this before, it's always been a 1 SQL to 1 Web Server which contains the App roles as well.

I currently have:

SQL1

App1

App2

Wfe1

Wfe2

I am using the following accounts in my farm:

FarmSetup

SPAdmin

SPSapp

SPWapp

I have successfully been able to join App1 to SQL1 without issue, to begin provisioning the farm.

I am able to successfully join a farm through the App2, WFE1/2 through the Sharepoint Products Config Wizard, by entering the SQL1 and providing the pass phrase.

There seems to be a link to the Central Admin site hosted upon App1 in IE that is triggered after this, which no matter what account I use, I seem to be bouncing off it.

I attempt to use spadmin, farmsetup to get through it and cannot.

When attempting to use farmsetup, I get a Kerberos error about a malformed packet, which I have resolved, by setting the spn on for the farmsetup account.

When I check in Central Admin from App 1, App 2 or WFE1/2 are available as Servers in the farm, however, when I click on the Server Names, I get this site hasn't been shared with you.

I'm at a little bit off a loss to determine where the issue lies.

cannot acquire auth metadata document from http://server1/15/_layouts/metadata/json/1

$
0
0

hi,

 When I ran the power shell script for configuring site mailbox

and i m executing this particular cmd...

.\Configure-EnterprisePartnerApplication.ps1 -ApplicationType Sharepoint -AuthMEtadataURl ....

 i am getting the from the exchange  server:

may i know how to resolve this error:

note : i have NOT added the sp 2013 farm's managed account into the exchange server's admin group.

my doubt is will this cause  an error?





Sorry, something went wrong Failed to create receiver object from assembly "Microsoft.Office.Server.WebAnalytics.UI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c", class "Microsoft.Office.Server.WebAnalytics.CustomReportsFeature" fo

$
0
0

Hi,When i try to create web app or site collection in SharePoint 2013 getting below error:

Sorry, something went wrong

Failed to create receiver object from assembly "Microsoft.Office.Server.WebAnalytics.UI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c", class "Microsoft.Office.Server.WebAnalytics.CustomReportsFeature" for feature "WACustomReports" (ID: af6d9aec-7c38-4dda-997f-cc1ddbb87c92).: System.ArgumentNullException: Value cannot be null.
Parameter name: type
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.Activator.CreateInstance(Type type)
   at Microsoft.SharePoint.Administration.SPFeatureDefinition.get_ReceiverObject()

Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Sharepoint and EPM Consultant,TCS

SharePoint 2013 Foundation - Cannot set language in Site settings

$
0
0

Hi

I've just installed SharePoint 2013 Foundation with SP1 (English veshion) and sharepointlanguagepack.exe.

But I cannot change language of site (or Site Collections) from English to another language? There is no option in Site Settings > Site Administration?

What is wrong? Foundation version doesn't suport it?


Kind Regards Tomasz

How to access on premises SharePoint 2013 Central Administration

$
0
0

Hi Expertise,

Recently our company deployed a new on premises SharePoint 2013 server, just want to know how to access the SharePoint Central Administration web page?

Thanks!

KF Hong


can't able to create managed metadata services

$
0
0

Hi,

can't able to create managed metadata services. While creating it throw timeout error. when i check in central admin the mms service is created but i can't able to see the mms proxy.

sharePoint 2013 - On Premise App model Configuration

$
0
0

Hi,

configuring App Service on-Premise SharePoint 2013.
difficulty in AppDomain-which I am deploying both Certificates on same server VM - but the  urls are not working even for the original websites.

I having two wild Card certificates.
1st-which is domain ( contoso.com ) and
2nd-subdomain ( apps.contoso.com)
Can any suggestion /-

AAM and SSL off-box termination

$
0
0

Hi!

I'm trying to configure off-box ssl termination on our site, but there's one glitch, I can't master.
I already read and understood http://technet.microsoft.com/en-us/library/cc261814%28office.12%29.aspx

But in my case, I have a litte different base configuration, where I'm not sure, if this works the same:

- we have a host-header based webapplication, called http://intranet.mycompany.com

- we have a loadbalancer that does an http->https rewrite and also does the complete off-box ssl termination. I don't want any user got to this site through http.
So basically, every request to the intranetsite becomes an httpS request automatically, the loadbalancer does all the ssl-handling and gets the contenct from the SP server through http.

- all I want to do is to change the public url of the default zone from http:// to https://, without affecting the internal url
* internal url: http://intranet.mycompany.com
* zone: default
* public url: https://intranet.mycompany.com

so that every response from SP will be httpS://intranet...

is there an easy way to achieve this?

thank you very much

michi

Upload document to folder in document library using powershell

$
0
0

Hi,

How to upload multiple documents/images to a document library/Image library using powershell?

In the library, I have a folder called Images. I want to upload the documents to that folder.

I have checked this: http://get-spscripts.com/2010/07/upload-multiple-files-into-document.html

I have used the below powershell:

function UploadImages($weburl)
{
$docLibraryName = "TestLibrary"
$localFolderPath = "c:\Install\Docs" 

Add-PsSnapin Microsoft.SharePoint.PowerShell -erroraction silentlycontinue 
$web = Get-SPWeb -Identity $webUrl

$docLibrary = $web.Lists[$docLibraryName] 
#Attach to local folder and enumerate through all files
$files = ([System.IO.DirectoryInfo] (Get-Item $localFolderPath)).GetFiles() | ForEach-Object { 

    #Create file stream object from file
    $fileStream = ([System.IO.FileInfo] (Get-Item $_.FullName)).OpenRead()
    $contents = new-object byte[] $fileStream.Length
    $fileStream.Read($contents, 0, [int]$fileStream.Length);
    $fileStream.Close(); 

    write-host "Copying" $_.Name "to" $docLibrary.Title "in" $web.Title "..." 

    #Add file
    $folder = $docLibrary.RootFolder
    $spFile = $folder.Files.Add($folder.Url + "/" + $_.Name, $contents, $true)
    $spItem = $spFile.Item 



Write-Host -f Green "Added Images to ibrary !!!"
}
}

Here the Images are added to the Root folder. How to add to the "Images" folder inside the document library.

Thanks


User profile synchronization export direction deletes values in AD

$
0
0

We have the following scenario in SharePoint 2013:
In User profile service, we have two user properties mapped with export direction to AD. "Work Email" to "mail" and "Mobile phone" to "mobile" AD attribute.
We create a new user account in the AD.
We create a new profile in SharePoint (for this new account) from the "Manage user profiles" page and we fill the above values.
We start the incremental sync and the properties are not exported to the AD only for the new profile (all other users are synced correctly).
After that first sync, any subsequent syncs work as expected.

Has anyone else experienced this issue? Or any Advice? Thanks in advance.


Viewing all 21070 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>