User Profile
mwilliams71
Brass Contributor
Joined 5 years ago
User Widgets
Recent Discussions
Re: Copy a Site Collection into another Web Application
When I run below command, it gives the error: Copy-SPSite : The content database could not be found. Copy-SPSite {Source-Site-Collection-URL} [-DestinationDatabase {Destination-Database-Name}] -TargetUrl {Target-Site-Collection-URL}1.4KViews0likes0CommentsRe: Comparing Files in two Document Libraries with PowerShell
I'm not sure how this will help me when comparing over 2,000 files in one library to another, so that the files can be exact duplicates. I would make changes in say Test Web Application in the asset library and these changes should be copied to the production web application in the asset library. It looks like the code below is only looking for words in one text file. Compare-Object -ReferenceObject (Get-Content -Path C:\Test\Testfile1.txt) -DifferenceObject (Get-Content -Path C:\Test\Testfile2.txt) InputObject SideIndicator ----------- ------------- cat => racoon => dog <= squirrel <=5KViews0likes2CommentsRe: Comparing Files in two Document Libraries with PowerShell
NanddeepNachan- Thanks for this code. This may get me started, but I need to check if any file was changed in the directory. If a file was modified in the library, copy that file to a library on a different web application.5.2KViews0likes0CommentsComparing Files in two Document Libraries with PowerShell
I have 30 files with code in a library in a web application imbedded in sub folders that I want to compare to another 30 files with code in a library in a separate web application in sub folders. If any code is different in the first document library than the second document library, I would Like to run a PowerShell script to copy the changed files and over-write the files with the same name in the second document library. I have this code so far from: https://www.sharepointdiary.com/2016/03/copy-files-between-document-libraries-using-powershell-in-sharepoint.html #Variables for Processing $SourceWebURL = "https://Your-Source-Web-URL" $TargetWebURL = "https://Your-Target-Web-URL" $SourceWeb = Get-SPWeb $SourceWebURL $TargetWeb = Get-SPWeb $TargetWebURL $SourceLibrary ="Team Docs" $TargetLibrary = "Shared Documents" $SourceFolder = $SourceWeb.GetFolder($SourceLibrary) $TargetFolder = $TargetWeb.GetFolder($TargetLibrary) #Call the Function to Copy All Files Copy-Files $SourceFolder $TargetFolder Thanks for the help, Michael Williams5.8KViews0likes10CommentsCreating Web Application Does not Automatically give Farm Account Access to Database!
I created a Web Application in SharePoint 2016 and get the error of "Object reference not set to an instance of an object." I took a look at the SQL Server database that was created and noticed that the Farm account was not granted permissions. Any help would be appreciated. Mike423Views0likes0CommentsUser Profile Service Application Will Not Create, Stuck on Starting and Gives Error.
User Profile Service Application Will Not Create, Stuck on Starting and Gives Error that says, Sorry, Something Went Wrong. I've tried just about everything. If someone can help me with this, I would appreciate it. Michael896Views0likes0Comments
Recent Blog Articles
No content to show