# Errorlog .\Reset-Website2.ps1 sitecoredemo2 default Resetting sitecoredemo2. Get-Website : Retrieving the COM class factory for component with CLSID {688EEEE5-6A7E-422F-B2E1-6AF00DC944A6} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). At C:\inetpub\Reset-Website2.ps1:118 char:16 + $website = Get-Website -Name $sitename + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Get-Website], COMException + FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.IIs.PowerShel l.Provider.GetWebsiteCommand New-Website : Cannot retrieve the dynamic parameters for the cmdlet. Retrieving the COM class factory for component with CLSID {688EEEE5-6A7E-422F-B2E1-6AF00DC944A6} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). At C:\inetpub\Reset-Website2.ps1:122 char:6 + New-Website -Name $sitename -Port 80 -HostHeader $sitename -P ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [New-Website], ParameterBindingException + FullyQualifiedErrorId : GetDynamicParametersException,Microsoft.IIs.PowerShell.Provider.New WebsiteCommand The hosts file already contains the entry: 127.0.0.1 sitecoredemo2. File not updated. New entry, 127.0.0.1 sitecoredemo2, added to C:\Windows\System32\drivers\etc\hosts. Detaching databases. Databases detached. Beginning file copy of clean web site + database files. Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Analytics.ldf: The process cannot access the file 'sitecoredemo2_sc9_Sitecore.Analytics.ldf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (sitecoredemo2_sc9_Sitecore.Analytics.ldf:FileInfo) [Re move-Item], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Analytics.mdf: The process cannot access the file 'sitecoredemo2_sc9_Sitecore.Analytics.mdf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (sitecoredemo2_sc9_Sitecore.Analytics.mdf:FileInfo) [Re move-Item], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Core.ldf: The process cannot access the file 'sitecoredemo2_sc9_Sitecore.Core.ldf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (sitecoredemo2_sc9_Sitecore.Core.ldf:FileInfo) [Remove- Item], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Core.mdf: The process cannot access the file 'sitecoredemo2_sc9_Sitecore.Core.mdf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (sitecoredemo2_sc9_Sitecore.Core.mdf:FileInfo) [Remove- Item], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Exm.master.ldf: The process cannot access the file 'sitecoredemo2_sc9_Sitecore.Exm.master.ldf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (sitecoredemo2_s....Exm.master.ldf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Exm.master.mdf: The process cannot access the file 'sitecoredemo2_sc9_Sitecore.Exm.master.mdf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (sitecoredemo2_s....Exm.master.mdf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Experienceforms.ldf: The process cannot access the file 'sitecoredemo2_sc9_Sitecore.Experienceforms.ldf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (sitecoredemo2_s...rienceforms.ldf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Experienceforms.mdf: The process cannot access the file 'sitecoredemo2_sc9_Sitecore.Experienceforms.mdf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (sitecoredemo2_s...rienceforms.mdf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Marketingautomation.ldf: The process cannot access the file 'sitecoredemo2_sc9_Sitecore.Marketingautomation.ldf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (sitecoredemo2_s...gautomation.ldf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Marketingautomation.mdf: The process cannot access the file 'sitecoredemo2_sc9_Sitecore.Marketingautomation.mdf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (sitecoredemo2_s...gautomation.mdf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Master.ldf: The process cannot access the file 'sitecoredemo2_sc9_Sitecore.Master.ldf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (sitecoredemo2_sc9_Sitecore.Master.ldf:FileInfo) [Remov e-Item], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Master.mdf: The process cannot access the file 'sitecoredemo2_sc9_Sitecore.Master.mdf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (sitecoredemo2_sc9_Sitecore.Master.mdf:FileInfo) [Remov e-Item], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Messaging.ldf: The process cannot access the file 'sitecoredemo2_sc9_Sitecore.Messaging.ldf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (sitecoredemo2_sc9_Sitecore.Messaging.ldf:FileInfo) [Re move-Item], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Messaging.mdf: The process cannot access the file 'sitecoredemo2_sc9_Sitecore.Messaging.mdf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (sitecoredemo2_sc9_Sitecore.Messaging.mdf:FileInfo) [Re move-Item], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Processing.pools.ldf: The process cannot access the file 'sitecoredemo2_sc9_Sitecore.Processing.pools.ldf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (sitecoredemo2_s...ssing.pools.ldf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Processing.pools.mdf: The process cannot access the file 'sitecoredemo2_sc9_Sitecore.Processing.pools.mdf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (sitecoredemo2_s...ssing.pools.mdf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Processing.tasks.ldf: The process cannot access the file 'sitecoredemo2_sc9_Sitecore.Processing.tasks.ldf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (sitecoredemo2_s...ssing.tasks.ldf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Processing.tasks.mdf: The process cannot access the file 'sitecoredemo2_sc9_Sitecore.Processing.tasks.mdf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (sitecoredemo2_s...ssing.tasks.mdf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Referencedata.ldf: The process cannot access the file 'sitecoredemo2_sc9_Sitecore.Referencedata.ldf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (sitecoredemo2_s...ferencedata.ldf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Referencedata.mdf: The process cannot access the file 'sitecoredemo2_sc9_Sitecore.Referencedata.mdf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (sitecoredemo2_s...ferencedata.mdf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Sessions.ldf: The process cannot access the file 'sitecoredemo2_sc9_Sitecore.Sessions.ldf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (sitecoredemo2_sc9_Sitecore.Sessions.ldf:FileInfo) [Rem ove-Item], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Sessions.mdf: The process cannot access the file 'sitecoredemo2_sc9_Sitecore.Sessions.mdf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (sitecoredemo2_sc9_Sitecore.Sessions.mdf:FileInfo) [Rem ove-Item], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Web.ldf: The process cannot access the file 'sitecoredemo2_sc9_Sitecore.Web.ldf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (sitecoredemo2_sc9_Sitecore.Web.ldf:FileInfo) [Remove-I tem], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Web.mdf: The process cannot access the file 'sitecoredemo2_sc9_Sitecore.Web.mdf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (sitecoredemo2_sc9_Sitecore.Web.mdf:FileInfo) [Remove-I tem], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Xdb.Collection.Database.Sql.ldf: The process cannot access the file 'sitecoredemo2_sc9_Sitecore.Xdb.Collection.Database.Sql.ldf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (sitecoredemo2_s...atabase.Sql.ldf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Xdb.Collection.Database.Sql.mdf: The process cannot access the file 'sitecoredemo2_sc9_Sitecore.Xdb.Collection.Database.Sql.mdf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (sitecoredemo2_s...atabase.Sql.mdf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database: The directory is not empty. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\sitecoredemo2\database:DirectoryInfo) [Remo ve-Item], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Analytics.ldf: The process cannot access the file 'C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Analytics.ldf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...e.Analytics.ldf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Analytics.mdf: The process cannot access the file 'C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Analytics.mdf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...e.Analytics.mdf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Core.ldf: The process cannot access the file 'C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Core.ldf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...tecore.Core.ldf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Core.mdf: The process cannot access the file 'C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Core.mdf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...tecore.Core.mdf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Exm.master.ldf: The process cannot access the file 'C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Exm.master.ldf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site....Exm.master.ldf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Exm.master.mdf: The process cannot access the file 'C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Exm.master.mdf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site....Exm.master.mdf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Experienceforms.ldf: The process cannot access the file 'C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Experienceforms.ldf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...rienceforms.ldf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Experienceforms.mdf: The process cannot access the file 'C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Experienceforms.mdf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...rienceforms.mdf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Marketingautomation.ldf: The process cannot access the file 'C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Marketingautomation.ldf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...gautomation.ldf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Marketingautomation.mdf: The process cannot access the file 'C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Marketingautomation.mdf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...gautomation.mdf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Master.ldf: The process cannot access the file 'C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Master.ldf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...core.Master.ldf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Master.mdf: The process cannot access the file 'C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Master.mdf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...core.Master.mdf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Messaging.ldf: The process cannot access the file 'C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Messaging.ldf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...e.Messaging.ldf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Messaging.mdf: The process cannot access the file 'C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Messaging.mdf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...e.Messaging.mdf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Processing.pools.ldf: The process cannot access the file 'C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Processing.pools.ldf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...ssing.pools.ldf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Processing.pools.mdf: The process cannot access the file 'C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Processing.pools.mdf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...ssing.pools.mdf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Processing.tasks.ldf: The process cannot access the file 'C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Processing.tasks.ldf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...ssing.tasks.ldf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Processing.tasks.mdf: The process cannot access the file 'C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Processing.tasks.mdf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...ssing.tasks.mdf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Referencedata.ldf: The process cannot access the file 'C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Referencedata.ldf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...ferencedata.ldf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Referencedata.mdf: The process cannot access the file 'C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Referencedata.mdf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...ferencedata.mdf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Sessions.ldf: The process cannot access the file 'C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Sessions.ldf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...re.Sessions.ldf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Sessions.mdf: The process cannot access the file 'C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Sessions.mdf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...re.Sessions.mdf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Web.ldf: The process cannot access the file 'C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Web.ldf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...itecore.Web.ldf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Web.mdf: The process cannot access the file 'C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Web.mdf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...itecore.Web.mdf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Xdb.Collection.Database.Sql.ldf: The process cannot access the file 'C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Xdb.Collection.Database.Sql.ldf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...atabase.Sql.ldf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Remove-Item : Cannot remove item C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Xdb.Collection.Database.Sql.mdf: The process cannot access the file 'C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Xdb.Collection.Database.Sql.mdf' because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:49 char:130 + ... ullName -NotLike "$path\Asp_Compiler*"} | Remove-Item -Recurse -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...atabase.Sql.mdf:FileInfo) [Remove-It em], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveIte mCommand Copy-Item : An item with the specified name C:\inetpub\sitecoredemo2\Database already exists. At C:\inetpub\Reset-Website2.ps1:53 char:5 + Copy-Item $path\Clean\$target\* -Destination $path\ -Recurse + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ResourceExists: (C:\inetpub\sitecoredemo2\Database:String) [Copy-It em], IOException + FullyQualifiedErrorId : DirectoryExist,Microsoft.PowerShell.Commands.CopyItemCommand Rename-Item : Cannot create a file when that file already exists. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...e.Analytics.ldf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : Cannot create a file when that file already exists. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...e.Analytics.mdf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : Cannot create a file when that file already exists. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...tecore.Core.ldf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : Cannot create a file when that file already exists. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...tecore.Core.mdf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : Cannot create a file when that file already exists. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site....Exm.master.ldf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : Cannot create a file when that file already exists. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site....Exm.master.mdf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : Cannot create a file when that file already exists. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...rienceforms.ldf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : Cannot create a file when that file already exists. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...rienceforms.mdf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : Cannot create a file when that file already exists. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...gautomation.ldf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : Cannot create a file when that file already exists. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...gautomation.mdf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : Cannot create a file when that file already exists. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...core.Master.ldf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : Cannot create a file when that file already exists. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...core.Master.mdf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : Cannot create a file when that file already exists. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...e.Messaging.ldf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : Cannot create a file when that file already exists. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...e.Messaging.mdf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : Cannot create a file when that file already exists. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...ssing.pools.ldf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : Cannot create a file when that file already exists. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...ssing.pools.mdf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : Cannot create a file when that file already exists. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...ssing.tasks.ldf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : Cannot create a file when that file already exists. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...ssing.tasks.mdf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : Cannot create a file when that file already exists. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...ferencedata.ldf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : Cannot create a file when that file already exists. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...ferencedata.mdf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : Cannot create a file when that file already exists. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...re.Sessions.ldf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : Cannot create a file when that file already exists. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...re.Sessions.mdf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : Cannot create a file when that file already exists. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...itecore.Web.ldf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : Cannot create a file when that file already exists. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...itecore.Web.mdf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : Cannot create a file when that file already exists. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...atabase.Sql.ldf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : Cannot create a file when that file already exists. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...atabase.Sql.mdf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : The process cannot access the file because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...e.Analytics.ldf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : The process cannot access the file because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...e.Analytics.mdf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : The process cannot access the file because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...tecore.Core.ldf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : The process cannot access the file because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...tecore.Core.mdf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : The process cannot access the file because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site....Exm.master.ldf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : The process cannot access the file because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site....Exm.master.mdf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : The process cannot access the file because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...rienceforms.ldf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : The process cannot access the file because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...rienceforms.mdf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : The process cannot access the file because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...gautomation.ldf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : The process cannot access the file because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...gautomation.mdf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : The process cannot access the file because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...core.Master.ldf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : The process cannot access the file because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...core.Master.mdf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : The process cannot access the file because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...e.Messaging.ldf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : The process cannot access the file because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...e.Messaging.mdf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : The process cannot access the file because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...ssing.pools.ldf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : The process cannot access the file because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...ssing.pools.mdf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : The process cannot access the file because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...ssing.tasks.ldf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : The process cannot access the file because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...ssing.tasks.mdf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : The process cannot access the file because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...ferencedata.ldf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : The process cannot access the file because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...ferencedata.mdf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : The process cannot access the file because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...re.Sessions.ldf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : The process cannot access the file because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...re.Sessions.mdf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : The process cannot access the file because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...itecore.Web.ldf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : The process cannot access the file because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...itecore.Web.mdf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : The process cannot access the file because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...atabase.Sql.ldf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Rename-Item : The process cannot access the file because it is being used by another process. At C:\inetpub\Reset-Website2.ps1:76 char:9 + Rename-Item $file.FullName $newFileName + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (C:\inetpub\site...atabase.Sql.mdf:String) [Rename-Item ], IOException + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand Files copied. Attaching clean databases. 0 1 Attaching database: 'sc9_Sitecore.Analytics' with files: C:\inetpub\sitecoredemo2\database\sc9_Sitecore.Analytics.mdf C:\inetpub\sitecoredemo2\database\sc9_Sitecore.Analytics.ldf 0 1 Attaching database: 'sc9_Sitecore.Core' with files: C:\inetpub\sitecoredemo2\database\sc9_Sitecore.Core.mdf C:\inetpub\sitecoredemo2\database\sc9_Sitecore.Core.ldf 0 1 Attaching database: 'sc9_Sitecore.Exm.master' with files: C:\inetpub\sitecoredemo2\database\sc9_Sitecore.Exm.master.mdf C:\inetpub\sitecoredemo2\database\sc9_Sitecore.Exm.master.ldf 0 1 Attaching database: 'sc9_Sitecore.Experienceforms' with files: C:\inetpub\sitecoredemo2\database\sc9_Sitecore.Experienceforms.mdf C:\inetpub\sitecoredemo2\database\sc9_Sitecore.Experienceforms.ldf 0 1 Attaching database: 'sc9_Sitecore.Marketingautomation' with files: C:\inetpub\sitecoredemo2\database\sc9_Sitecore.Marketingautomation.mdf C:\inetpub\sitecoredemo2\database\sc9_Sitecore.Marketingautomation.ldf 0 1 Attaching database: 'sc9_Sitecore.Master' with files: C:\inetpub\sitecoredemo2\database\sc9_Sitecore.Master.mdf C:\inetpub\sitecoredemo2\database\sc9_Sitecore.Master.ldf 0 1 Attaching database: 'sc9_Sitecore.Messaging' with files: C:\inetpub\sitecoredemo2\database\sc9_Sitecore.Messaging.mdf C:\inetpub\sitecoredemo2\database\sc9_Sitecore.Messaging.ldf 0 1 Attaching database: 'sc9_Sitecore.Processing.pools' with files: C:\inetpub\sitecoredemo2\database\sc9_Sitecore.Processing.pools.mdf C:\inetpub\sitecoredemo2\database\sc9_Sitecore.Processing.pools.ldf 0 1 Attaching database: 'sc9_Sitecore.Processing.tasks' with files: C:\inetpub\sitecoredemo2\database\sc9_Sitecore.Processing.tasks.mdf C:\inetpub\sitecoredemo2\database\sc9_Sitecore.Processing.tasks.ldf 0 1 Attaching database: 'sc9_Sitecore.Referencedata' with files: C:\inetpub\sitecoredemo2\database\sc9_Sitecore.Referencedata.mdf C:\inetpub\sitecoredemo2\database\sc9_Sitecore.Referencedata.ldf 0 1 Attaching database: 'sc9_Sitecore.Sessions' with files: C:\inetpub\sitecoredemo2\database\sc9_Sitecore.Sessions.mdf C:\inetpub\sitecoredemo2\database\sc9_Sitecore.Sessions.ldf 0 1 Attaching database: 'sc9_Sitecore.Web' with files: C:\inetpub\sitecoredemo2\database\sc9_Sitecore.Web.mdf C:\inetpub\sitecoredemo2\database\sc9_Sitecore.Web.ldf 0 1 Attaching database: 'sc9_Sitecore.Xdb.Collection.Database.Sql' with files: C:\inetpub\sitecoredemo2\database\sc9_Sitecore.Xdb.Collection.Database.Sql.mdf C:\inetpub\sitecoredemo2\database\sc9_Sitecore.Xdb.Collection.Database.Sql.ldf 0 1 Attaching database: 'sitecoredemo2_sc9_Sitecore.Analytics' with files: C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Analytics.mdf C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Analytics.ldf Exception calling "AttachDatabase" with "2" argument(s): "Attach database failed for Server 'UcommerceDemo1\MSSQLSERVER01'. " At C:\inetpub\Reset-Website2.ps1:111 char:9 + $server.attachdatabase($databaseName, $files) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : FailedOperationException 0 1 Attaching database: 'sitecoredemo2_sc9_Sitecore.Core' with files: C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Core.mdf C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Core.ldf Exception calling "AttachDatabase" with "2" argument(s): "Attach database failed for Server 'UcommerceDemo1\MSSQLSERVER01'. " At C:\inetpub\Reset-Website2.ps1:111 char:9 + $server.attachdatabase($databaseName, $files) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : FailedOperationException 0 1 Attaching database: 'sitecoredemo2_sc9_Sitecore.Exm.master' with files: C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Exm.master.mdf C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Exm.master.ldf Exception calling "AttachDatabase" with "2" argument(s): "Attach database failed for Server 'UcommerceDemo1\MSSQLSERVER01'. " At C:\inetpub\Reset-Website2.ps1:111 char:9 + $server.attachdatabase($databaseName, $files) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : FailedOperationException 0 1 Attaching database: 'sitecoredemo2_sc9_Sitecore.Experienceforms' with files: C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Experienceforms.mdf C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Experienceforms.ldf Exception calling "AttachDatabase" with "2" argument(s): "Attach database failed for Server 'UcommerceDemo1\MSSQLSERVER01'. " At C:\inetpub\Reset-Website2.ps1:111 char:9 + $server.attachdatabase($databaseName, $files) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : FailedOperationException 0 1 Attaching database: 'sitecoredemo2_sc9_Sitecore.Marketingautomation' with files: C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Marketingautomation.mdf C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Marketingautomation.ldf Exception calling "AttachDatabase" with "2" argument(s): "Attach database failed for Server 'UcommerceDemo1\MSSQLSERVER01'. " At C:\inetpub\Reset-Website2.ps1:111 char:9 + $server.attachdatabase($databaseName, $files) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : FailedOperationException 0 1 Attaching database: 'sitecoredemo2_sc9_Sitecore.Master' with files: C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Master.mdf C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Master.ldf Exception calling "AttachDatabase" with "2" argument(s): "Attach database failed for Server 'UcommerceDemo1\MSSQLSERVER01'. " At C:\inetpub\Reset-Website2.ps1:111 char:9 + $server.attachdatabase($databaseName, $files) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : FailedOperationException 0 1 Attaching database: 'sitecoredemo2_sc9_Sitecore.Messaging' with files: C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Messaging.mdf C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Messaging.ldf Exception calling "AttachDatabase" with "2" argument(s): "Attach database failed for Server 'UcommerceDemo1\MSSQLSERVER01'. " At C:\inetpub\Reset-Website2.ps1:111 char:9 + $server.attachdatabase($databaseName, $files) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : FailedOperationException 0 1 Attaching database: 'sitecoredemo2_sc9_Sitecore.Processing.pools' with files: C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Processing.pools.mdf C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Processing.pools.ldf Exception calling "AttachDatabase" with "2" argument(s): "Attach database failed for Server 'UcommerceDemo1\MSSQLSERVER01'. " At C:\inetpub\Reset-Website2.ps1:111 char:9 + $server.attachdatabase($databaseName, $files) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : FailedOperationException 0 1 Attaching database: 'sitecoredemo2_sc9_Sitecore.Processing.tasks' with files: C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Processing.tasks.mdf C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Processing.tasks.ldf Exception calling "AttachDatabase" with "2" argument(s): "Attach database failed for Server 'UcommerceDemo1\MSSQLSERVER01'. " At C:\inetpub\Reset-Website2.ps1:111 char:9 + $server.attachdatabase($databaseName, $files) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : FailedOperationException 0 1 Attaching database: 'sitecoredemo2_sc9_Sitecore.Referencedata' with files: C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Referencedata.mdf C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Referencedata.ldf Exception calling "AttachDatabase" with "2" argument(s): "Attach database failed for Server 'UcommerceDemo1\MSSQLSERVER01'. " At C:\inetpub\Reset-Website2.ps1:111 char:9 + $server.attachdatabase($databaseName, $files) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : FailedOperationException 0 1 Attaching database: 'sitecoredemo2_sc9_Sitecore.Sessions' with files: C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Sessions.mdf C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Sessions.ldf Exception calling "AttachDatabase" with "2" argument(s): "Attach database failed for Server 'UcommerceDemo1\MSSQLSERVER01'. " At C:\inetpub\Reset-Website2.ps1:111 char:9 + $server.attachdatabase($databaseName, $files) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : FailedOperationException 0 1 Attaching database: 'sitecoredemo2_sc9_Sitecore.Web' with files: C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Web.mdf C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Web.ldf Exception calling "AttachDatabase" with "2" argument(s): "Attach database failed for Server 'UcommerceDemo1\MSSQLSERVER01'. " At C:\inetpub\Reset-Website2.ps1:111 char:9 + $server.attachdatabase($databaseName, $files) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : FailedOperationException 0 1 Attaching database: 'sitecoredemo2_sc9_Sitecore.Xdb.Collection.Database.Sql' with files: C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Xdb.Collection.Database.Sql.mdf C:\inetpub\sitecoredemo2\database\sitecoredemo2_sc9_Sitecore.Xdb.Collection.Database.Sql.ldf Exception calling "AttachDatabase" with "2" argument(s): "Attach database failed for Server 'UcommerceDemo1\MSSQLSERVER01'. " At C:\inetpub\Reset-Website2.ps1:111 char:9 + $server.attachdatabase($databaseName, $files) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : FailedOperationException Clean databases attached. Reset sitecoredemo2 complete. Website ready to be brought online.