1] create site with "publishing site" templete
New-SPSite "http://L2P2PublicDev2.DecomNorthSea.com" -HostHeaderWebApplication "http://nit-v01-bsp2/" -Name "DNSL2P2Public" -Description "Customer root" -OwnerAlias "Nitorrnd\rahul.patil" -language 1033 -Template "BLANKINTERNETCONTAINER#0"
Note: B4 perform import cmp.. deploy .wsp for respective cmp from SharePoint Site, which u took cmp.
2] Import cmp to created site.
Import-SPWeb "http://l2p2publicdev2.decomnorthsea.com/" -Path "C:\DNS\Backup\DNSL2P2_17Nov2015_5PM.cmp" -UpdateVersions Overwrite
** Change url name
New-SPSite "http://L2P2PublicDev2.DecomAG.com" -HostHeaderWebApplication "http://nit-v01-bsp2" -Name "DNSL2P2Public" -Description "Customer root" -OwnerAlias "Nitorrnd\rahul.patil" -language 1033 -Template "BLANKINTERNETCONTAINER#0"
[It will change the name of "http://nit-v01-bsp2" by http://L2P2PublicDev2.DecomAG.com]
New-SPSite "http://L2P2PublicDev2.DecomNorthSea.com" -HostHeaderWebApplication "http://nit-v01-bsp2/" -Name "DNSL2P2Public" -Description "Customer root" -OwnerAlias "Nitorrnd\rahul.patil" -language 1033 -Template "BLANKINTERNETCONTAINER#0"
Note: B4 perform import cmp.. deploy .wsp for respective cmp from SharePoint Site, which u took cmp.
2] Import cmp to created site.
Import-SPWeb "http://l2p2publicdev2.decomnorthsea.com/" -Path "C:\DNS\Backup\DNSL2P2_17Nov2015_5PM.cmp" -UpdateVersions Overwrite
** Change url name
New-SPSite "http://L2P2PublicDev2.DecomAG.com" -HostHeaderWebApplication "http://nit-v01-bsp2" -Name "DNSL2P2Public" -Description "Customer root" -OwnerAlias "Nitorrnd\rahul.patil" -language 1033 -Template "BLANKINTERNETCONTAINER#0"
[It will change the name of "http://nit-v01-bsp2" by http://L2P2PublicDev2.DecomAG.com]
No comments:
Post a Comment