From 5abae725ab4a326082654bf86cfeb85a499c86b1 Mon Sep 17 00:00:00 2001 From: Gary Lapointe Date: Fri, 17 Jun 2016 15:54:52 -0600 Subject: [PATCH] SP2016 changes. --- Build-WSPs.ps1 | 2 + .../SiteCollections/SPCmdletRepairSite.cs | 2 +- .../WebParts/SPCmdletAddListViewWebPart.cs | 2 +- .../Common/ManagedMetadata/ExportTerms.cs | 4 +- .../Common/ManagedMetadata/ImportTerms.cs | 4 +- .../Common/WebParts/AddListViewWebPart.cs | 4 +- .../Lapointe.PowerShell.MamlGenerator.dll | Bin 18944 -> 18944 bytes .../ContentDatabases/CreateContentDB.cs | 2 +- .../ManageContentDBSettings.cs | 4 +- .../Utilities.cs | 4 +- ...apointe.SharePoint.PowerShell.dll-help.xml | 19968 ++++++++-------- .../Package/Package.Template.xml | 2 +- .../Lapointe.PowerShell.MamlGenerator.dll | Bin 18944 -> 18944 bytes .../install.bat | 2 +- 14 files changed, 10389 insertions(+), 9611 deletions(-) diff --git a/Build-WSPs.ps1 b/Build-WSPs.ps1 index 8682c61..23847fa 100644 --- a/Build-WSPs.ps1 +++ b/Build-WSPs.ps1 @@ -25,12 +25,14 @@ mkdir $outDir -Force | Out-Null $projects = @{ "$solutionFolder\Lapointe.SharePoint2010.PowerShell\Lapointe.SharePoint2010.PowerShell.csproj" = @("ReleaseMOSS", "ReleaseFoundation") "$solutionFolder\Lapointe.SharePoint2013.PowerShell\Lapointe.SharePoint2013.PowerShell.csproj" = @("ReleaseMOSS", "ReleaseFoundation") + "$solutionFolder\Lapointe.SharePoint2016.PowerShell\Lapointe.SharePoint2016.PowerShell.csproj" = @("ReleaseMOSS") } foreach ($project in $projects.Keys) { Write-Host "Building $project..." -ForegroundColor Blue foreach ($config in $projects[$project]) { $version = "SP2010" if ($project.Contains("Lapointe.SharePoint2013.PowerShell.csproj")) { $version = "SP2013" } + elseif ($project.Contains("Lapointe.SharePoint2016.PowerShell.csproj")) { $version = "SP2016" } Write-Host "Building $config..." -ForegroundColor Blue del "$outDir\$version\$config\*.wsp" -Force -ErrorAction SilentlyContinue &$msbuild $project /v:m /t:Rebuild /t:Package /p:Configuration="$config" /p:OutDir="$outDir\$version\$config" diff --git a/Lapointe.SharePoint2010.PowerShell/Cmdlets/SiteCollections/SPCmdletRepairSite.cs b/Lapointe.SharePoint2010.PowerShell/Cmdlets/SiteCollections/SPCmdletRepairSite.cs index e3c6161..d346aa4 100644 --- a/Lapointe.SharePoint2010.PowerShell/Cmdlets/SiteCollections/SPCmdletRepairSite.cs +++ b/Lapointe.SharePoint2010.PowerShell/Cmdlets/SiteCollections/SPCmdletRepairSite.cs @@ -21,7 +21,7 @@ namespace Lapointe.SharePoint.PowerShell.Cmdlets.SiteCollections [CmdletDescription("Repair a site collection that was created using the export of a web.")] [Example(Code = "PS C:\\> Get-SPSite http://portal/sites/newsitecoll | Repair-SPSite -SourceSite \"http://portal/\"", Remarks = "This example repairs the site collection located at http://portal/sites/newsitecoll using the site collection http://portal as the model site for the repairs.")] -#elif SP2013 +#else [Cmdlet("Repair", "SPMigratedSite", SupportsShouldProcess = false), SPCmdlet(RequireLocalFarmExist = true, RequireUserMachineAdmin = false, RequireUserFarmAdmin = true)] [CmdletDescription("Repair a site collection that was created using the export of a web. This cmdlet is the equivalent to the SharePoint 2010 Repair-SPSite cmdlet - it was renamed because SharePoint 2013 introduced a Repair-SPSite cmdlet which does different things.")] diff --git a/Lapointe.SharePoint2010.PowerShell/Cmdlets/WebParts/SPCmdletAddListViewWebPart.cs b/Lapointe.SharePoint2010.PowerShell/Cmdlets/WebParts/SPCmdletAddListViewWebPart.cs index 0edf4cc..19d7887 100644 --- a/Lapointe.SharePoint2010.PowerShell/Cmdlets/WebParts/SPCmdletAddListViewWebPart.cs +++ b/Lapointe.SharePoint2010.PowerShell/Cmdlets/WebParts/SPCmdletAddListViewWebPart.cs @@ -131,7 +131,7 @@ public class SPCmdletAddListViewWebPart : SPNewCmdletBaseCustom 0) @@ -401,7 +401,7 @@ private void Import(XmlElement termElement, TermSetItem parentTermSetItem) } } -#if SP2013 +#if !SP2010 // Updated provided by John Calvert XmlNodeList localpropertyNodes = termElement.SelectNodes("./LocalCustomProperties/LocalCustomProperty"); if (localpropertyNodes != null && localpropertyNodes.Count > 0) diff --git a/Lapointe.SharePoint2010.PowerShell/Common/WebParts/AddListViewWebPart.cs b/Lapointe.SharePoint2010.PowerShell/Common/WebParts/AddListViewWebPart.cs index e0addec..64edcda 100644 --- a/Lapointe.SharePoint2010.PowerShell/Common/WebParts/AddListViewWebPart.cs +++ b/Lapointe.SharePoint2010.PowerShell/Common/WebParts/AddListViewWebPart.cs @@ -79,7 +79,7 @@ public static Microsoft.SharePoint.WebPartPages.WebPart Add(string pageUrl, stri else { ((XsltListViewWebPart)lvw).ListName = list.ID.ToString("B").ToUpperInvariant(); -#if SP2013 +#if !SP2010 if (!string.IsNullOrEmpty(jsLink)) ((XsltListViewWebPart)lvw).JSLink = jsLink; #endif @@ -182,7 +182,7 @@ public static Microsoft.SharePoint.WebPartPages.WebPart AddToWikiPage(string pag else { ((XsltListViewWebPart)lvw).ListName = list.ID.ToString("B").ToUpperInvariant(); -#if SP2013 +#if !SP2010 if (!string.IsNullOrEmpty(jsLink)) ((XsltListViewWebPart)lvw).JSLink = jsLink; #endif diff --git a/Lapointe.SharePoint2010.PowerShell/ReferenceAssemblies/Lapointe.PowerShell.MamlGenerator.dll b/Lapointe.SharePoint2010.PowerShell/ReferenceAssemblies/Lapointe.PowerShell.MamlGenerator.dll index b6b0222b042fda06a9692fd74e0bdb4b062eaa8d..85cd2559fd4108bc52b9a2d5e9ac4558e200ba0a 100644 GIT binary patch literal 18944 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 F@E>D>IQjqp literal 18944 zcmeHvf1DiEac6b+Y|pRVk!EJKt3|ug2>oF8r?iql5(q45cO@-oC81p;f#gWDyRFs0 z?DWtxE3{{uEOA6|4iiXXJIL5Z7-PT?`|=?HamHY{i)9^NAz8DI~hb2!1wG~qQ`LM&w7Es9!!87 zTkv>{9todX_?Wi!)WU&7*fYX;8nuV5j+&at zVpsHz9-^(9K_}MrUFB(ene>HGEvk$NDeRfw!Zn5O0ep#OOIufVGlK1x&)tB)fAyaU z^ICtDS^2-p)$KA0pZg)VpBo2&FAHIW`ack_g%N~OP{&@ z!8NblJ9tfF^AErDqi^J{_{E8u&I4iRnd9HR<+;9BP9J#iVCnRSPAvKKsjtL7wff&~ zuWrci96lAg|Fd5>{e{_k)}J14TD+<8rF%}KkKVK<_~`RDY)d@mSPzVS^|{;Y{<7)* zKl|42ef-WB@9GKNbmCJ#{nwj6|M~g)M>Ke~<$T@vm^6TZD-=Q+yYzH|D54u_bWL0k zb+g681}0%K*zg8R)g+{^UJtzFz#6o zr`wA_Nyh4uv(~%@f$>;;*0JhP8gp%}39tPQP|n|gIczTmU)Wv(m|n_&ryXejztyYk zyG(;E0=A)LUjUIl!`aAM=W(W_CsV3*rqlvXr4)p6crryayvh`x3PHXt?C%0jo1l#) z6bW%IwI&1cKwDcpU{ zkCgqOkhh{A589VNKr)#~rq`h%dSxBKDJVFtwP&=tGg`7*4f#BVB&w%!2JK7Pss#{s z88_+_^Vh)aJPRQ5S`UNFd~F_Io1gE6GT%0ruPkp8UtPeHx73r@D}n@frzau zQn$?2b^rv&@u;l})fmRQob`K>wTasFdJJ+MVQ=8}Mu23EV!sjWiJB>XP$XW@j;y$N zmEFYyd5NJdLKxxPh0!XuK`!xTYYkL)gHp$J*`K=K0jGaC`$IM-F=s{t-rF|65q1ys ziN&&d{G{46in+2v(c*AP9G}^@Wk2-och8=!3{z8*8Cg43>Wo4XRg>o{ zLfXp6_a~&A`D=YOM5G*=ij_e9VOh4CiXiWuk@ah3R_E(zPAjEp?0!D4Rpu8;V>dNJ zypQ_mf%aV$7S-B>kQmMvO)7*WbJClENN)iMO2td}qIu43GCm98niZcFk0D%%cg~&- zv|aq(n%t^-Icu6p9rgjza4yxU&G_j3Mhsn?7Xow>_D$_-NQ;NWbZ&9BBd_gi@F$@R2ReWMK~Ughv19s*|TR&`%3V)Yb~Z!U{Tdp z?RHpnRIgO<_Ial2DYhD~Cwxj$eP_c=l6FGUQkP?;UK6L?!tR^EMKDT$XnSs{x5`pv{G$UppJqy-G zgKa@Gm`1Xgpj^#{|2+&3oTr`et*xj_ZqVGMibhUGH(3Z z4Qqi47;jjLv3^f=LQk)UyM5>1N<8(-Cgh8MWnvdN1VG9gCRuJ~Y}ImG)?m3TFDlz@%|U7m;nK^(vv6%2M8# zTDx2sGSuCpd8k599Y06L`>dI=y9rtLvK9mJ!LpN&vPe#tNyzqZw0{5b{;gOA+r+GD zdog?)wi3U>Spu>`wyW2L&s@0999 zTkFlXTGK{WxrCtVM1!*D1lnfTs?7(|0#ml3mN$H+`!(}!W&GNal*E1EJZQ!8jq9f& zT$g*ldV4=S5;5DVaQoL@ujI=f`zxNAa!t!rv>d?eqH7*!hXjw6Se$#Rl(E${o>%0i z(oGj}nC!<+BN(I%wO-(xlA_^$vJkA_b1Uu;G}*>{yT8QuC6*qtaf@kACH*R`K5vuznHw7O#1-* zio)ukd}h!@d?B^9I@ET+H{(RibCeIcoRJ}^+RjF_L#lKSLW*y`qScqbl}SM35O~{< zs)8LZ7i^Pdnr%6CO;*(<&DP!Vs>gd+537+V}>m%CYw zUBaxXLoDjU@qm(09SqqPSmFWLio;77roI|%dC(VyO_k8hv=n)77=eB~F~oiZiz03A z>JcYi!=v3S(d$2n=O9{jsLmM%`kqjoeGvQ+Wz<48$~{z6h6csee)C>vF<#Vi|WRM*wC&I*N( zMa`gnEigEN)r4{UTJffCrWYZX*dozG8~ZQcsPR)LC5H~L=vdxy;quiha9_+jXbvy{ zg^O;)Jr%AwIBrpY$;swNip=pM&eb`bau!|HPg{_tIC;>b%~$ny1C(Vbph^JGMMKzfx825p?yQ(9Xg$2`)(FKGM$&800JidJWQhR&leyS+um z=kQM95w~}_aU8w1y!avWa-)|PP|5A>H6Eaabk}l4%c6Hag;uEEM~tu1BI+*p9;L-} zr`!8|Xjnr3&F$T3JcHial{}8Ubdr|RYU$lEcU|;z=xtE6&=-vedcAJ%A>5uWrJZi? z&q2F@u5o+c1nmMEQazEGrt4fURbI*Mfgh+OJESF$O8jKTX5DEtp>dYNXn~ z68;cxH`D;A(PBWI7~{1skammUmr0u?=)_hTbctZtHr;J2`F_YUHQFN3KRbW>mw~H^ zW0e7nQC8sf0>=g3B=8dg?+|#Wz~g|kwFjjAUj&{I_)Wk$+Ft|C(|!nel3o!Q7Pyf1 z2A|dz;@I~s!0}*&-l9(hPigPay}@Uwlb#Ab5B&Fof3JOl-T*aAyk_5`Uj%=wg*BEI z2YeIjeo%WGaAW8lty$X}iczyR8cHIIe3@V;^-k^0P^TWJ|HY#;3ZH}}v%{m+ZW*;zMsbWz8e3)TKCxtFlN2L0|F-m-Yu}ZDhlfF>UG9m3o!hXz`p~2IbdpPq=xlx$d`B90OaV{b9kQ(0qWRQ z!)VV3)KT%HXr};mRQMXS7Xj+1=(EsX0=QBCu>KeNN&V+~*yuM-7*83m89y@u6I@5s zhp#E^I3S;)ypKjfVVI1IO4l37yuU>QWtL@h3m?U>)^0I6@T#j)P zrO)*K@w{CqW{W~BcRGgPJ6h)(eA#vT_ixM$U57LKrmU44rga|kG>UH&OmoGvF7ccw zQmu7znKoV#yL&cmxN7Ub{v8{3Zs_Y7=-Iiyzh_|oHneH~kX;yevLlB|?$kT>jOGa6 z0sO{cx05Yd4(-1|UEQEq93YQ-r*$v~{~!@)L$PR$4(7%^QeP&Y8L>vKe5qr@SjisE z2$zaV#lHjN1&c%x=2yxb@kV#qIahG8LlkF+s5>i~GS2vc6|^;5EFI{i9gbbFoYHu2 z{-Eub)5~Gpk-?8yEX<*zZ?jdJ0V@WS@k&m&b=YUz4oojQlIQ7EO!J3FL`*}t$yrn) z-OSvY&0kj}SW+=-KrwWcqfxdpYyvjaf8|GDOAl zvfyGu_E@Pfh7gwyk)5|TWpfr~^T0?eQyitC43#+N3SMsXTczTp-Ztb6WFO3o9)afGUJuNdaGg}Tk_W^5A92s>0`R={K4$V7^?52LhFs~ zvPTP<{0zFVCWgm`eA!hQ;V$;+x(1xgu%y&u-bck@_wc)H|WmQ$Q@Y82&Pk-DwHv5}F? zBvlHB;)3M&Bf{zI%>X zLt`bF;st=V+L_@^jy)=?dec}gC&{+awsTe{PwGJqZL%FyOZYKg1YT7J)C`MUTevK3 z$>gyUa}nVli>zR}#)_!7Wp@|d65u}lS(qGCrrJkH@18O2=v)svwn|NQghIuB+Sj2u%Ji`TNn?077j!1Nc zxubiF+u+3QPS0qeG+y3gJI+!D|oL?sz3KKkS)^LGF%{bxrAlcD4V@meP|S z8&&5a_PwvimUfLf4mJq)AcNc(wex*eDKnfYWy~DmIBVb}=jaHx~QK6*A1@;iw6swX6Or6lJ?8agQFe-(* zt)X0opNoopJNngj#X)nA6C0cngffrf&sO#pIhG^}5hfL{w9xA>xsv&_rQ|JQEuEf0@%JnM0n2F`F*P8x~7T zGG8^%c392x(Pj;ScT}`9KV3K3O22hQcyko99)e$O%*dvLm`?}#EP-dFY+nXB799p= zvg~E>({lW+0;LmIy7Gh2<(El8rJ44A5R$!F_%*=lsu7OQIs9}GzQ{>rv+zz{Ji%Eo z25bpF%;WXUOrB%e%1@nmJg^L2!jsBbY)J_cIpdH?;k_d6(NbOqB#Xf;?*)L8kisQm+Ytgv;n$u#Q8s&-Y=ZsN=_e(AN7KIJ#=L; z3a351vf&xouwu}iHO(uaRRA?77z+=R^6qM*sPbD8RJybT8DnUruvRzX_4Y2gxLS}G2h}@>>9<5kHb2w{MRT{ut*@GN~ z=~!xD-G z6R*i@#RVnlE0?pAc{fT)ra6F|``qVh&)CX}OJO=$P!$h5kllOLB>u@-IEY*W+3jlQ zO(8>e&~9iL1V#mhG5wIt0pbxHoII{$uH+p0j?9B)aN=-nQ?pQ3@+wmaH7xJzJ?|j8(q#N4k;?Uam}z zGLPbu0ei}`Ud4fZlY&GGf4n&Pe4?};1TSMb$^}5bm)IY>#p4{6O1|(+r{>D^4B7xK zs;+Ua@&c+9mFd3V`70|pGlnJq-g}mcHv^k_7GAkh#UzI)OkN>szAF2&vYJ$0`=jIK z0LO0n4&kj3&!Wv(bL@Lnyr%CSTueE_T)9iQsueJdby|ZLx%{p8_5W0+CyS%N`gtu( z&jaNlo{K7NoYTq=YK?hXy;Fjk3CD>eX-P%t6<@uVY;SH^_@BMUnaUC7^94u1Z>P$R z$+^rqsA4i$=AXXu*q#Ck_j|9w$!A^V70y?6H_C@mj&>p0+*D9SHr58KVhUO7D#DYtSY5zv6ybgj5Ng-zn_z|VJ2$u3QWTwGI(qdmqa|KhdQ5J zv+LoDwq1yqVp?KOqM@DwxXwv5>9IM9g<4{XdjUPsjGpiVJ7~Vu_BC0{x@uE#j zG~hQk+I&hh;MXr23qX4b-Wh5!Sg(arBtjd)n1*TvQq+VAX(|_NpT6qL zPkko!v&}!e`svRrdPdr_*bKGW5Ly{PMmn5 zdfka9cHF)0FMskc7k&SsiEn-XNQ*$;_{Px2)`aYq##lxPS<5EaCZN1G`QVJw&m z@Fm8iYPeX38!0hyr@+t2uq8}uR{m^807CFvl0spGAwF>&&7fQp&4@yh-;u%!u<1Ok z5x4|?gaK4zXRr=tP8>}%AVsPZOC&(e$Orr(nRFN!YDz2#xzhBI9`$7qlAESQi9eIY-5wB^A58)b-gUV!T{d zb}nfQnhB(`H_pYnmt-(dnWn-un}jq?G~nlFu^93-XdrYUc2=k=s3$_PV9;o43?*tA zHP=mJ*Toow;KgFeU@$S4{TNd+8<6DseEf(QiGT~MoKLfYRZWemIiDagj5LA5_{6CQ zD6AW!RDL|)z^}JC(FgPzJae;e=)*(*EMBW>?@6JUJGX{J1BVWbSUxj|prsluJm>3W zJg?w|NiqCJq%S+<*hTvwN?S^!dF9tEsiz-Em1(IJ%R6x^f!~xYUb|vAb8yY7O#9&K zA7W1UkZ3Yi{l5eD9KioOLj4*&+KE;#ZO22a{kU$! zbBXQ3_e9{I&nP)cmM0U-K|Wki)EaXUxOC&I$)g^p{9w8l$05F{=g(p(LjyS6@GVCX z$HmG`kTB5K0(1Gi0Gs$0NgaT_N8A-jzkp&5v-bX0;pPKAz$0D$m1-BX@nMv8R365$ z{60vW{MZ=3r^d4pt!!;K4r4PMaWQr)q=-jE0U*NL^n3vTaMj&+}%D{1}aIOty&z>jSaLdlp2r55Ec14 zta$E&(8c-2@tmw("SPSearch"); -#elif SP2013 +#else SPSearchService service = SPFarm.Local.Services.GetValue("SPSearch4"); #endif SPServiceInstance searchServiceServer = null; diff --git a/Lapointe.SharePoint2010.PowerShell/StsAdm/ContentDatabases/ManageContentDBSettings.cs b/Lapointe.SharePoint2010.PowerShell/StsAdm/ContentDatabases/ManageContentDBSettings.cs index ecc976c..d2b4b70 100644 --- a/Lapointe.SharePoint2010.PowerShell/StsAdm/ContentDatabases/ManageContentDBSettings.cs +++ b/Lapointe.SharePoint2010.PowerShell/StsAdm/ContentDatabases/ManageContentDBSettings.cs @@ -6,7 +6,7 @@ using Microsoft.SharePoint.Administration; #if SP2010 using Microsoft.SharePoint.Search.Administration; -#elif SP2013 +#else using Microsoft.SharePoint.Search.Administration; #endif using Lapointe.SharePoint.PowerShell.StsAdm.SPValidators; @@ -120,7 +120,7 @@ public override int Execute(string command, StringDictionary keyValues, out stri // matching search server using the server address property. #if SP2010 SPSearchService service = SPFarm.Local.Services.GetValue("SPSearch"); -#elif SP2013 +#else SPSearchService service = SPFarm.Local.Services.GetValue("SPSearch4"); #endif SPServiceInstance searchServiceServer = null; diff --git a/Lapointe.SharePoint2010.PowerShell/Utilities.cs b/Lapointe.SharePoint2010.PowerShell/Utilities.cs index ac19167..c9c639c 100644 --- a/Lapointe.SharePoint2010.PowerShell/Utilities.cs +++ b/Lapointe.SharePoint2010.PowerShell/Utilities.cs @@ -56,7 +56,7 @@ public static string GetGenericSetupPath(string subDir) { #if SP2010 return GetGenericSetupPath(subDir, 14); -#elif SP2013 +#else return GetGenericSetupPath(subDir, 15); #endif } @@ -64,7 +64,7 @@ public static string GetGenericSetupPath(string subDir, int desiredVersion) { #if SP2010 return SPUtility.GetGenericSetupPath(subDir); -#elif SP2013 +#else return SPUtility.GetVersionedGenericSetupPath(subDir, desiredVersion); #endif } diff --git a/Lapointe.SharePoint2013.PowerShell/POWERSHELL/Help/Lapointe.SharePoint.PowerShell.dll-help.xml b/Lapointe.SharePoint2013.PowerShell/POWERSHELL/Help/Lapointe.SharePoint.PowerShell.dll-help.xml index a25990a..467f247 100644 --- a/Lapointe.SharePoint2013.PowerShell/POWERSHELL/Help/Lapointe.SharePoint.PowerShell.dll-help.xml +++ b/Lapointe.SharePoint2013.PowerShell/POWERSHELL/Help/Lapointe.SharePoint.PowerShell.dll-help.xml @@ -1,10 +1,10 @@ - Export-SPAudienceRules - Audiences + Get-SPWordConversionJobStatus + Word Automation - Exports the rules for an audience. + Retrieves the conversion job status details. Copyright 2016 Falchion Consulting, LLC @@ -13,12 +13,12 @@ > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Export - SPAudienceRules + Get + SPWordConversionJobStatus 1.0.0.0 - Exports the rules for an audience. + Retrieves the conversion job status details. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -28,41 +28,10 @@ - Export-SPAudienceRules - - UserProfileServiceApplication - SPServiceApplicationPipeBind - - - SiteSubscription - SPSiteSubscriptionPipeBind - - - Identity - String - - - Explicit - SwitchParameter - - - AssignmentCollection - SPAssignmentCollection - - - - Export-SPAudienceRules + Get-SPWordConversionJobStatus - ContextSite - SPSitePipeBind - - - Identity - String - - - Explicit - SwitchParameter + Job + SPWordConversionJobPipeBind AssignmentCollection @@ -71,76 +40,14 @@ - - UserProfileServiceApplication - - Specifies the service application that contains the audience rules to export. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a service application (for example, ServiceApp1); or an instance of a valid SPServiceApplication object. - - SPServiceApplicationPipeBind - - SPServiceApplicationPipeBind - - - - - - - - SiteSubscription - - Specifies the site subscription containing the audience rules to export. - - The type must be a valid URL, in the form http://server_name; a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a site subscription (for example, SiteSubscription1); or an instance of a valid SiteSubscription object. - - SPSiteSubscriptionPipeBind - - SPSiteSubscriptionPipeBind - - - - - - - - ContextSite - - Specifies the URL or GUID of the Site to use for retrieving the service context. Use this parameter when the service application is not associated with the default proxy group or more than one custom proxy groups. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - - SPSitePipeBind - - SPSitePipeBind - - - - - - - - Identity - - The name of the audience to export. - - String - - String - - - - - - - - Explicit + + Job - Shows field and value attributes for every rule. + The conversion job whose status should be retrieved. - SwitchParameter + SPWordConversionJobPipeBind - SwitchParameter + SPWordConversionJobPipeBind @@ -191,46 +98,32 @@ - For more information, type "Get-Help Export-SPAudienceRules -detailed". For technical information, type "Get-Help Export-SPAudienceRules -full". + For more information, type "Get-Help Get-SPWordConversionJobStatus -detailed". For technical information, type "Get-Help Get-SPWordConversionJobStatus -full". - ------------------EXAMPLE 1----------------------- - PS C:\> $xml = Export-SPAudienceRules -UserProfileServiceApplication "30daa535-b0fe-4d10-84b0-fb04029d161a" -Name "Human Resources" - - This example gets the rules for the "Human Resources" audience from the user profile service application with ID "30daa535-b0fe-4d10-84b0-fb04029d161a". - - - - ------------------EXAMPLE 2----------------------- - PS C:\> $xml = Get-SPServiceApplication | where {$_.TypeName -eq "User Profile Service Application"} | Export-SPAudienceRules -Name "Human Resources" + ------------------EXAMPLE------------------ + PS C:\> $job = New-SPWordConversionJob -InputList "http://server_name/WordDocs" -OutputList "http://server_name/PDFDocs" -OutputFormt PDF -OutputSaveBehavior AppendIfPossible +PS C:\> Get-SPWordConversionJobStatus $job - This example gets the rules for the "Human Resources" audience(s) from all configured user profile service applications. + This example converts the documents located in http://server_name/WordDocs and stores the converted items in http://server_name/PDFDocs and then outputs the jobs status. - Export-SPAudiences - - - - Import-SPAudiences - - - - Get-SPServiceApplication + New-SPWordConversionJob - Export-SPAudiences - Audiences + New-SPWordConversionJob + Word Automation - Exports the audience and corresponding rules to XML. + Creates a new conversion job to convert one or more documents from one format to another. Copyright 2016 Falchion Consulting, LLC @@ -239,12 +132,12 @@ > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Export - SPAudiences + New + SPWordConversionJob 1.0.0.0 - Exports the audience and corresponding rules to XML. + Creates a new conversion job to convert one or more documents from one format to another. This cmdlet leverages the Word Automation Service to do the conversion. Using Word Automation Services, you can convert from Open XML WordprocessingML to other document formats. For example, you may want to convert many documents to the PDF format and spool them to a printer or send them by e-mail to your customers. Or, you can convert from other document formats (such as HTML or Word 97-2003 binary documents) to Open XML word-processing documents. By default the timer job that does the conversions is schedule to run every 15 minutes - you can change this by editing the "Word Automation Services Timer Job" timer job (or manually tell it to run immediately). If you specified the Wait parameter then it may take up to 15 minutes to respond if you have not changed this default. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -254,21 +147,53 @@ - Export-SPAudiences - - UserProfileServiceApplication - SPServiceApplicationPipeBind + New-SPWordConversionJob + + InputList + SPListPipeBind + + + OutputList + SPListPipeBind + + + OutputFormat + Automatic | Document | DocumentMacroEnabled | Document97 | Template | TemplateMacroEnabled | Template97 | MHTML | PDF | RTF | XML | XPS | DocumentStrict - SiteSubscription - SPSiteSubscriptionPipeBind + OutputSaveBehavior + AppendIfPossible | AlwaysOverwrite | AppendOnly | NeverOverwrite - Identity - String + CompatibilityMode + MaintainCurrentSetting | Word2003 | Word2007 | Word2010 | Word2013 | Current - Explicit + AddThumbnail + SwitchParameter + + + UpdateFields + SwitchParameter + + + EmbedFonts + SwitchParameter + + + MarkupView + Comments | Ink | Text | Formatting + + + RevisionState + Final | Original | FinalShowingMarkup | OriginalShowingMarkup + + + SubsetEmbeddedFonts + SwitchParameter + + + Wait SwitchParameter @@ -277,17 +202,53 @@ - Export-SPAudiences + New-SPWordConversionJob - ContextSite - SPSitePipeBind + InputFile + SPFilePipeBind - - Identity + + OutputFile String + + OutputFormat + Automatic | Document | DocumentMacroEnabled | Document97 | Template | TemplateMacroEnabled | Template97 | MHTML | PDF | RTF | XML | XPS | DocumentStrict + - Explicit + OutputSaveBehavior + AppendIfPossible | AlwaysOverwrite | AppendOnly | NeverOverwrite + + + CompatibilityMode + MaintainCurrentSetting | Word2003 | Word2007 | Word2010 | Word2013 | Current + + + AddThumbnail + SwitchParameter + + + UpdateFields + SwitchParameter + + + EmbedFonts + SwitchParameter + + + MarkupView + Comments | Ink | Text | Formatting + + + RevisionState + Final | Original | FinalShowingMarkup | OriginalShowingMarkup + + + SubsetEmbeddedFonts + SwitchParameter + + + Wait SwitchParameter @@ -295,236 +256,185 @@ SPAssignmentCollection - - - - UserProfileServiceApplication - - Specifies the service application that contains the audience to export. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a service application (for example, ServiceApp1); or an instance of a valid SPServiceApplication object. - - SPServiceApplicationPipeBind - - SPServiceApplicationPipeBind - - - - - - - - SiteSubscription - - Specifies the site subscription containing the audiences to export. - - The type must be a valid URL, in the form http://server_name; a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a site subscription (for example, SiteSubscription1); or an instance of a valid SiteSubscription object. + + New-SPWordConversionJob + + InputFolder + SPFolderPipeBind + + + OutputFolder + SPFolderPipeBind + + + Recurse + SwitchParameter + + + OutputFormat + Automatic | Document | DocumentMacroEnabled | Document97 | Template | TemplateMacroEnabled | Template97 | MHTML | PDF | RTF | XML | XPS | DocumentStrict + + + OutputSaveBehavior + AppendIfPossible | AlwaysOverwrite | AppendOnly | NeverOverwrite + + + CompatibilityMode + MaintainCurrentSetting | Word2003 | Word2007 | Word2010 | Word2013 | Current + + + AddThumbnail + SwitchParameter + + + UpdateFields + SwitchParameter + + + EmbedFonts + SwitchParameter + + + MarkupView + Comments | Ink | Text | Formatting + + + RevisionState + Final | Original | FinalShowingMarkup | OriginalShowingMarkup + + + SubsetEmbeddedFonts + SwitchParameter + + + Wait + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection + + + + + + InputList + + The input library whose items will be converted and copied to the output list. + + The value must be a valid URL in the form http://server_name - SPSiteSubscriptionPipeBind + SPListPipeBind - SPSiteSubscriptionPipeBind + SPListPipeBind - - ContextSite + + OutputList - Specifies the URL or GUID of the Site to use for retrieving the service context. Use this parameter when the service application is not associated with the default proxy group or more than one custom proxy groups. + The output library where the converted items will be stored. - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. + The value must be a valid URL in the form http://server_name - SPSitePipeBind + SPListPipeBind - SPSitePipeBind + SPListPipeBind - - Identity + + InputFile - The name of the audience to export. + The input file that will be converted and copied to the output file. + + The value must be a valid URL in the form http://server_name - String + SPFilePipeBind - String + SPFilePipeBind - - Explicit + + OutputFile - Shows field and value attributes for every rule. + The output file where the converted item will be copied to. + + The value must be a valid URL in the form http://server_name - SwitchParameter + String - SwitchParameter + String - - AssignmentCollection + + InputFolder - Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used. + The input library folder whose items will be converted and copied to the output list. - When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur. + The value must be a valid URL in the form http://server_name - SPAssignmentCollection + SPFolderPipeBind - SPAssignmentCollection + SPFolderPipeBind - - - + + OutputFolder + + The output library folder where the converted items will be stored. + + The value must be a valid URL in the form http://server_name + + SPFolderPipeBind - + SPFolderPipeBind - - - - + + + Recurse + + Recursively convert all items in the folder's sub-folders. + + SwitchParameter - + SwitchParameter - - - - - - - - For more information, type "Get-Help Export-SPAudiences -detailed". For technical information, type "Get-Help Export-SPAudiences -full". - - - - - ------------------EXAMPLE 1----------------------- - PS C:\> Export-SPAudiences -UserProfileServiceApplication "30daa535-b0fe-4d10-84b0-fb04029d161a" -Name "Human Resources" | Set-Content c:\audiences.xml - - This example exports the audience definitions and rules for the "Human Resources" audience from the user profile service application with ID "30daa535-b0fe-4d10-84b0-fb04029d161a" to the audiences.xml file. - - - - ------------------EXAMPLE 2----------------------- - PS C:\> Export-SPAudiences -UserProfileServiceApplication "30daa535-b0fe-4d10-84b0-fb04029d161a" | Set-Content c:\audiences.xml - - This example exports all audience definitions and rules from the user profile service application with ID "30daa535-b0fe-4d10-84b0-fb04029d161a" to the audiences.xml file. - - - - - - Export-SPAudienceRules - - - - Import-SPAudiences - - - - Get-SPServiceApplication - - - - - - - Get-SPAudience - Audiences - - The Get-SPAudience cmdlet returns back one or more audiences for a given User Profile Service Application. - - - Copyright 2016 Falchion Consulting, LLC - > For more information on this cmdlet and others: - > http://blog.falchionconsulting.com/ - > Use of this cmdlet is at your own risk. - > Gary Lapointe assumes no liability. - - Get - SPAudience - 1.0.0.0 - - - The Get-SPAudience cmdlet returns back one or more audiences for a given User Profile Service Application. - - Copyright 2016 Falchion Consulting, LLC - > For more information on this cmdlet and others: - > http://blog.falchionconsulting.com/ - > Use of this cmdlet is at your own risk. - > Gary Lapointe assumes no liability. - - - - Get-SPAudience - - UserProfileServiceApplication - SPServiceApplicationPipeBind - - - SiteSubscription - SPSiteSubscriptionPipeBind - - - Identity - String - - - AssignmentCollection - SPAssignmentCollection - - - - Get-SPAudience - - ContextSite - SPSitePipeBind - - - Identity - String - - - AssignmentCollection - SPAssignmentCollection - - - - - - UserProfileServiceApplication + + + OutputFormat - Specifies the service application that contains the audience to retrieve. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a service application (for example, ServiceApp1); or an instance of a valid SPServiceApplication object. + Specifies the Save format for this conversion job. The extension associated with the Save format specified here is appended to the output file if the extension is not already present. For example, when converting to PDF, a document with the output file name http://contoso/output/output.pdf would remain unchanged; a document with the output file name http://contoso/output/output.docx would be changed to http://contoso/output/output.docx.pdf. - SPServiceApplicationPipeBind + SaveFormat - SPServiceApplicationPipeBind + SaveFormat @@ -532,31 +442,30 @@ - SiteSubscription + OutputSaveBehavior - Specifies the site subscription containing the audiences to retrieve. - - The type must be a valid URL, in the form http://server_name; a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a site subscription (for example, SiteSubscription1); or an instance of a valid SiteSubscription object. + Specifies the behavior that should be applied when saving converted files to existing file names. - SPSiteSubscriptionPipeBind + SaveBehavior - SPSiteSubscriptionPipeBind + SaveBehavior - - ContextSite + + CompatibilityMode - Specifies the URL or GUID of the Site to use for retrieving the service context. Use this parameter when the service application is not associated with the default proxy group or more than one custom proxy groups. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. + Specifies the appropriate compatibility mode for the output file. If the file is not an Open XML File format document, this setting is ignored. MaintainCurrentSetting specifies that files maintain their compatibility mode as follows: + • Binary files and files in Word 97-2003 compatibility mode stay in that mode. + • Word 2007 documents or documents in Word 2007 compatibility mode stay in that mode. + • Documents upgraded to Word 2010 stay upgraded. - SPSitePipeBind + CompatibilityMode - SPSitePipeBind + CompatibilityMode @@ -564,190 +473,69 @@ - Identity + AddThumbnail - The name of the audience to retrieve. + Indicates whether the document is saved with an added thumbnail. Setting this property has the same effect as checking Save Thumbnail in the Save As dialog in Word. - String + SwitchParameter - String + SwitchParameter - - AssignmentCollection + + UpdateFields - Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used. - - When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur. + Indicates whether any fields in the document are automatically updated when the document is opened. - SPAssignmentCollection + SwitchParameter - SPAssignmentCollection + SwitchParameter - - - + + EmbedFonts + + Indicates whether fonts used within the document are obfuscated and saved within the output. This setting uses the same obfuscation mechanisms as Word. + + SwitchParameter - + SwitchParameter - - - - + + + MarkupView + + Specifies the type(s) of markup that should be shown in the document.The possible values for this property correspond to the options available on the ribbon (Tracking group, Show Markup dropdown). The default value for this property is @(Comments, Ink, Text, Formatting), which means all types of markup are shown. + + MarkupTypes - + MarkupTypes - - - - - - - - For more information, type "Get-Help Get-SPAudience -detailed". For technical information, type "Get-Help Get-SPAudience -full". - - - - - ------------------EXAMPLE 1----------------------- - PS C:\> Get-SPAudience -UserProfileServiceApplication "30daa535-b0fe-4d10-84b0-fb04029d161a" -Name "Human Resources" - - This example gets the "Human Resources" audience from the user profile service application with ID "30daa535-b0fe-4d10-84b0-fb04029d161a". - - - - ------------------EXAMPLE 2----------------------- - PS C:\> Get-SPServiceApplication | where {$_.TypeName -eq "User Profile Service Application"} | Get-SPAudience - - This example gets all audiences from all configured user profile service applications. - - - - ------------------EXAMPLE 3----------------------- - PS C:\> Get-SPServiceApplication | where {$_.TypeName -eq "User Profile Service Application"} | Get-SPAudience -Name "Human Resources" - - This example gets the "Human Resources" audience(s) from all configured user profile service applications. - - - - - - Export-SPAudienceRules - - - - Export-SPAudiences - - - - Import-SPAudiences - - - - New-SPAudience - - - - New-SPAudienceRule - - - - Remove-SPAudience - - - - Set-SPAudience - - - - Get-SPServiceApplication - - - - - - - Get-SPAudienceManager - Audiences - - Gets the AudienceManager object which can be used to manage audiences and rules. - - - Copyright 2016 Falchion Consulting, LLC - > For more information on this cmdlet and others: - > http://blog.falchionconsulting.com/ - > Use of this cmdlet is at your own risk. - > Gary Lapointe assumes no liability. - - Get - SPAudienceManager - 1.0.0.0 - - - Gets the AudienceManager object which can be used to manage audiences and rules. - - Copyright 2016 Falchion Consulting, LLC - > For more information on this cmdlet and others: - > http://blog.falchionconsulting.com/ - > Use of this cmdlet is at your own risk. - > Gary Lapointe assumes no liability. - - - - Get-SPAudienceManager - - UserProfileServiceApplication - SPServiceApplicationPipeBind - - - SiteSubscription - SPSiteSubscriptionPipeBind - - - AssignmentCollection - SPAssignmentCollection - - - - Get-SPAudienceManager - - ContextSite - SPSitePipeBind - - - AssignmentCollection - SPAssignmentCollection - - - - - - UserProfileServiceApplication + + + RevisionState - Specifies the service application that contains the audience manager to retrieve. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a service application (for example, ServiceApp1); or an instance of a valid SPServiceApplication object. + Specifies the visibility of revisions in the document. - SPServiceApplicationPipeBind + RevisionState - SPServiceApplicationPipeBind + RevisionState @@ -755,31 +543,27 @@ - SiteSubscription + SubsetEmbeddedFonts - Specifies the site subscription containing the audience manager to retrieve. - - The type must be a valid URL, in the form http://server_name; a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a site subscription (for example, SiteSubscription1); or an instance of a valid SiteSubscription object. + Indicates whether to restrict the characters that are included in the embedded font to only those characters that are required by the current document. - SPSiteSubscriptionPipeBind + SwitchParameter - SPSiteSubscriptionPipeBind + SwitchParameter - - ContextSite + + Wait - Specifies the URL or GUID of the Site to use for retrieving the service context. Use this parameter when the service application is not associated with the default proxy group or more than one custom proxy groups. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. + If specified then the cmdlet will block until the conversion completes. - SPSitePipeBind + SwitchParameter - SPSitePipeBind + SwitchParameter @@ -830,59 +614,49 @@ - For more information, type "Get-Help Get-SPAudienceManager -detailed". For technical information, type "Get-Help Get-SPAudienceManager -full". + For more information, type "Get-Help New-SPWordConversionJob -detailed". For technical information, type "Get-Help New-SPWordConversionJob -full". - ------------------EXAMPLE------------------ - PS C:\> Get-SPAudienceManager -UserProfileServiceApplication "30daa535-b0fe-4d10-84b0-fb04029d161a" + ------------------EXAMPLE 1----------------------- + PS C:\> New-SPWordConversionJob -InputList "http://server_name/WordDocs" -OutputList "http://server_name/PDFDocs" -OutputFormt PDF -OutputSaveBehavior AppendIfPossible -Wait - This example gets the audience manager for the user profile service application with ID "30daa535-b0fe-4d10-84b0-fb04029d161a". + This example converts the documents located in http://server_name/WordDocs and stores the converted items in http://server_name/PDFDocs. + + + + ------------------EXAMPLE 2----------------------- + PS C:\> New-SPWordConversionJob -InputFile "http://server_name/WordDocs/report.docx" -OutputFile "http://server_name/PDFDocs/report.pdf" -OutputFormt PDF -OutputSaveBehavior AppendIfPossible -Wait + + This example converts the document located in http://server_name/WordDocs/report.docx and stores the converted item as http://server_name/PDFDocs/report.pdf. + + + + ------------------EXAMPLE 3----------------------- + PS C:\> New-SPWordConversionJob -InputFolder "http://server_name/WordDocs/Reports" -OutputFolder "http://server_name/PDFDocs/Reports" -OutputFormt PDF -OutputSaveBehavior AppendIfPossible -Wait + + This example converts the document located in http://server_name/WordDocs/Reports and stores the converted items in http://server_name/PDFDocs/Reports. - Export-SPAudienceRules - - - - Export-SPAudiences + Get-SPList - Import-SPAudiences - - - - New-SPAudience - - - - New-SPAudienceRule - - - - Remove-SPAudience - - - - Set-SPAudience - - - - Get-SPServiceApplication + Get-SPWordConversionJobStatus - Import-SPAudiences - Audiences + Add-SPListViewWebPart + Web Parts - Imports the audience and corresponding rules from an XML file to the specified user profile service application. + Adds an XSLT List View Web Part to the specified web part page. Copyright 2016 Falchion Consulting, LLC @@ -891,12 +665,12 @@ > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Import - SPAudiences + Add + SPListViewWebPart 1.0.0.0 - Imports the audience and corresponding rules from an XML file to the specified user profile service application. + Adds an XSLT List View Web Part to the specified web part page. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -906,30 +680,105 @@ - Import-SPAudiences - - UserProfileServiceApplication - SPServiceApplicationPipeBind + Add-SPListViewWebPart + + Manager + SPLimitedWebPartManagerPipeBind + + + Zone + String + + + ZoneIndex + Int32 + + + List + SPListPipeBind + + + Web + SPWebPipeBind + + + WebPartTitle + String + + + ViewTitle + String + + + Publish + SwitchParameter + + + LinkTitle + SwitchParameter + + + JSLink + String - SiteSubscription - SPSiteSubscriptionPipeBind + ChromeType + Default | TitleAndBorder | None | TitleOnly | BorderOnly - DeleteExisting + AssignmentCollection + SPAssignmentCollection + + + + Add-SPListViewWebPart + + Manager + SPLimitedWebPartManagerPipeBind + + + Row + Int32 + + + Column + Int32 + + + AddSpace SwitchParameter - - Compile + + List + SPListPipeBind + + + Web + SPWebPipeBind + + + WebPartTitle + String + + + ViewTitle + String + + + Publish SwitchParameter - - InputFile + + LinkTitle + SwitchParameter + + + JSLink String - MapFile - String + ChromeType + Default | TitleAndBorder | None | TitleOnly | BorderOnly AssignmentCollection @@ -937,27 +786,106 @@ - Import-SPAudiences + Add-SPListViewWebPart - ContextSite - SPSitePipeBind + File + SPFilePipeBind - - DeleteExisting + + Zone + String + + + ZoneIndex + Int32 + + + List + SPListPipeBind + + + Web + SPWebPipeBind + + + WebPartTitle + String + + + ViewTitle + String + + + Publish SwitchParameter - - Compile + + LinkTitle SwitchParameter - - InputFile + + JSLink String - MapFile + ChromeType + Default | TitleAndBorder | None | TitleOnly | BorderOnly + + + AssignmentCollection + SPAssignmentCollection + + + + Add-SPListViewWebPart + + File + SPFilePipeBind + + + Row + Int32 + + + Column + Int32 + + + AddSpace + SwitchParameter + + + List + SPListPipeBind + + + Web + SPWebPipeBind + + + WebPartTitle + String + + + ViewTitle + String + + + Publish + SwitchParameter + + + LinkTitle + SwitchParameter + + + JSLink String + + ChromeType + Default | TitleAndBorder | None | TitleOnly | BorderOnly + AssignmentCollection SPAssignmentCollection @@ -965,58 +893,126 @@ - - UserProfileServiceApplication + + Manager - Specifies the service application that contains the audiences to import. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a service application (for example, ServiceApp1); or an instance of a valid SPServiceApplication object. + The URL to a web part page or an instance of an SPLimitedWebPartManager object. - SPServiceApplicationPipeBind + SPLimitedWebPartManagerPipeBind - SPServiceApplicationPipeBind + SPLimitedWebPartManagerPipeBind - - SiteSubscription + + File - Specifies the site subscription containing the audiences to update. - - The type must be a valid URL, in the form http://server_name; a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a site subscription (for example, SiteSubscription1); or an instance of a valid SiteSubscription object. + The URL to a web part page or an instance of an SPFile object. - SPSiteSubscriptionPipeBind + SPFilePipeBind - SPSiteSubscriptionPipeBind + SPFilePipeBind - - ContextSite + + List - Specifies the URL or GUID of the Site to use for retrieving the service context. Use this parameter when the service application is not associated with the default proxy group or more than one custom proxy groups. + The list to whose view will be added to the page. - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. + The value must be a valid URL in the form http://server_name/lists/listname or /lists/listname. If a server relative URL is provided then the Web parameter must be provided. - SPSitePipeBind + SPListPipeBind - SPSitePipeBind + SPListPipeBind - - DeleteExisting + + Web - Delete existing audiences prior to import. + Specifies the URL or GUID of the Web containing the list whose view will be added to the page. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. + + SPWebPipeBind + + SPWebPipeBind + + + + + + + + WebPartTitle + + The title to set the web part to. The list title will be used if not provided. + + String + + String + + + + + + + + Zone + + The name of the web part zone to add the list view web part to. + + String + + String + + + + + + + + ZoneIndex + + The index within the web part zone to add the list view web part to. + + Int32 + + Int32 + + + + + + + + ViewTitle + + The name of the view to use for the list view web part. + + String + + String + + + + + + + + Publish + + If specified, the page will be published after adding the list view web part. SwitchParameter @@ -1027,10 +1023,10 @@ - - Compile + + LinkTitle - Compile the audiences after import. + If specified, the web part title will link back to the default view for the list. SwitchParameter @@ -1041,24 +1037,52 @@ - - InputFile + + Row - XML file containing all audiences to import. The file can be generated using Export-SPAudiences. + The zone to add the web part to. - String + Int32 - String + Int32 - - MapFile + + Column - Generate a map file to use for search and replace of Audience IDs. Must be a valid filename. + The zone index to add the web part to. + + Int32 + + Int32 + + + + + + + + AddSpace + + Add some space before the web part. + + SwitchParameter + + SwitchParameter + + + + + + + + JSLink + + Set a specific JSLink file. String @@ -1069,6 +1093,20 @@ + + ChromeType + + The chrome settings for the web part. + + PartChromeType + + PartChromeType + + + + + + AssignmentCollection @@ -1113,39 +1151,46 @@ - For more information, type "Get-Help Import-SPAudiences -detailed". For technical information, type "Get-Help Import-SPAudiences -full". + For more information, type "Get-Help Add-SPListViewWebPart -detailed". For technical information, type "Get-Help Add-SPListViewWebPart -full". - ------------------EXAMPLE------------------ - PS C:\> Import-SPAudiences -UserProfileServiceApplication "30daa535-b0fe-4d10-84b0-fb04029d161a" -DeleteExisting -Compile -InputFile c:\audiences.xml + ------------------EXAMPLE 1----------------------- + PS C:\> Add-SPListViewWebPart -File "http://portal/pages/default.aspx" -List http://portal/Lists/News -WebPartTitle "News" -ViewTitle "All Items" -Zone "Left" -ZoneIndex 0 -Publish - This example imports the audience definitions and rules from the audiences.xml file to the user profile service application with ID "30daa535-b0fe-4d10-84b0-fb04029d161a". + This example adds a news list view web part to the page http://portal/pages/default.aspx. + + + + ------------------EXAMPLE 2----------------------- + PS C:\> Add-SPListViewWebPart -File "http://portal/sitepages/home.aspx" -List http://portal/Lists/News -WebPartTitle "News" -ViewTitle "All Items" -Row "1" -Column 1 -AddSpace -Publish + + This example adds a news list view web part to the wiki page http://portal/sitepages/home.aspx. - Export-SPAudienceRules + Get-SPLimitedWebPartManager - Export-SPAudiences + Get-SPPublishingPage - Get-SPServiceApplication + Get-SPFile - New-SPAudience - Audiences + Copy-SPWebPart + Web Parts - Create a new audience in the specified user profile service application. + Copies a web part from one file to another file. Copyright 2016 Falchion Consulting, LLC @@ -1154,12 +1199,12 @@ > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - New - SPAudience + Copy + SPWebPart 1.0.0.0 - Create a new audience in the specified user profile service application. + Copies a web part from one file to another file. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -1169,30 +1214,30 @@ - New-SPAudience + Copy-SPWebPart - UserProfileServiceApplication - SPServiceApplicationPipeBind + WebPartId + String - - SiteSubscription - SPSiteSubscriptionPipeBind + + SourceFile + SPFilePipeBind - - Identity - String + + TargetFile + SPFilePipeBind - Membership - None | Any | All | Mix + Publish + SwitchParameter - Owner + Zone String - Description - String + ZoneIndex + Int32 AssignmentCollection @@ -1200,26 +1245,30 @@ - New-SPAudience - - ContextSite - SPSitePipeBind - + Copy-SPWebPart - Identity + WebPartTitle String + + SourceFile + SPFilePipeBind + + + TargetFile + SPFilePipeBind + - Membership - None | Any | All | Mix + Publish + SwitchParameter - Owner + Zone String - Description - String + ZoneIndex + Int32 AssignmentCollection @@ -1228,32 +1277,28 @@ - - UserProfileServiceApplication + + WebPartId - Specifies the service application where the new audience will be created. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a service application (for example, ServiceApp1); or an instance of a valid SPServiceApplication object. + The ID of the Web Part to copy. - SPServiceApplicationPipeBind + String - SPServiceApplicationPipeBind + String - - SiteSubscription + + WebPartTitle - Specifies the site subscription containing the audiences to update. - - The type must be a valid URL, in the form http://server_name; a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a site subscription (for example, SiteSubscription1); or an instance of a valid SiteSubscription object. + The title of the Web Part to copy. - SPSiteSubscriptionPipeBind + String - SPSiteSubscriptionPipeBind + String @@ -1261,29 +1306,27 @@ - ContextSite + SourceFile - Specifies the URL or GUID of the Site to use for retrieving the service context. Use this parameter when the service application is not associated with the default proxy group or more than one custom proxy groups. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. + The URL to a web part page or an instance of an SPFile object. - SPSitePipeBind + SPFilePipeBind - SPSitePipeBind + SPFilePipeBind - - Identity + + TargetFile - The name of the audience to create. + The URL to a web part page or an instance of an SPFile object. - String + SPFilePipeBind - String + SPFilePipeBind @@ -1291,13 +1334,13 @@ - Membership + Publish - The condition under which membership is met. Valid values are None, Any, All, Mix (default is Any) + If specified the target page will be published after copying the Web Part. - RuleEnum + SwitchParameter - RuleEnum + SwitchParameter @@ -1305,9 +1348,9 @@ - Owner + Zone - The audience owner in the form domain\user + The name of the web part zone to copy the web part to. String @@ -1319,13 +1362,13 @@ - Description + ZoneIndex - The audience description + The index within the web part zone to copy the web part to. - String + Nullable`1 - String + Nullable`1 @@ -1376,39 +1419,31 @@ - For more information, type "Get-Help New-SPAudience -detailed". For technical information, type "Get-Help New-SPAudience -full". + For more information, type "Get-Help Copy-SPWebPart -detailed". For technical information, type "Get-Help Copy-SPWebPart -full". ------------------EXAMPLE------------------ - PS C:\> New-SPAudience -UserProfileServiceApplication "30daa535-b0fe-4d10-84b0-fb04029d161a" -Identity "Human Resources" -Membership Any -Owner domain\user -Description "All members of the Human Resources department." + PS C:\> Copy-SPWebPart -SourceFile "http://server_name/pages/default.aspx" -TargetFile "http://server_name/pages/test.aspx" -WebPartTitle "My Web Part" -Publish - This example creates a new audience named "Human Resources" in the user profile service application with ID "30daa535-b0fe-4d10-84b0-fb04029d161a". + This example replaces all instances of the web part who's class name is ContentByQueryWebPart with the web part who's class name is MyContentByQueryWebPart. - New-SPAudienceRule - - - - Set-SPAudience - - - - Get-SPServiceApplication + Get-SPFile - New-SPAudienceRule - Audiences + Get-SPLimitedWebPartManager + Web Parts - Create a new audience in the specified user profile service application. + Retrieves an SPLimitedWebPartManager object used for managing web parts on a page. Copyright 2016 Falchion Consulting, LLC @@ -1417,12 +1452,12 @@ > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - New - SPAudienceRule + Get + SPLimitedWebPartManager 1.0.0.0 - Create a new audience in the specified user profile service application. + Retrieves an SPLimitedWebPartManager object used for managing web parts on a page. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -1432,73 +1467,10 @@ - New-SPAudienceRule - - UserProfileServiceApplication - SPServiceApplicationPipeBind - - - SiteSubscription - SPSiteSubscriptionPipeBind - - - Identity - String - - - Clear - SwitchParameter - - - GroupExisting - SwitchParameter - - - Compile - SwitchParameter - - - Rules - XmlDocument - - - AppendOperator - AND | OR - - - AssignmentCollection - SPAssignmentCollection - - - - New-SPAudienceRule + Get-SPLimitedWebPartManager - ContextSite - SPSitePipeBind - - Identity - String - - - Clear - SwitchParameter - - - GroupExisting - SwitchParameter - - - Compile - SwitchParameter - - - Rules - XmlDocument - - - AppendOperator - AND | OR + SPLimitedWebPartManagerPipeBind AssignmentCollection @@ -1507,180 +1479,52 @@ - - UserProfileServiceApplication - - Specifies the service application that contains the audience to update. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a service application (for example, ServiceApp1); or an instance of a valid SPServiceApplication object. - - SPServiceApplicationPipeBind - - SPServiceApplicationPipeBind - - - - - - - - SiteSubscription - - Specifies the site subscription containing the audiences to update. - - The type must be a valid URL, in the form http://server_name; a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a site subscription (for example, SiteSubscription1); or an instance of a valid SiteSubscription object. - - SPSiteSubscriptionPipeBind - - SPSiteSubscriptionPipeBind - - - - - - - ContextSite - - Specifies the URL or GUID of the Site to use for retrieving the service context. Use this parameter when the service application is not associated with the default proxy group or more than one custom proxy groups. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - - SPSitePipeBind - - SPSitePipeBind - - - - - - - Identity - The name of the audience to update. - - String - - String - - - - - - - - Clear - - Clear existing rules. + The URL to a web part page or an instance of an SPLimitedWebPartManager object. - SwitchParameter + SPLimitedWebPartManagerPipeBind - SwitchParameter + SPLimitedWebPartManagerPipeBind - - GroupExisting + + AssignmentCollection - Wraps any existing rules in parantheses. + Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used. + + When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur. - SwitchParameter + SPAssignmentCollection - SwitchParameter + SPAssignmentCollection - - Compile - - Compile the audiences after update. - - SwitchParameter + + + - SwitchParameter + - - - Rules - - The rules XML should be in the following format: <rules><rule op='' field='' value='' /></rules> - - Values for the "op" attribute can be any of "=,>,>=,<,<=,<>,Contains,Not contains,Reports Under,Member Of,AND,OR,(,)" - - The "field" attribute is not required if "op" is any of "Reports Under,Member Of,AND,OR,(,)" - - The "value" attribute is not required if "op" is any of "AND,OR,(,)" - - Note that if your rules contain any grouping or mixed logic then you will not be able to manage the rule via the browser. - - Example: <rules><rule op='Member of' value='sales department' /><rule op='AND' /><rule op='Contains' field='Department' value='Sales' /></rules> - - XmlDocument + + + + - XmlDocument - - - - - - - - AppendOperator - - Operator used to append to existing rules. Valid values are AND or OR. Default is AND - - Nullable`1 - - Nullable`1 - - - - - - - - AssignmentCollection - - Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used. - - When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur. - - SPAssignmentCollection - - SPAssignmentCollection - - - - - - - - - - - - - - - - - - - - - - + @@ -1693,40 +1537,37 @@ - For more information, type "Get-Help New-SPAudienceRule -detailed". For technical information, type "Get-Help New-SPAudienceRule -full". + For more information, type "Get-Help Get-SPLimitedWebPartManager -detailed". For technical information, type "Get-Help Get-SPLimitedWebPartManager -full". ------------------EXAMPLE------------------ - PS C:\> [xml]$rules = "<rules><rule op='Member of' value='sales department' /><rule op='AND' /><rule op='Contains' field='Department' value='Human Resources' /></rules>" -PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10-84b0-fb04029d161a" -Identity "Human Resources" -Clear -Compile" -Rules $rules + PS C:\> Start-SPAssignment -Global +PS C:\> $mgr = Get-SPLimitedWebPartManager "http://portal/pages/default.aspx" +PS C:\> Stop-SPAssignment -Global - This example adds a new rule to the audience named "Human Resources" in the user profile service application with ID "30daa535-b0fe-4d10-84b0-fb04029d161a". + This exmple retrieves the SPLimitedWebPartManager associated with http://portal/pages/default.aspx. - New-SPAudience - - - - Set-SPAudience + Get-SPPublishingPage - Get-SPServiceApplication + Get-SPFile - Remove-SPAudience - Audiences + Get-SPWebPartList + Web Parts - The Remove-SPAudience cmdlet deletes the specified audience from the given User Profile Service Application. + Retrieves a listing of web parts on a page in XML format. Copyright 2016 Falchion Consulting, LLC @@ -1735,12 +1576,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Remove - SPAudience + Get + SPWebPartList 1.0.0.0 - The Remove-SPAudience cmdlet deletes the specified audience from the given User Profile Service Application. + Retrieves a listing of web parts on a page in XML format. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -1750,21 +1591,13 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Remove-SPAudience - - UserProfileServiceApplication - SPServiceApplicationPipeBind - - - SiteSubscription - SPSiteSubscriptionPipeBind - - - Identity - String + Get-SPWebPartList + + Manager + SPLimitedWebPartManagerPipeBind - DeleteRulesOnly + Minimal SwitchParameter @@ -1773,17 +1606,13 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Remove-SPAudience + Get-SPWebPartList - ContextSite - SPSitePipeBind - - - Identity - String + File + SPFilePipeBind - DeleteRulesOnly + Minimal SwitchParameter @@ -1793,62 +1622,28 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - - UserProfileServiceApplication - - Specifies the service application that contains the audience to remove. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a service application (for example, ServiceApp1); or an instance of a valid SPServiceApplication object. - - SPServiceApplicationPipeBind - - SPServiceApplicationPipeBind - - - - - - - - SiteSubscription - - Specifies the site subscription containing the audiences to update. - - The type must be a valid URL, in the form http://server_name; a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a site subscription (for example, SiteSubscription1); or an instance of a valid SiteSubscription object. - - SPSiteSubscriptionPipeBind - - SPSiteSubscriptionPipeBind - - - - - - - ContextSite + Manager - Specifies the URL or GUID of the Site to use for retrieving the service context. Use this parameter when the service application is not associated with the default proxy group or more than one custom proxy groups. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. + The URL to a web part page or an instance of an SPLimitedWebPartManager object. - SPSitePipeBind + SPLimitedWebPartManagerPipeBind - SPSitePipeBind + SPLimitedWebPartManagerPipeBind - - Identity + + File - The name of the audience to remove. + The URL to a web part page or an instance of an SPFile object. - String + SPFilePipeBind - String + SPFilePipeBind @@ -1856,9 +1651,9 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - DeleteRulesOnly + Minimal - Delete only the rules associated with the audience. + Retrieves a minimal XML listing of the web parts on the page. SwitchParameter @@ -1913,62 +1708,46 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help Remove-SPAudience -detailed". For technical information, type "Get-Help Remove-SPAudience -full". + For more information, type "Get-Help Get-SPWebPartList -detailed". For technical information, type "Get-Help Get-SPWebPartList -full". ------------------EXAMPLE 1----------------------- - PS C:\> Remove-SPAudience -UserProfileServiceApplication "30daa535-b0fe-4d10-84b0-fb04029d161a" -Name "Human Resources" -DeleteRulesOnly + PS C:\> $xml = Get-SPWebPartList -File "http://portal/pages/default.aspx" - This example deletes only the rules from the "Human Resources" audience located in the user profile service application with ID "30daa535-b0fe-4d10-84b0-fb04029d161a". + This example retrieves a listing of web parts associated with the page http://portal/pages/default.aspx. ------------------EXAMPLE 2----------------------- - PS C:\> Remove-SPAudience -UserProfileServiceApplication "30daa535-b0fe-4d10-84b0-fb04029d161a" -Name "Human Resources" + PS C:\> $xml = Get-SPLimitedWebPartManager "http://portal/pages/default.aspx" | Get-SPWebPartList - This example deletes the "Human Resources" audience from the user profile service application with ID "30daa535-b0fe-4d10-84b0-fb04029d161a". + This example retrieves a listing of web parts associated with the page http://portal/pages/default.aspx. - Export-SPAudienceRules - - - - Export-SPAudiences - - - - Import-SPAudiences - - - - New-SPAudience - - - - New-SPAudienceRule + Get-SPLimitedWebPartManager - Set-SPAudience + Get-SPPublishingPage - Get-SPServiceApplication + Get-SPFile - Set-SPAudience - Audiences + Import-SPWebPart + Web Parts - Create a new audience in the specified user profile service application. + Imports a web part to a page. Copyright 2016 Falchion Consulting, LLC @@ -1977,12 +1756,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Set - SPAudience + Import + SPWebPart 1.0.0.0 - Create a new audience in the specified user profile service application. + Imports a web part to a page. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -1992,716 +1771,407 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Set-SPAudience - - UserProfileServiceApplication - SPServiceApplicationPipeBind - - - SiteSubscription - SPSiteSubscriptionPipeBind + Import-SPWebPart + + Manager + SPLimitedWebPartManagerPipeBind - Identity + Zone String - Membership - None | Any | All | Mix - - - Owner - String + ZoneIndex + Int32 - Description - String + DeleteExisting + SwitchParameter - AssignmentCollection - SPAssignmentCollection - - - - Set-SPAudience - - ContextSite - SPSitePipeBind + CustomReplaceText + PropertiesPipeBind Identity - String + XmlDocumentPipeBind - Membership - None | Any | All | Mix + WebPartTitle + String - Owner - String + Publish + SwitchParameter - Description - String + ChromeType + Default | TitleAndBorder | None | TitleOnly | BorderOnly AssignmentCollection SPAssignmentCollection - - - - UserProfileServiceApplication - - Specifies the service application that contains the audience to update. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a service application (for example, ServiceApp1); or an instance of a valid SPServiceApplication object. - - SPServiceApplicationPipeBind - - SPServiceApplicationPipeBind - - - - - - - - SiteSubscription - - Specifies the site subscription containing the audiences to update. - - The type must be a valid URL, in the form http://server_name; a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a site subscription (for example, SiteSubscription1); or an instance of a valid SiteSubscription object. - - SPSiteSubscriptionPipeBind - - SPSiteSubscriptionPipeBind - - - - - - - - ContextSite - - Specifies the URL or GUID of the Site to use for retrieving the service context. Use this parameter when the service application is not associated with the default proxy group or more than one custom proxy groups. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - - SPSitePipeBind - - SPSitePipeBind - - - - - - - - Identity - - The name of the audience to update. - - String - - String - - - - - - - - Membership - - The condition under which membership is met. Valid values are None, Any, All, Mix (default is Any) - - Nullable`1 - - Nullable`1 - - - - - - - - Owner - - The audience owner in the form domain\user - - String - - String - - - - - - - - Description - - The audience description - - String - - String - - - - - - - - AssignmentCollection - - Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used. - - When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur. - - SPAssignmentCollection - - SPAssignmentCollection - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - For more information, type "Get-Help Set-SPAudience -detailed". For technical information, type "Get-Help Set-SPAudience -full". - - - - - ------------------EXAMPLE------------------ - PS C:\> Set-SPAudience -UserProfileServiceApplication "30daa535-b0fe-4d10-84b0-fb04029d161a" -Identity "Human Resources" -Membership Any -Owner domain\user -Description "All members of the Human Resources department." - - This example updates the audience named "Human Resources" in the user profile service application with ID "30daa535-b0fe-4d10-84b0-fb04029d161a". - - - - - - New-SPAudienceRule - - - - New-SPAudience - - - - Get-SPServiceApplication - - - - - - - Copy-SPContentType - Content Types - - Copies all Content Types from one gallery to another. - - - Copyright 2016 Falchion Consulting, LLC - > For more information on this cmdlet and others: - > http://blog.falchionconsulting.com/ - > Use of this cmdlet is at your own risk. - > Gary Lapointe assumes no liability. - - Copy - SPContentType - 1.0.0.0 - - - Copies all Content Types from one gallery to another. - - Copyright 2016 Falchion Consulting, LLC - > For more information on this cmdlet and others: - > http://blog.falchionconsulting.com/ - > Use of this cmdlet is at your own risk. - > Gary Lapointe assumes no liability. - - - Copy-SPContentType - - SourceContentType - SPContentTypePipeBind + Import-SPWebPart + + Manager + SPLimitedWebPartManagerPipeBind - - SourceWeb - SPWebPipeBind + + Row + Int32 - TargetWeb - SPWebPipeBind + Column + Int32 - NoWorkflows + AddSpace SwitchParameter - NoDocTemplate - SwitchParameter + CustomReplaceText + PropertiesPipeBind - - NoPolicies - SwitchParameter + + Identity + XmlDocumentPipeBind - NoDocInfoPanel - SwitchParameter + WebPartTitle + String - NoDocConversions + Publish SwitchParameter - NoColumns - SwitchParameter + ChromeType + Default | TitleAndBorder | None | TitleOnly | BorderOnly AssignmentCollection SPAssignmentCollection - - - - SourceContentType - - The content type to copy. The type must be a valid content type name; a valid content type ID, in the form 0x0123...; or an instance of an SPContentType object. - - SPContentTypePipeBind - - SPContentTypePipeBind - - - - - - - - SourceWeb - - The source web containing the content type to copy. - - The value must be a valid URL in the form http://server_name - - SPWebPipeBind - - SPWebPipeBind - - - - - - - - TargetWeb - - The target web containing to copy the content type to. - - The value must be a valid URL in the form http://server_name - - SPWebPipeBind - - SPWebPipeBind - - - - - - - - NoWorkflows - - Do not copy any workflow associations. - - SwitchParameter - - SwitchParameter - - - - - - - - NoDocTemplate - - Do not copy the document template. - - SwitchParameter - - SwitchParameter - - - - - - - - NoPolicies - - Do not copy the information rights policies. - - SwitchParameter - - SwitchParameter - - - - - - - - NoDocInfoPanel - - Do not copy the document information panel. - - SwitchParameter - - SwitchParameter - - - - - - - - NoDocConversions - - Do not copy the document conversion settings. - - SwitchParameter - - SwitchParameter - - - - - - - - NoColumns - - Do not copy fields associated with the content type. - - SwitchParameter - - SwitchParameter - - - - - - - - AssignmentCollection - - Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used. - - When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur. - - SPAssignmentCollection - - SPAssignmentCollection - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - For more information, type "Get-Help Copy-SPContentType -detailed". For technical information, type "Get-Help Copy-SPContentType -full". - - - - - ------------------EXAMPLE------------------ - PS C:\> Copy-SPContentType -SourceContentType ContentType1 -SourceWeb "http://server_name/sites/site1" -TargetWeb "http://server_name/sites/site2" - - This example copies the ContentType1 content type from site1 to site2. - - - - - - Export-SPContentType - - - - Get-SPContentType - - - - Propagate-SPContentType - - - - Get-SPWeb - - - - - - - Export-SPContentType - Content Types - - Exports a Content Types to an XML file or the pipeline. - - - Copyright 2016 Falchion Consulting, LLC - > For more information on this cmdlet and others: - > http://blog.falchionconsulting.com/ - > Use of this cmdlet is at your own risk. - > Gary Lapointe assumes no liability. - - Export - SPContentType - 1.0.0.0 - - - Exports a Content Types to an XML file or the pipeline. - - Copyright 2016 Falchion Consulting, LLC - > For more information on this cmdlet and others: - > http://blog.falchionconsulting.com/ - > Use of this cmdlet is at your own risk. - > Gary Lapointe assumes no liability. - - - Export-SPContentType - - Web - SPWebPipeBind[] + Import-SPWebPart + + Manager + SPLimitedWebPartManagerPipeBind - - ContentType + + Zone String - Group - String + ZoneIndex + Int32 - ListName - String + DeleteExisting + SwitchParameter - - Web - SPWebPipeBind[] + + CustomReplaceText + PropertiesPipeBind - - ContentType + + Assembly String - Group + TypeName String - ListName + WebPartTitle String - - - Export-SPContentType - Web - SPWebPipeBind[] + Publish + SwitchParameter + + + ChromeType + Default | TitleAndBorder | None | TitleOnly | BorderOnly + + + AssignmentCollection + SPAssignmentCollection + + + Import-SPWebPart - Identity - SPContentTypePipeBind + Manager + SPLimitedWebPartManagerPipeBind - Web - SPWebPipeBind[] + Row + Int32 - - ContentType + + Column + Int32 + + + AddSpace + SwitchParameter + + + Assembly String - Group + TypeName String - ListName + WebPartTitle String + + Publish + SwitchParameter + + + ChromeType + Default | TitleAndBorder | None | TitleOnly | BorderOnly + + + AssignmentCollection + SPAssignmentCollection + - Export-SPContentType - - List - SPListPipeBind[] + Import-SPWebPart + + File + SPFilePipeBind - - ContentType + + Zone String + + ZoneIndex + Int32 + + + DeleteExisting + SwitchParameter + + + CustomReplaceText + PropertiesPipeBind + - Web - SPWebPipeBind[] + Identity + XmlDocumentPipeBind - - ContentType + + WebPartTitle String - Group - String + Publish + SwitchParameter - ListName + ChromeType + Default | TitleAndBorder | None | TitleOnly | BorderOnly + + + AssignmentCollection + SPAssignmentCollection + + + + Import-SPWebPart + + File + SPFilePipeBind + + + Row + Int32 + + + Column + Int32 + + + AddSpace + SwitchParameter + + + CustomReplaceText + PropertiesPipeBind + + + Identity + XmlDocumentPipeBind + + + WebPartTitle String + + Publish + SwitchParameter + + + ChromeType + Default | TitleAndBorder | None | TitleOnly | BorderOnly + + + AssignmentCollection + SPAssignmentCollection + - Export-SPContentType + Import-SPWebPart + + File + SPFilePipeBind + + + Zone + String + - List - SPListPipeBind[] + ZoneIndex + Int32 + + + DeleteExisting + SwitchParameter + + + CustomReplaceText + PropertiesPipeBind + + + Assembly + String + + + TypeName + String + + + WebPartTitle + String + + + Publish + SwitchParameter + + + ChromeType + Default | TitleAndBorder | None | TitleOnly | BorderOnly + + + AssignmentCollection + SPAssignmentCollection + + + Import-SPWebPart - Identity - SPContentTypePipeBind + File + SPFilePipeBind - Web - SPWebPipeBind[] + Row + Int32 - - ContentType + + Column + Int32 + + + AddSpace + SwitchParameter + + + Assembly String - Group + TypeName String - ListName + WebPartTitle String + + Publish + SwitchParameter + + + ChromeType + Default | TitleAndBorder | None | TitleOnly | BorderOnly + + + AssignmentCollection + SPAssignmentCollection + - - Web + + Manager - The source web containing the content type to export. - - The value must be a valid URL in the form http://server_name + The URL to a web part page or an instance of an SPLimitedWebPartManager object. - SPWebPipeBind[] + SPLimitedWebPartManagerPipeBind - SPWebPipeBind[] + SPLimitedWebPartManagerPipeBind - - List + + File - The source list containing the content type to export. - - The value must be a valid URL in the form http://server_name + The URL to a web part page or an instance of an SPFile object. - SPListPipeBind[] + SPFilePipeBind - SPListPipeBind[] + SPFilePipeBind - - Identity + + WebPartTitle - The name of the content type to export. The type must be a valid content type name; a valid content type ID, in the form 0x0123...; or an instance of an SPContentType object. + The title to set the web part to. - SPContentTypePipeBind + String - SPContentTypePipeBind + String - - ContentType + + Zone - The name of the content type to export. + The name of the web part zone to add the web part to. - String + String String @@ -2711,29 +2181,41 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Group + ZoneIndex - The content type group to export. Specifying this will filter the exported content types to just those items in the group. + The index within the web part zone to add the web part to. - String + Int32 - String + Int32 - - ListName + + Row - The list name to filter by. - - Specifying this along with the Web parameter will export content types from the list with the specified name only. + The zone to add the web part to. - String + Int32 - String + Int32 + + + + + + + + Column + + The zone index to add the web part to. + + Int32 + + Int32 @@ -2741,9 +2223,9 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - ExcludeParentFields + AddSpace - Exclude all fields defined in parent content types. + Add some space before the web part. SwitchParameter @@ -2755,9 +2237,9 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - IncludeFieldDefinitions + Publish - Include the field definitions in the exported XML. + If specified, the page will be published after importing the web part. SwitchParameter @@ -2769,9 +2251,9 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - IncludeListBindings + DeleteExisting - Include the list bindings in the exported XML. + If specified, any existing web parts with the same name as the imported one will be deleted. SwitchParameter @@ -2783,13 +2265,27 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - RemoveEncodedSpaces + CustomReplaceText - Remove encoded spaces (_x0020_) in all field and content type names. + Each key represents the name of a string to replace with the specified value. - SwitchParameter + PropertiesPipeBind - SwitchParameter + PropertiesPipeBind + + + + + + + + Identity + + The path to the web part file or a valid web part file in the form of an XmlDocument object. + + XmlDocumentPipeBind + + XmlDocumentPipeBind @@ -2797,13 +2293,13 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - FeatureSafe + Assembly - Remove any elements/attributes which are invalid in a SharePoint Solution Package Feature manifest file. + Specify the full name of the assembly containing the web part class to add. - SwitchParameter + String - SwitchParameter + String @@ -2811,11 +2307,9 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - OutputFile + TypeName - The path to the output file where the exported XML will be saved. - - If omitted the output will be dumped to the pipeline. + Specify the full name of the web part class to add. String @@ -2826,6 +2320,20 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 + + ChromeType + + The chrome settings for the web part. + + PartChromeType + + PartChromeType + + + + + + AssignmentCollection @@ -2870,75 +2378,39 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help Export-SPContentType -detailed". For technical information, type "Get-Help Export-SPContentType -full". + For more information, type "Get-Help Import-SPWebPart -detailed". For technical information, type "Get-Help Import-SPWebPart -full". - ------------------EXAMPLE 1----------------------- - PS C:\> Export-SPContentType -ContentType "ContentType1" -List "http://server_name/lists/mylist" -OutputFile "c:\contentTypes.xml" - - This example exports the ContentType1 content type from the list located at http://server_name/lists/mylist and saves it to contentTypes.xml. - - - - ------------------EXAMPLE 2----------------------- - PS C:\> Get-SPWeb "http://server_name/*" | Export-SPContentType -List "Documents" -OutputFile "c:\contentTypes.xml" - - This example exports all content types from all lists named Documents in all webs at http://server_name/* and saves them to contentTypes.xml. - - - - ------------------EXAMPLE 3----------------------- - PS C:\> Get-SPWeb "http://server_name" | Export-SPContentType -Identity "ContentType1" -OutputFile "c:\contentTypes.xml" - - This example exports ContentType1 from http://server_name and saves it to contentTypes.xml. - - - - ------------------EXAMPLE 4----------------------- - PS C:\> Get-SPList "http://server_name/lists/mylist/" | Export-SPContentType -Identity "ContentType1" -OutputFile "c:\contentTypes.xml" - - This example exports ContentType1 from the list located at http://server_name/lists/mylist and saves them to contentTypes.xml. - - - - ------------------EXAMPLE 5----------------------- - PS C:\> Export-SPContentType -ContentType "ContentType1" -Web "http://server_name/" -OutputFile "c:\contentTypes.xml" + ------------------EXAMPLE------------------ + PS C:\> Import-SPWebPart -File "http://portal/pages/default.aspx" -Identity "c:\my.webpart" -WebPartTitle "My Web part" -Zone "Left" -ZoneIndex 0 -DeleteExisting -Publish - This example exports the ContentType1 content type from http://server_name and saves it to contentTypes.xml. + This example adds a web part to the page http://portal/pages/default.aspx. - Copy-SPContentType - - - - Get-SPContentType - - - - Propagate-SPContentType + Get-SPLimitedWebPartManager - Get-SPList + Get-SPPublishingPage - Get-SPWeb + Get-SPFile - Get-SPContentType - Content Types + Move-SPWebPart + Web Parts - Retrieve an SPContentType object. + Moves a web part on a page. Copyright 2016 Falchion Consulting, LLC @@ -2947,12 +2419,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Get - SPContentType + Move + SPWebPart 1.0.0.0 - Retrieve an SPContentType object. + Moves a web part on a page. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -2962,251 +2434,135 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Get-SPContentType + Move-SPWebPart - Web - SPWebPipeBind[] + WebPartId + String - - Web - SPWebPipeBind[] + + File + SPFilePipeBind + + + Zone + String + + + ZoneIndex + Int32 + + + Publish + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection - Get-SPContentType + Move-SPWebPart - List - SPListPipeBind[] + WebPartTitle + String - - Web - SPWebPipeBind[] + + File + SPFilePipeBind + + + Zone + String + + + ZoneIndex + Int32 + + + Publish + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection - - Web + + File - The source web containing the content type to retrieve. - - The value must be a valid URL in the form http://server_name + The URL to a web part page or an instance of an SPFile object. - SPWebPipeBind[] + SPFilePipeBind - SPWebPipeBind[] + SPFilePipeBind - - List + + WebPartId - The source list containing the content type to retrieve. - - The value must be a valid URL in the form http://server_name + The ID of the Web Part to move. - SPListPipeBind[] + String - SPListPipeBind[] + String - - Identity + + WebPartTitle - The name of the content type to return. The type must be a valid content type name; a valid content type ID, in the form 0x0123...; or an instance of an SPContentType object. + The title of the Web Part to move. - SPContentTypePipeBind - - SPContentTypePipeBind - - - - - - - - AssignmentCollection - - Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used. - - When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur. - - SPAssignmentCollection + String - SPAssignmentCollection + String - - - - - - - - - - - - - - - - - - - - - - - - - - - - - For more information, type "Get-Help Get-SPContentType -detailed". For technical information, type "Get-Help Get-SPContentType -full". - - - - - ------------------EXAMPLE 1----------------------- - PS C:\> $ct = Get-SPWeb "http://server_name" | Get-SPContentType -Identity "ContentType1" - - This example retrieves ContentType1 from http://server_name. - - - - ------------------EXAMPLE 2----------------------- - PS C:\> $ct = Get-SPWeb "http://server_name" | Get-SPContentType - - This example retrieves all content types from http://server_name. - - - - ------------------EXAMPLE 3----------------------- - PS C:\> $ct = Get-SPList "http://server_name/lists/mylist" | Get-SPContentType - - This example retrieves all content types from http://server_name. - - - - - - Copy-SPContentType - - - - Export-SPContentType - - - - Propagate-SPContentType - - - - Get-SPList - - - - Get-SPWeb - - - - - - - Get-SPContentTypeUsage - Content Types - - Retrieve an SPContentTypeUsage object corresponding to the List or Site where a Content Type is utilized. - - - Copyright 2016 Falchion Consulting, LLC - > For more information on this cmdlet and others: - > http://blog.falchionconsulting.com/ - > Use of this cmdlet is at your own risk. - > Gary Lapointe assumes no liability. - - Get - SPContentTypeUsage - 1.0.0.0 - - - Retrieve an SPContentTypeUsage object corresponding to the List or Site where a Content Type is utilized. - - Copyright 2016 Falchion Consulting, LLC - > For more information on this cmdlet and others: - > http://blog.falchionconsulting.com/ - > Use of this cmdlet is at your own risk. - > Gary Lapointe assumes no liability. - - - - Get-SPContentTypeUsage - - Web - SPWebPipeBind[] - - - Identity - SPContentTypePipeBind - - - ListScopeOnly - SwitchParameter - - - AssignmentCollection - SPAssignmentCollection - - - - - - Web + + Zone - The source web containing the content type usages to retrieve. - - The value must be a valid URL in the form http://server_name + The name of the web part zone to move the web part to. - SPWebPipeBind[] + String - SPWebPipeBind[] + String - - Identity + + ZoneIndex - The name or ID of the Content Type to return associated usages. + The index within the web part zone to move the web part to. - SPContentTypePipeBind + Nullable`1 - SPContentTypePipeBind + Nullable`1 - - ListScopeOnly + + Publish - Specify to return only Content Type usages scoped to a list. + If specified, the page will be published after moving the web part. SwitchParameter @@ -3261,39 +2617,47 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help Get-SPContentTypeUsage -detailed". For technical information, type "Get-Help Get-SPContentTypeUsage -full". + For more information, type "Get-Help Move-SPWebPart -detailed". For technical information, type "Get-Help Move-SPWebPart -full". ------------------EXAMPLE------------------ - PS C:\> $ct = Get-SPWeb "http://server_name" | Get-SPContentTypeUsage -Identity "ContentType1" + PS C:\> Move-SPWebPart -File "http://server_name/pages/default.aspx" -WebPartTitle "My CQWP" -Zone "LeftZone" -ZoneIndex 0 -Publish - This example retrieves SPContentTypeUsage objects for all the Lists and Webs where ContentType1 is used. + This example moves the web part My CQWP to the top of the LeftZone. - Get-SPContentType + Get-SPList - Get-SPList + Get-SPFile + + + + Get-SPWebPartList Get-SPWeb + + Get-SPSite + + - Propagate-SPContentType - Content Types + Replace-SPWebPartContent + Web Parts - Propagates changes to a parent content type to all child content types. + Replaces all occurances of the search string with the replacement string. Supports the use of regular expressions. Use -WhatIf to verify your replacements before executing. Copyright 2016 Falchion Consulting, LLC @@ -3302,12 +2666,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Propagate - SPContentType + Replace + SPWebPartContent 1.0.0.0 - Propagates changes to a parent content type to all child content types. + Replaces all occurances of the search string with the replacement string. Supports the use of regular expressions. Use -WhatIf to verify your replacements before executing. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -3317,283 +2681,175 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Propagate-SPContentType - - Site - SPSitePipeBind - + Replace-SPWebPartContent - Identity - SPContentTypePipeBind + Page + SPFilePipeBind + + + SearchString + String + + + ReplaceString + String - UpdateFields + WebPartName + String + + + Publish SwitchParameter - RemoveFields + UnsafeXml SwitchParameter + + LogFile + String + AssignmentCollection SPAssignmentCollection - - - - Site - - The source site containing the content types to propagate. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - - SPSitePipeBind - - SPSitePipeBind - - - - - - - - Identity - - The content type to propagate changes. The type must be a valid content type name; a valid content type ID, in the form 0x0123...; or an instance of an SPContentType object. - - SPContentTypePipeBind - - SPContentTypePipeBind - - - - - - - - UpdateFields - - Propagate changes to all fields. - - SwitchParameter - - SwitchParameter - - - - - - - - RemoveFields - - Remove fields defined in child content types which do not exist in the source content type. - - SwitchParameter - - SwitchParameter - - - - - - - - AssignmentCollection - - Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used. - - When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur. - - SPAssignmentCollection - - SPAssignmentCollection - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - For more information, type "Get-Help Propagate-SPContentType -detailed". For technical information, type "Get-Help Propagate-SPContentType -full". - - - - - ------------------EXAMPLE------------------ - PS C:\> Get-SPSite "http://server_name" | Propagate-SPContentType -Identity "ContentType1" -UpdateFields - - This example propgates changes to ContentType1 found in http://server_name to all child content types. - - - - - - Copy-SPContentType - - - - Export-SPContentType - - - - Get-SPContentType - - - - Get-SPSite - - - - - - - Backup-SPSite2 - Farm - - The Backup-SPSite cmdlet performs a backup of the site collection when the Identity parameter is used. - - By default, the site collection will be set to read-only for the duration of the backup to reduce the potential for user activity during the backup operation which could corrupt the backup. If you have SQL Server Enterprise Edition, we recommend that UseSqlSnapshot parameter be used because this ensures a valid backup while it allows users to continue reading and writing to the site collection during the backup. - - - Copyright 2016 Falchion Consulting, LLC - > For more information on this cmdlet and others: - > http://blog.falchionconsulting.com/ - > Use of this cmdlet is at your own risk. - > Gary Lapointe assumes no liability. - - Backup - SPSite2 - 1.0.0.0 - - - The Backup-SPSite cmdlet performs a backup of the site collection when the Identity parameter is used. - - By default, the site collection will be set to read-only for the duration of the backup to reduce the potential for user activity during the backup operation which could corrupt the backup. If you have SQL Server Enterprise Edition, we recommend that UseSqlSnapshot parameter be used because this ensures a valid backup while it allows users to continue reading and writing to the site collection during the backup. - - Copyright 2016 Falchion Consulting, LLC - > For more information on this cmdlet and others: - > http://blog.falchionconsulting.com/ - > Use of this cmdlet is at your own risk. - > Gary Lapointe assumes no liability. - - - Backup-SPSite2 + Replace-SPWebPartContent - Identity - SPSitePipeBind[] + Web + SPWebPipeBind + + + SearchString + String + + + ReplaceString + String - IncludeIis + WebPartName + String + + + Publish SwitchParameter - Overwrite + UnsafeXml SwitchParameter - Path + LogFile String - NoSiteLock + AssignmentCollection + SPAssignmentCollection + + + + Replace-SPWebPartContent + + Site + SPSitePipeBind + + + SearchString + String + + + ReplaceString + String + + + WebPartName + String + + + Publish SwitchParameter - UseSqlSnapshot + UnsafeXml SwitchParameter + + LogFile + String + AssignmentCollection SPAssignmentCollection - Backup-SPSite2 + Replace-SPWebPartContent WebApplication - SPWebApplicationPipeBind[] + SPWebApplicationPipeBind - - IncludeIis - SwitchParameter + + SearchString + String - - Overwrite - SwitchParameter + + ReplaceString + String - Path + WebPartName String - NoSiteLock + Publish SwitchParameter - UseSqlSnapshot + UnsafeXml SwitchParameter + + LogFile + String + AssignmentCollection SPAssignmentCollection - Backup-SPSite2 + Replace-SPWebPartContent Farm SPFarmPipeBind - - IncludeIis - SwitchParameter + + SearchString + String - - Overwrite - SwitchParameter + + ReplaceString + String - Path + WebPartName String - NoSiteLock + Publish SwitchParameter - UseSqlSnapshot + UnsafeXml SwitchParameter + + LogFile + String + AssignmentCollection SPAssignmentCollection @@ -3601,46 +2857,42 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - - Identity + + SearchString - The site to backup. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. + A regular expression search string. - SPSitePipeBind[] + String - SPSitePipeBind[] + String - - WebApplication + + ReplaceString - The web application to backup. - - The type must be a valid URL, in the form http://server_name; or an instance of a valid SPWebApplication object. + The string to replace the match with. - SPWebApplicationPipeBind[] + String - SPWebApplicationPipeBind[] + String - - Farm + + WebPartName - A valid SPFarm object. + The name of the web part to update within the scope. - SPFarmPipeBind + String - SPFarmPipeBind + String @@ -3648,9 +2900,9 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - IncludeIis + Publish - Include IIS settings in the backup. + Publish or check-in the file after updating the contents. SwitchParameter @@ -3662,9 +2914,9 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Overwrite + UnsafeXml - Overwrite existing backups. + Perform a replace on XML fields without iterating through the elements of the XML (do a straight search and replace on the XML string without going through the DOM) SwitchParameter @@ -3676,9 +2928,9 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Path + LogFile - Specifies the full path to the backup file (that is, C:\Backup\site_name.bak). + The log file to store all change records to. String @@ -3689,151 +2941,82 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - - NoSiteLock + + Page - Specifies the site collection to remain read and write during the backup. - - If the NoSiteLock parameter is not specified, then a site collection that has a site collection lock setting of "none" or "no additions" will be temporarily set to "read only" while the site collection backup is performed. Once the backup has completed, the site collection lock will return to its original state. The backup package will record the original site collection lock state so that it is restored to that state. - - If users are writing to the site collection while the site collection is being backed up, then the NoSiteLock parameter is not recommended for potential impact to backup integrity + The URL to the page containing the web parts whose content will be replaced. - SwitchParameter + SPFilePipeBind - SwitchParameter + SPFilePipeBind - - UseSqlSnapshot + + Web - Specifies a SQL Database Snapshot will be created when the backup begins, and all site collection data will be retrieved directly from the database snapshot. This snapshot will be deleted automatically when the backup completes. + Specifies the URL or GUID of the Web containing the web parts whose content will be replaced. - The UseSqlSnapshot parameter is recommended if the database server hosting your content database supports database snapshots such as such as SQL Server Enterprise Edition and SQL Server Developer Edition. This is because it will ensure a valid backup while allowing users to continue reading and writing to the site collection during the backup. It is not necessary to specify the NoSiteLock parameter when specifying the UseSqlSnapshot parameter. + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. - SwitchParameter + SPWebPipeBind - SwitchParameter + SPWebPipeBind - - AssignmentCollection + + Site - Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used. + The site containing the web parts whose content will be replaced. - When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur. + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - SPAssignmentCollection + SPSitePipeBind - SPAssignmentCollection + SPSitePipeBind - - - + + WebApplication + + The web application containing the web parts whose content will be replaced. + + The type must be a valid URL, in the form http://server_name; or an instance of a valid SPWebApplication object. + + SPWebApplicationPipeBind - + SPWebApplicationPipeBind - - - - + + + Farm + + Provide the SPFarm object to replace matching content in all web parts throughout the farm. + + SPFarmPipeBind - + SPFarmPipeBind - - - - - - - - For more information, type "Get-Help Backup-SPSite2 -detailed". For technical information, type "Get-Help Backup-SPSite2 -full". - - - - - ------------------EXAMPLE 1----------------------- - PS C:\> Get-SPSite "http://server_name" | Backup-SPSite2 -IncludeIis - - This example backs up the site located at http://server_name along with the IIS settings for the host web application. - - - - ------------------EXAMPLE 2----------------------- - PS C:\> Get-SPWebApplication "http://server_name" | Backup-SPSite2 -IncludeIis - - This example backs up the web application located at http://server_name along with the IIS settings for the web application. - - - - - - Get-SPSite - - - - Backup-SPSite - - - - - - - Get-SPDeveloperDashboard - Farm - - Retrieves the Developer Dashboard Settings object. - - - Copyright 2016 Falchion Consulting, LLC - > For more information on this cmdlet and others: - > http://blog.falchionconsulting.com/ - > Use of this cmdlet is at your own risk. - > Gary Lapointe assumes no liability. - - Get - SPDeveloperDashboard - 1.0.0.0 - - - Retrieves the Developer Dashboard Settings object. - - Copyright 2016 Falchion Consulting, LLC - > For more information on this cmdlet and others: - > http://blog.falchionconsulting.com/ - > Use of this cmdlet is at your own risk. - > Gary Lapointe assumes no liability. - - - - Get-SPDeveloperDashboard - - AssignmentCollection - SPAssignmentCollection - - - - + AssignmentCollection @@ -3878,31 +3061,59 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help Get-SPDeveloperDashboard -detailed". For technical information, type "Get-Help Get-SPDeveloperDashboard -full". + For more information, type "Get-Help Replace-SPWebPartContent -detailed". For technical information, type "Get-Help Replace-SPWebPartContent -full". ------------------EXAMPLE------------------ - PS C:\> $dash = Get-SPDeveloperDashboard + PS C:\> Get-SPWeb http://portal | Replace-SPWebPartContent -SearchString "(?i:old product name)" -ReplaceString "New Product Name" -Publish - This example returns back the developer dashboard settings object. + This example does a case-insensitive search for "old product name" and replaces with "New Product Name" and publishes the changes after completion. - Set-SPDeveloperDashboard + Get-SPLimitedWebPartManager + + + + Get-SPWebPartList + + + + Get-SPPublishingPage + + + + Get-SPFile + + + + Get-SPFarm + + + + Get-SPWebApplication + + + + Get-SPSite + + + + Get-SPWeb - Set-SPDeveloperDashboard - Farm + Replace-SPWebPartType + Web Parts - Sets the Developer Dashboard Settings. + Replaces instances of one web part type with another web part type. Copyright 2016 Falchion Consulting, LLC @@ -3911,12 +3122,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Set - SPDeveloperDashboard + Replace + SPWebPartType 1.0.0.0 - Sets the Developer Dashboard Settings. + Replaces instances of one web part type with another web part type. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -3926,34 +3137,30 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Set-SPDeveloperDashboard - - AutoLaunchEnabled - Boolean - - - DisplayLevel - Off | OnDemand | On + Replace-SPWebPartType + + File + SPFilePipeBind - - MaximumCriticalEventsToTrack - Int32 + + OldType + TypePipeBind - - MaximumSQLQueriesToTrack - Int32 + + NewType + TypePipeBind - RequiredPermissions - EmptyMask | ViewListItems | AddListItems | EditListItems | DeleteListItems | ApproveItems | OpenItems | ViewVersions | DeleteVersions | CancelCheckout | ManagePersonalViews | ManageLists | ViewFormPages | AnonymousSearchAccessList | Open | ViewPages | AddAndCustomizePages | ApplyThemeAndBorder | ApplyStyleSheets | ViewUsageData | CreateSSCSite | ManageSubwebs | CreateGroups | ManagePermissions | BrowseDirectories | BrowseUserInfo | AddDelPrivateWebParts | UpdatePersonalWebParts | ManageWeb | AnonymousSearchAccessWebLists | UseClientIntegration | UseRemoteAPIs | ManageAlerts | CreateAlerts | EditMyUserInfo | EnumeratePermissions | FullMask + Title + String - TraceEnabled - Boolean + Properties + Hashtable - AdditionalEventsToTrack - String[] + Publish + SwitchParameter AssignmentCollection @@ -3962,56 +3169,42 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - - AutoLaunchEnabled - - Indicates whether the developer dashboard can be auto launched. - - Boolean - - Boolean - - - - - - - - DisplayLevel + + File - Indicates whether the developer dashboard is set to Off, On, or On Demand. + The URL to a web part page or an instance of an SPFile object. - SPDeveloperDashboardLevel + SPFilePipeBind - SPDeveloperDashboardLevel + SPFilePipeBind - - MaximumCriticalEventsToTrack + + OldType - The maximum number of critical events and asserts that will be recorded in a single transaction (i.e. one request or timer job). If a single transaction has more than this number of asserts the remainder will be ignored. This can be set to 0 to disable assert tracking. + The web part type to replace. - Int32 + TypePipeBind - Int32 + TypePipeBind - - MaximumSQLQueriesToTrack + + NewType - The maximum number of SQL queries that will be recorded in a single transaction (i.e. one request or timer job). If a single transaction executes more than this number of requests the query will be counted but the query call stack and text will not be kept. + The web part type to replace the old type with. - Int32 + TypePipeBind - Int32 + TypePipeBind @@ -4019,13 +3212,13 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - RequiredPermissions + Title - A permission mask defining the permissions required to see the developer dashboard. This defaults to SPBasePermissions.AddAndCustomizePages. + The web part title to restrict the replacement to. - SPBasePermissions + String - SPBasePermissions + String @@ -4033,27 +3226,27 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - TraceEnabled + Properties - Whether a link to display full verbose trace will be available at the bottom of the page when the developer dashboard is launched or not. + Additional properties to set or override after copying the old web part properties. - Boolean + Hashtable - Boolean + Hashtable - - AdditionalEventsToTrack + + Publish - A list of URL tags to track in addition to events with severity above High. + If specified the page will be published after adjusting the Web Part. - String[] + SwitchParameter - String[] + SwitchParameter @@ -4104,38 +3297,31 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help Set-SPDeveloperDashboard -detailed". For technical information, type "Get-Help Set-SPDeveloperDashboard -full". + For more information, type "Get-Help Replace-SPWebPartType -detailed". For technical information, type "Get-Help Replace-SPWebPartType -full". - ------------------EXAMPLE 1----------------------- - PS C:\> Set-SPDeveloperDashboard -DisplayLevel OnDemand -TraceEnabled $true - - This example enables the developer dashboard. - - - - ------------------EXAMPLE 2----------------------- - PS C:\> Set-SPDeveloperDashboard -RequiredPermissions "ManageWeb,ManageSubwebs" + ------------------EXAMPLE------------------ + PS C:\> Replace-SPWebPartType -File "http://server_name/pages/default.aspx" -OldType "Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart, Microsoft.SharePoint.Publishing, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" -NewType "MyContentByQueryWebPart, MyCompany.SharePoint.WebParts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4ec4b9177b831752" -Publish - This example sets the required permissions to view the developer dashboard. + This example replaces all instances of the web part who's class name is ContentByQueryWebPart with the web part who's class name is MyContentByQueryWebPart. - Get-SPDeveloperDashboard + Get-SPFile - Disable-SPFeature2 - Features + Set-SPContentQueryWebPartTarget + Web Parts - Deactivates a feature or features at a given scope. + Retargets a Content Query web part (do not provide list or site if you wish to show items from all sites in the containing site collection). Copyright 2016 Falchion Consulting, LLC @@ -4144,12 +3330,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Disable - SPFeature2 + Set + SPContentQueryWebPartTarget 1.0.0.0 - Deactivates a feature or features at a given scope. + Retargets a Content Query web part (do not provide list or site if you wish to show items from all sites in the containing site collection). Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -4159,30 +3345,123 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Disable-SPFeature2 + Set-SPContentQueryWebPartTarget + + WebPartId + String + + + Site + SPSitePipeBind + + + File + SPFilePipeBind + - PassThru + ListType + String + + + Publish SwitchParameter + + AssignmentCollection + SPAssignmentCollection + + + + Set-SPContentQueryWebPartTarget + + WebPartId + String + - Identity - SPFeatureDefinitionPipeBind + List + SPListPipeBind - Url + Web + SPWebPipeBind + + + File + SPFilePipeBind + + + ListType String - Force + Publish SwitchParameter - IgnoreNonActive + AssignmentCollection + SPAssignmentCollection + + + + Set-SPContentQueryWebPartTarget + + WebPartTitle + String + + + AllMatching + SwitchParameter + + + Site + SPSitePipeBind + + + File + SPFilePipeBind + + + ListType + String + + + Publish SwitchParameter - DeactivateAtScope - Farm | WebApplication | Site | Web | Feature + AssignmentCollection + SPAssignmentCollection + + + + Set-SPContentQueryWebPartTarget + + WebPartTitle + String + + + AllMatching + SwitchParameter + + + List + SPListPipeBind + + + Web + SPWebPipeBind + + + File + SPFilePipeBind + + + ListType + String + + + Publish + SwitchParameter AssignmentCollection @@ -4191,44 +3470,40 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - - PassThru + + File - If provided, the cmdlet outputs the Feature definition object after disabling. + The URL to a web part page or an instance of an SPFile object. - SwitchParameter + SPFilePipeBind - SwitchParameter + SPFilePipeBind - - Identity + + WebPartId - Specifies the name of the Feature or GUID to uninstall. - - The type must be the name of the Feature folder located in the 14\Template\Features folder or GUID, in the form 21d186e1-7036-4092-a825-0eb6709e9281. + The ID of the Web Part to update. - SPFeatureDefinitionPipeBind + String - SPFeatureDefinitionPipeBind + String - - Url + + WebPartTitle - Specifies the URL of the Web application, site collection, or Web site for which the Feature is being deactivated. - - The type must be a valid URL; for example, http://server_name. + The title of the Web Part to update. - String + String String @@ -4237,12 +3512,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - - Force + + AllMatching - Forces the deactivation of a Feature. This causes any custom code associated with the Feature to rerun. + If more than one Content Query Web Part is found matching the title then update all matches. If not specified then an exception is thrown. - SwitchParameter + SwitchParameter SwitchParameter @@ -4251,14 +3526,44 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - - IgnoreNonActive + + Site - Ignore scopes where the feature is not already activated. + Specifies the URL or GUID of the Site to show items from. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - SwitchParameter + SPSitePipeBind - SwitchParameter + SPSitePipeBind + + + + + + + + List + + The list to point the CQWP to. + + SPListPipeBind + + SPListPipeBind + + + + + + + + Web + + The web containing the list. This parameter is required if the List parameter is a relative URL to a list. + + SPWebPipeBind + + SPWebPipeBind @@ -4266,13 +3571,27 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - DeactivateAtScope + ListType - Deactivate features at the specified scope only. Valid values are Farm, WebApplication, Site, Web, and Feature + The list type, or template, to show items from. - Nullable`1 + String - Nullable`1 + String + + + + + + + + Publish + + If specified the page will be published after adjusting the Web Part. + + SwitchParameter + + SwitchParameter @@ -4323,43 +3642,47 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help Disable-SPFeature2 -detailed". For technical information, type "Get-Help Disable-SPFeature2 -full". + For more information, type "Get-Help Set-SPContentQueryWebPartTarget -detailed". For technical information, type "Get-Help Set-SPContentQueryWebPartTarget -full". ------------------EXAMPLE------------------ - PS C:\> Get-SPFeature MyFeature | Disable-SPFeature2 -Url "http://server_name" -IgnoreNonActive -DeactivateAtScope WebApplication + PS C:\> Set-SPContentQueryWebPartTarget -List "http://server_name/lists/mylist" -File "http://server_name/pages/default.aspx" -WebPartTitle "My CQWP" -AllMatching -Publish - This example deactivates all occurences of MyFeature in the http://server_name web application. + This example targets the web part My CQWP to the list mylist. - Enable-SPFeature2 + Get-SPList - Disable-SPFeature + Get-SPFile - Enable-SPFeature + Get-SPWebPartList - Get-SPFeature + Get-SPWeb + + + + Get-SPSite - Enable-SPFeature2 - Features + Set-SPWebPart + Web Parts - Activates a feature or features at a given scope. + Sets the state of the web part including adding, moving, opening, closing, deleting, or updating web part properties. Copyright 2016 Falchion Consulting, LLC @@ -4368,12 +3691,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Enable - SPFeature2 + Set + SPWebPart 1.0.0.0 - Activates a feature or features at a given scope. + Sets the state of the web part including adding, moving, opening, closing, deleting, or updating web part properties. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -4383,30 +3706,69 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Enable-SPFeature2 + Set-SPWebPart + + WebPartId + String + + + File + SPFilePipeBind + - PassThru - SwitchParameter + Properties + PropertiesPipeBind - Identity - SPFeatureDefinitionPipeBind + Action + Delete | Open | Close | Update - Url + Zone String - Force - SwitchParameter + ZoneIndex + Int32 - IgnoreNonActive + Publish SwitchParameter - ActivateAtScope - Farm | WebApplication | Site | Web | Feature + AssignmentCollection + SPAssignmentCollection + + + + Set-SPWebPart + + WebPartTitle + String + + + File + SPFilePipeBind + + + Properties + PropertiesPipeBind + + + Action + Delete | Open | Close | Update + + + Zone + String + + + ZoneIndex + Int32 + + + Publish + SwitchParameter AssignmentCollection @@ -4415,14 +3777,14 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - - PassThru + + File - If provided, the cmdlet outputs the Feature definition object after enabling. + The URL to a web part page or an instance of an SPFile object. - SwitchParameter + SPFilePipeBind - SwitchParameter + SPFilePipeBind @@ -4430,29 +3792,25 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Identity + WebPartId - Specifies the name of the Feature or GUID to activate. - - The type must be the name of the Feature folder located in the 14\Template\Features folder or GUID, in the form 21d186e1-7036-4092-a825-0eb6709e9281. + The ID of the Web Part to update. - SPFeatureDefinitionPipeBind + String - SPFeatureDefinitionPipeBind + String - - Url + + WebPartTitle - Specifies the URL of the Web application, Site Collection, or Site for which the Feature is being activated. - - The type must be a valid URL; for example, http://server_name. + The title of the Web Part to update. - String + String String @@ -4462,13 +3820,27 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Force + Properties - Forces the activation of a Feature. This causes any custom code associated with the Feature to rerun. + A hash table where each key represents the name of a property whose value should be set to the corresponding key value. Alternatively, provide the path to a file with XML property settings (<Properties><Property Name="Name1">Value1</Property><Property Name="Name2">Value2</Property></Properties>). - SwitchParameter + PropertiesPipeBind - SwitchParameter + PropertiesPipeBind + + + + + + + + Action + + Specify whether to add, close, open, delete, or update the web part. + + SetWebPartStateAction + + SetWebPartStateAction @@ -4476,13 +3848,13 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - IgnoreNonActive + Zone - Ignore scopes where the feature is not already activated. + The name of the web part zone to move the web part to. - SwitchParameter + String - SwitchParameter + String @@ -4490,9 +3862,9 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - ActivateAtScope + ZoneIndex - Activate features at the specified scope only. Valid values are Farm, WebApplication, Site, Web, and Feature + The index within the web part zone to move the web part to. Nullable`1 @@ -4503,6 +3875,20 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 + + Publish + + If specified the page will be published after adjusting the Web Part. + + SwitchParameter + + SwitchParameter + + + + + + AssignmentCollection @@ -4547,50 +3933,47 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help Enable-SPFeature2 -detailed". For technical information, type "Get-Help Enable-SPFeature2 -full". + For more information, type "Get-Help Set-SPWebPart -detailed". For technical information, type "Get-Help Set-SPWebPart -full". - ------------------EXAMPLE 1----------------------- - PS C:\> Get-SPFeature MyFeature | Enable-SPFeature2 -Url "http://server_name" -ActivateAtScope WebApplication - - This example activates MyFeature in the http://server_name web application. If the Feature is scoped to a site collection or web then it will activate at all sites or webs. - - - - ------------------EXAMPLE 2----------------------- - PS C:\> Get-SPFeature MyFeature | Enable-SPFeature2 -Url "http://server_name" -IgnoreNonActive -ActivateAtScope WebApplication + ------------------EXAMPLE------------------ + PS C:\> Set-SPWebPart -File "http://server_name/pages/default.aspx" -WebPartTitle "My CQWP" -Action Update -Properties @{"ItemXslLink"="/Style Library/MyXsl/ItemStyle.xsl"} -Publish - This example activates MyFeature in the http://server_name web application where it is already active thus causing any feature activation code to rerun. + This sets the ItemXslLink property of a content query web part to point to a custom XSL file. - Disable-SPFeature2 + Get-SPList - Disable-SPFeature + Get-SPFile - Enable-SPFeature + Get-SPWebPartList - Get-SPFeature + Get-SPWeb + + + + Get-SPSite - Get-SPFeatureActivations - Features + Add-SPWebApplicationUserPolicy + Web Applications - Retrieves all publishing pages from the specified source. + Adds a new user policy to the specified web application. Copyright 2016 Falchion Consulting, LLC @@ -4599,12 +3982,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Get - SPFeatureActivations + Add + SPWebApplicationUserPolicy 1.0.0.0 - Retrieves all publishing pages from the specified source. + Adds a new user policy to the specified web application. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -4614,69 +3997,139 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Get-SPFeatureActivations - - Identity - SPFeatureDefinitionPipeBind[] + Add-SPWebApplicationUserPolicy + + User + SPUserPipeBind + + + Web + SPWebPipeBind - Identity - SPFeatureDefinitionPipeBind[] + WebApplication + SPWebApplicationPipeBind + + + Zone + SPUrlZone[] + + + RoleName + String[] + + + AssignmentCollection + SPAssignmentCollection - Get-SPFeatureActivations - - Solution - SPSolutionPipeBind[] + Add-SPWebApplicationUserPolicy + + UserLogin + String - Identity - SPFeatureDefinitionPipeBind[] + WebApplication + SPWebApplicationPipeBind + + + Zone + SPUrlZone[] + + + RoleName + String[] + + + AssignmentCollection + SPAssignmentCollection - - Identity + + User - Specifies the name of the Feature or GUID to activate. - The type must be the name of the Feature folder located in the 14\Template\Features folder or GUID, in the form 21d186e1-7036-4092-a825-0eb6709e9281. - SPFeatureDefinitionPipeBind[] + SPUserPipeBind - SPFeatureDefinitionPipeBind[] + SPUserPipeBind - - Solution + + Web - Specifies the SharePoint Slution Package containing the Features whose activations will be retrieved. + Specifies the URL or GUID of the Web to which the user belongs. - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a SharePoint Solution (for example, SPSolution1); or an instance of a valid SPSolution object. + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. - SPSolutionPipeBind[] + SPWebPipeBind - SPSolutionPipeBind[] + SPWebPipeBind - - NeedsUpgrade + + UserLogin + + The user login in the form domain\user. + + String + + String + + + + + + + + WebApplication + The web application to which the user policy will be added. + The type must be a valid URL, in the form http://server_name; or an instance of a valid SPWebApplication object. - SwitchParameter + SPWebApplicationPipeBind - SwitchParameter + SPWebApplicationPipeBind + + + + + + + + Zone + + The zone to add the policy to. To add to all zones to not set this parameter. Valid values are "Custom", "Default", "Intranet", "Internet", "Extranet". + + SPUrlZone[] + + SPUrlZone[] + + + + + + + + RoleName + + The roles name(s) to assign the user to. Default values are "Full Control", "Full Read","Deny Write", and "Deny All". + + String[] + + String[] @@ -4727,54 +4180,39 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help Get-SPFeatureActivations -detailed". For technical information, type "Get-Help Get-SPFeatureActivations -full". + For more information, type "Get-Help Add-SPWebApplicationUserPolicy -detailed". For technical information, type "Get-Help Add-SPWebApplicationUserPolicy -full". - ------------------EXAMPLE 1----------------------- - PS C:\> $features = Get-SPFeatureActivations -Solution "MyCustomSolution.wsp" - - This example returns back all Feature activations for all Features defined by the MyCustomSolution.wsp Solution Package. - - - - ------------------EXAMPLE 2----------------------- - PS C:\> $features = Get-SPFeatureActivations -Identity "TeamCollab" | select @{Expression={$_.Parent.Url}} + ------------------EXAMPLE------------------ + PS C:\> Add-SPWebApplicationUserPolicy -WebApplication http://portal -UserLogin "user\domain" -RoleName "Full Read","Deny Write" - This example returns back all Feature activations for the Site-scoped Feature TeamCollab and displays the URL of the Site where the Feature is activated. + This example grants user\domain full read and deny write access to http://portal. - Enable-SPFeature2 - - - - Disable-SPFeature2 - - - - Get-SPFeature + Get-SPWebApplication - Enable-SPFeature + Get-SPWeb - Disable-SPFeature + Get-SPUser - Add-SPGroupPermission - Groups + Set-SPBackConnectionHostNames + Web Applications - Adds a permission to a SharePoint Group. + Sets the back connection host names on the local server or all servers in the farm. An IIS reset will be necessary after the cmdlet completes. Copyright 2016 Falchion Consulting, LLC @@ -4783,12 +4221,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Add - SPGroupPermission + Set + SPBackConnectionHostNames 1.0.0.0 - Adds a permission to a SharePoint Group. + Sets the back connection host names on the local server or all servers in the farm. An IIS reset will be necessary after the cmdlet completes. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -4798,18 +4236,29 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Add-SPGroupPermission - - Web - SPWebPipeBind - + Set-SPBackConnectionHostNames - Identity - SPGroupPipeBind + UpdateFarm + SwitchParameter - Permission - String[] + FarmCredentials + PSCredential + + + WebApplication + SPWebApplicationPipeBind + + + AssignmentCollection + SPAssignmentCollection + + + + Set-SPBackConnectionHostNames + + WebApplication + SPWebApplicationPipeBind AssignmentCollection @@ -4818,46 +4267,44 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - - Web + + UpdateFarm - Specifies the URL or GUID of the Web containing the group to be created. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. + Update all servers in the farm. - SPWebPipeBind + SwitchParameter - SPWebPipeBind + SwitchParameter - - Identity + + FarmCredentials - Specifies the Name or ID of the Group to add the permission to. - - The type must be a valid integer, or a valid group name (for example, Approvers); or an instance of a valid SPGroup object. If not an SPGroup object then the -Web parameter is required. + The credentials to use on the remote servers to perform the update. - SPGroupPipeBind + PSCredential - SPGroupPipeBind + PSCredential - - Permission + + WebApplication - The permissions to assign to the group + The web application whose URLs will be added to the set of back connection host names. + + The type must be a valid URL, in the form http://server_name; or an instance of a valid SPWebApplication object. - String[] + SPWebApplicationPipeBind - String[] + SPWebApplicationPipeBind @@ -4908,35 +4355,38 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help Add-SPGroupPermission -detailed". For technical information, type "Get-Help Add-SPGroupPermission -full". + For more information, type "Get-Help Set-SPBackConnectionHostNames -detailed". For technical information, type "Get-Help Set-SPBackConnectionHostNames -full". - ------------------EXAMPLE------------------ - PS C:\> Get-SPGroup -Web "http://demo" -Name "My Group" | Add-SPGroupPermission -Permission "Approve","Contribute" + ------------------EXAMPLE 1----------------------- + PS C:\> Set-SPBackConnectionHostNames - This example adds the Approve and Contribute permissions to the "My Group" group in the http://demo site. + This example sets the back connection host names for all web applications in the farm on the local server only. + + + + ------------------EXAMPLE 2----------------------- + PS C:\> Set-SPBackConnectionHostNames -UpdateFarm -FarmCredentials (Get-Credential) + + This example sets the back connection host names for all web applications in the farm on all servers in the farm using the provided credentials. - Get-SPGroup - - - - New-SPGroup + Get-SPWebApplication - Get-SPGroup - Groups + Remove-SPAllUsers + Users - Retrieve a SharePoint Group from a Site. + Deletes all Site Collection users. Will not delete site administrators. Copyright 2016 Falchion Consulting, LLC @@ -4945,12 +4395,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Get - SPGroup + Remove + SPAllUsers 1.0.0.0 - Retrieve a SharePoint Group from a Site. + Deletes all Site Collection users. Will not delete site administrators. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -4960,48 +4410,24 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Get-SPGroup - - Web - SPWebPipeBind - - - Identity - SPGroupPipeBind[] - - - AssignmentCollection - SPAssignmentCollection + Remove-SPAllUsers + + Site + SPSitePipeBind - - Web - - Specifies the URL or GUID of the Web containing the group to be retrieved. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. - - SPWebPipeBind - - SPWebPipeBind - - - - - - - - Identity + + Site - Specifies the Name or ID of the Group to be retrieved. + Specifies the URL or GUID of the Site whose users will be deleted. - The type must be a valid integer, or a valid group name (for example, Approvers); or an instance of a valid SPGroup object. If not an SPGroup object then the -Web parameter is required. + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - SPGroupPipeBind[] + SPSitePipeBind - SPGroupPipeBind[] + SPSitePipeBind @@ -5052,35 +4478,26 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help Get-SPGroup -detailed". For technical information, type "Get-Help Get-SPGroup -full". + For more information, type "Get-Help Remove-SPAllUsers -detailed". For technical information, type "Get-Help Remove-SPAllUsers -full". ------------------EXAMPLE------------------ - PS C:\> $group = Get-SPGroup -Web "http://demo" -Identity "Approvers" + PS C:\> Remove-SPAllUsers -Site "http://demo" - This example retrieves the Approvers group from the http://demo site. + This example removes all site users from the http://demo site. - - - New-SPGroup - - - - Remove-SPGroup - - - + - New-SPGroup - Groups + Get-SPUserProfileChanges + User Profiles - Creates a SharePoint Group in a Site. + Retrieves user profile property changes for the given interval and context. Copyright 2016 Falchion Consulting, LLC @@ -5089,12 +4506,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - New - SPGroup + Get + SPUserProfileChanges 1.0.0.0 - Creates a SharePoint Group in a Site. + Retrieves user profile property changes for the given interval and context. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -5104,26 +4521,97 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - New-SPGroup + Get-SPUserProfileChanges + + UserProfileServiceApplication + SPServiceApplicationPipeBind + + + SiteSubscription + SPSiteSubscriptionPipeBind + + + Interval + Int32 + + + IncludeSingleValuePropertyChanges + SwitchParameter + + + IncludeMultiValuePropertyChanges + SwitchParameter + + + IncludeAnniversaryChanges + SwitchParameter + + + IncludeColleagueChanges + SwitchParameter + + + IncludeOrganizationMembershipChanges + SwitchParameter + + + IncludeDistributionListMembershipChanges + SwitchParameter + + + IncludePersonalizationSiteChanges + SwitchParameter + + + IncludeSiteMembershipChanges + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection + + + + Get-SPUserProfileChanges - Web - SPWebPipeBind + ContextSite + SPSitePipeBind - - Name - String + + Interval + Int32 - - Owner - SPUserPipeBind + + IncludeSingleValuePropertyChanges + SwitchParameter - - DefaultUser - SPUserPipeBind + + IncludeMultiValuePropertyChanges + SwitchParameter - - Description - String + + IncludeAnniversaryChanges + SwitchParameter + + + IncludeColleagueChanges + SwitchParameter + + + IncludeOrganizationMembershipChanges + SwitchParameter + + + IncludeDistributionListMembershipChanges + SwitchParameter + + + IncludePersonalizationSiteChanges + SwitchParameter + + + IncludeSiteMembershipChanges + SwitchParameter AssignmentCollection @@ -5132,216 +4620,174 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - - Web + + Interval - Specifies the URL or GUID of the Web containing the group to be created. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. + The interval, in minutes, to retrieve changes from. - SPWebPipeBind + Int32 - SPWebPipeBind + Int32 - - Name + + UserProfileServiceApplication - Specifies the name of the group to create. + Specifies the service application that contains the user profile manager to retrieve. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a service application (for example, ServiceApp1); or an instance of a valid SPServiceApplication object. - String + SPServiceApplicationPipeBind - String + SPServiceApplicationPipeBind - - Owner + + SiteSubscription - Specifies the owner of the new group. + Specifies the site subscription containing the user profile manager to retrieve. + + The type must be a valid URL, in the form http://server_name; a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a site subscription (for example, SiteSubscription1); or an instance of a valid SiteSubscription object. - SPUserPipeBind + SPSiteSubscriptionPipeBind - SPUserPipeBind + SPSiteSubscriptionPipeBind - - DefaultUser + + ContextSite - Specifies the default user to add to the new group. If not specified then the Owner will be used. + Specifies the URL or GUID of the Site to use for retrieving the service context. Use this parameter when the service application is not associated with the default proxy group or more than one custom proxy groups. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - SPUserPipeBind + SPSitePipeBind - SPUserPipeBind + SPSitePipeBind - - Description + + IncludeSingleValuePropertyChanges - Specifies the description of the group to create. + Include single-value property changes. - String + SwitchParameter - String + SwitchParameter - - AssignmentCollection + + IncludeMultiValuePropertyChanges - Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used. - - When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur. + Include multi-value property changes. - SPAssignmentCollection + SwitchParameter - SPAssignmentCollection + SwitchParameter - - - + + IncludeAnniversaryChanges + + Include anniversary property changes. + + SwitchParameter - + SwitchParameter - - - - - - + + + IncludeColleagueChanges + + Include colleague property changes. + + SwitchParameter + + SwitchParameter - - - - - - - - For more information, type "Get-Help New-SPGroup -detailed". For technical information, type "Get-Help New-SPGroup -full". - - - - - ------------------EXAMPLE------------------ - PS C:\> $group = New-SPGroup -Web "http://demo" -Name "My Group" -Owner "domain\user" -Member "domain\user" - - This example creates the "My Group" group in the http://demo site. - - - - - - Get-SPGroup - - - - Remove-SPGroup - - - - - - - Remove-SPGroup - Groups - - Removes a SharePoint Group from a Site. - - - Copyright 2016 Falchion Consulting, LLC - > For more information on this cmdlet and others: - > http://blog.falchionconsulting.com/ - > Use of this cmdlet is at your own risk. - > Gary Lapointe assumes no liability. - - Remove - SPGroup - 1.0.0.0 - - - Removes a SharePoint Group from a Site. - - Copyright 2016 Falchion Consulting, LLC - > For more information on this cmdlet and others: - > http://blog.falchionconsulting.com/ - > Use of this cmdlet is at your own risk. - > Gary Lapointe assumes no liability. - - - - Remove-SPGroup - - Web - SPWebPipeBind - - - Identity - SPGroupPipeBind - - - AssignmentCollection - SPAssignmentCollection - - - - - - Web + + + IncludeOrganizationMembershipChanges - Specifies the URL or GUID of the Web containing the group to be removed. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. + Include organization membership property changes. - SPWebPipeBind + SwitchParameter - SPWebPipeBind + SwitchParameter - - Identity + + IncludeDistributionListMembershipChanges - Specifies the Name or ID of the Group to be removed. - - The type must be a valid integer, or a valid group name (for example, Approvers); or an instance of a valid SPGroup object. If not an SPGroup object then the -Web parameter is required. + Include distribution list membership property changes. - SPGroupPipeBind + SwitchParameter - SPGroupPipeBind + SwitchParameter + + + + + + + + IncludePersonalizationSiteChanges + + Include personalization site property changes. + + SwitchParameter + + SwitchParameter + + + + + + + + IncludeSiteMembershipChanges + + Include site membership property changes. + + SwitchParameter + + SwitchParameter @@ -5392,35 +4838,31 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help Remove-SPGroup -detailed". For technical information, type "Get-Help Remove-SPGroup -full". + For more information, type "Get-Help Get-SPUserProfileChanges -detailed". For technical information, type "Get-Help Get-SPUserProfileChanges -full". ------------------EXAMPLE------------------ - PS C:\> Remove-SPGroup -Web "http://demo" -Identity "Approvers" + PS C:\> Get-SPUserProfileChanges -Site "http://site/" -IncludeSingleValueProperty -IncludeMultiValueProperty - This example removes the Approvers group from the http://demo site. + This example retrieves all single and multi-value property changes for the User Profile Application associated with the "http://site/" context. - New-SPGroup - - - - Get-SPGroup + Get-SPProfileServiceApplication - Remove-SPGroupPermission - Groups + Set-SPProfilePictureUrl + User Profiles - Removes a permission from a SharePoint Group. + Sets the picture URL path for user profiles. The following variables may be used for dynamic replacement: "@(username)", "@(domain)", "@(email)", "@(firstname)", "@(lastname)", "@(employeeid)". Copyright 2016 Falchion Consulting, LLC @@ -5429,12 +4871,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Remove - SPGroupPermission + Set + SPProfilePictureUrl 1.0.0.0 - Removes a permission from a SharePoint Group. + Sets the picture URL path for user profiles. The following variables may be used for dynamic replacement: "@(username)", "@(domain)", "@(email)", "@(firstname)", "@(lastname)", "@(employeeid)". Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -5444,18 +4886,92 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Remove-SPGroupPermission - - Web - SPWebPipeBind + Set-SPProfilePictureUrl + + UserProfileServiceApplication + SPServiceApplicationPipeBind - - Identity - SPGroupPipeBind + + SiteSubscription + SPSiteSubscriptionPipeBind - - Permission - String[] + + Username + String + + + Path + String + + + Overwrite + SwitchParameter + + + IgnoreMissingData + SwitchParameter + + + ValidateUrl + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection + + + + Set-SPProfilePictureUrl + + ContextSite + SPSitePipeBind + + + Username + String + + + Path + String + + + Overwrite + SwitchParameter + + + IgnoreMissingData + SwitchParameter + + + ValidateUrl + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection + + + + Set-SPProfilePictureUrl + + UserProfile + UserProfile + + + Path + String + + + Overwrite + SwitchParameter + + + IgnoreMissingData + SwitchParameter + + + ValidateUrl + SwitchParameter AssignmentCollection @@ -5464,46 +4980,132 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - - Web + + UserProfileServiceApplication - Specifies the URL or GUID of the Web containing the group to be created. + Specifies the service application that contains the user profiles to update. - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a service application (for example, ServiceApp1); or an instance of a valid SPServiceApplication object. - SPWebPipeBind + SPServiceApplicationPipeBind - SPWebPipeBind + SPServiceApplicationPipeBind - - Identity + + SiteSubscription - Specifies the Name or ID of the Group to add the permission to. + Specifies the site subscription containing the user profiles to update. - The type must be a valid integer, or a valid group name (for example, Approvers); or an instance of a valid SPGroup object. If not an SPGroup object then the -Web parameter is required. + The type must be a valid URL, in the form http://server_name; a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a site subscription (for example, SiteSubscription1); or an instance of a valid SiteSubscription object. - SPGroupPipeBind + SPSiteSubscriptionPipeBind - SPGroupPipeBind + SPSiteSubscriptionPipeBind - - Permission + + ContextSite - The permissions to assign to the group + Specifies the URL or GUID of the Site to use for retrieving the service context. Use this parameter when the service application is not associated with the default proxy group or more than one custom proxy groups. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - String[] + SPSitePipeBind - String[] + SPSitePipeBind + + + + + + + + Username + + The username corresponding to the user profile to update in the form domain\username. + + String + + String + + + + + + + + UserProfile + + The user profile to update. + + UserProfile + + UserProfile + + + + + + + + Path + + Path to new photo (i.e., "http://intranet/hr/EmployeePictures/@(username).jpg") - leave blank to clear.The path to the images. To substitute dynamic data use the following strings variables within the path: @(username), @(domain), @(email), @(firstname), @(lastname), @(employeeid). The variable names are case sensitive. + + String + + String + + + + + + + + Overwrite + + If provided then existing data values will be overwritten. If omitted then any profile objects with existing data will be ignored. + + SwitchParameter + + SwitchParameter + + + + + + + + IgnoreMissingData + + If specified then do not error if a specified variable value cannot be found. Note that if the value is not found then the property value will not be set. + + SwitchParameter + + SwitchParameter + + + + + + + + ValidateUrl + + If specified then perform a web request to see if the resultant URL is valid. If the result is not valid then the property value will be set to an empty string. + + SwitchParameter + + SwitchParameter @@ -5554,35 +5156,31 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help Remove-SPGroupPermission -detailed". For technical information, type "Get-Help Remove-SPGroupPermission -full". + For more information, type "Get-Help Set-SPProfilePictureUrl -detailed". For technical information, type "Get-Help Set-SPProfilePictureUrl -full". ------------------EXAMPLE------------------ - PS C:\> Remove-SPGroupPermission -Web "http://demo" -Group "My Group" -Permission "Approve","Contribute" + PS C:\> Set-SPProfilePictureUrl -UserProfileServiceApplication "30daa535-b0fe-4d10-84b0-fb04029d161a" -Username "domain\username" -Path "http://intranet/hr/EmployeePictures/@(username).jpg" -Overwrite -ValidateUrl - This example removes the Approve and Contribute permissions from the My Group group from the http://demo site. + This example sets the picture url of a user in the user profile service application with ID "30daa535-b0fe-4d10-84b0-fb04029d161a". - New-SPGroup - - - - Get-SPGroup + Get-SPServiceApplication - Add-SPEventReceiver - Lists + Get-SPRunningTimerJobs + Timer Jobs - Adds an event receiver to a web, list, or content type. + Copyright 2016 Falchion Consulting, LLC @@ -5591,12 +5189,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Add - SPEventReceiver + Get + SPRunningTimerJobs 1.0.0.0 - Adds an event receiver to a web, list, or content type. + Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -5606,92 +5204,10 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Add-SPEventReceiver - - Web - SPWebPipeBind - - - Name - String - - - Assembly - String - - - ClassName - String - - - Type - SPEventReceiverType[] - - - Sequence - Int32 - - - AssignmentCollection - SPAssignmentCollection - - - - Add-SPEventReceiver - - List - SPListPipeBind - - - Name - String - - - Assembly - String - - - ClassName - String - - - Type - SPEventReceiverType[] - - - Sequence - Int32 - - - AssignmentCollection - SPAssignmentCollection - - - - Add-SPEventReceiver - - ContentType - SPContentTypePipeBind - - - Name - String - - - Assembly - String - - - ClassName - String - - - Type - SPEventReceiverType[] - - - Sequence - Int32 + Get-SPRunningTimerJobs + + Identity + SPTimerJobPipeBind AssignmentCollection @@ -5700,116 +5216,143 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - - Web + + Identity - The web to add the event receiver to. - The value must be a valid URL in the form http://server_name - SPWebPipeBind + SPTimerJobPipeBind - SPWebPipeBind + SPTimerJobPipeBind - - List + + AssignmentCollection - The list to add the event receiver to. + Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used. - The value must be a valid URL in the form http://server_name + When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur. - SPListPipeBind + SPAssignmentCollection - SPListPipeBind + SPAssignmentCollection - - ContentType - - The name of the content type to return. The type must be a valid content type name; a valid content type ID, in the form 0x0123...; or an instance of an SPContentType object. - - SPContentTypePipeBind - - SPContentTypePipeBind - - - - - - - - Name - - The name to give to the event receiver. The name has no significance but can be useful when later listing the event receivers. - - String - - String - - - - - - - - Assembly - - The fully qualified assembly name containing the event receiver class to add. - - String - - String - - - - - - - - ClassName - - The fully qualified class name of the event receiver to add. - - String + + + - String + - - - Type - - The event type to add. The command does not validate that you are adding the correct type for the specified target or that the specified class contains handlers for the type specified. - - SPEventReceiverType[] + + + + - SPEventReceiverType[] + - - - Sequence + + + + + + + + For more information, type "Get-Help Get-SPRunningTimerJobs -detailed". For technical information, type "Get-Help Get-SPRunningTimerJobs -full". + + + + + ------------------EXAMPLE 1----------------------- + PS C:\> Get-SPRunningTimerJobs | ? {((Get-Date).ToUniversalTime() - $_.StartTime).TotalHours -gt 4} + + This example returns back all running timer jobs and filters to the results to show only those that have been running for more than four hours. + + + + ------------------EXAMPLE 2----------------------- + PS C:\> Get-SPTimerJob | ?{$_.Name -like {"*User Profile*"} | Get-SPRunningTimerJobs + + This example returns back all running user profile timer jobs. + + + + + + Get-SPTimerJob + + + + + + + Start-SPAdminJob2 + Timer Jobs + + Immediately starts any waiting administrative job on the local computer and triggers the jobs to run on all other servers in the farm if applicable. + + + Copyright 2016 Falchion Consulting, LLC + > For more information on this cmdlet and others: + > http://blog.falchionconsulting.com/ + > Use of this cmdlet is at your own risk. + > Gary Lapointe assumes no liability. + + Start + SPAdminJob2 + 1.0.0.0 + + + Use the Start-SPAdminJob2 cmdlet to execute all administrative timer jobs immediately rather than waiting for the timer job to run. + + When the process account for the SharePoint 2010 Administration service (SPAdminV4)) is disabled (necessary in some installations for security reasons), the Start-SPAdminJob2 cmdlet triggers all administrative tasks to run immediately on all servers to allow provisioning and other administrative tasks that SPAdmin ordinarily handles. + + When you run this cmdlet in person (not in script), use the Verbose parameter to see the individual administrative operations that are run. + + Copyright 2016 Falchion Consulting, LLC + > For more information on this cmdlet and others: + > http://blog.falchionconsulting.com/ + > Use of this cmdlet is at your own risk. + > Gary Lapointe assumes no liability. + + + + Start-SPAdminJob2 + + Local + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection + + + + + + Local - The sequence number specifies the order of execution of the event receiver. + Providing this parameter causes the cmdlet to behave just like the built-in Start-SPAdminJob cmdlet. - Int32 + SwitchParameter - Int32 + SwitchParameter @@ -5860,53 +5403,31 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help Add-SPEventReceiver -detailed". For technical information, type "Get-Help Add-SPEventReceiver -full". + For more information, type "Get-Help Start-SPAdminJob2 -detailed". For technical information, type "Get-Help Start-SPAdminJob2 -full". - ------------------EXAMPLE 1----------------------- - PS C:\> Get-SPWeb http://demo | Get-SPContentType -Identity "My Content Type" | Add-SPEventReceiver -Name "My Cool Event Receivers" -Assembly "Falchion.SharePoint.MyCoolProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3216c23aba16db08" -ClassName "Falchion.SharePoint.MyCoolProject.MyCoolEventReceiver" -Type "ItemUpdating","ItemAdding" - - This example adds ItemUpdating and ItemAdding event receivers to the "My Content Type" content type. - - - - ------------------EXAMPLE 2----------------------- - PS C:\> Get-SPWeb http://demo | Add-SPEventReceiver -Name "My Cool Event Receivers" -Assembly "Falchion.SharePoint.MyCoolProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3216c23aba16db08" -ClassName "Falchion.SharePoint.MyCoolProject.MyCoolEventReceiver" -Type "WebProvisioned","WebDeleted" - - This example adds WebProvisioned and WebDeleted event receivers to the http://demo site. - - - - ------------------EXAMPLE 3----------------------- - PS C:\> Get-SPList http://demo/Lists/MyList | Add-SPEventReceiver -Name "My Cool Event Receivers" -Assembly "Falchion.SharePoint.MyCoolProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3216c23aba16db08" -ClassName "Falchion.SharePoint.MyCoolProject.MyCoolEventReceiver" -Type "ItemUpdating","ItemAdding" + ------------------EXAMPLE------------------ + PS C:\> Start-SPAdminJob2 -Verbose - This example adds ItemUpdating and ItemAdding event receivers to the http://demo/Lists/MyList list. + This example runs all waiting administrative jobs on all servers and shows verbose output to the administrator. - Get-SPList - - - - Get-SPContentType - - - - Get-SPWeb + Start-SPAdminJob - Copy-SPList - Lists + Reset-SPTheme + Themes - Copy a list from one site to another. Wraps the functionality of the Export-SPWeb and Import-SPWeb cmdlets. + Resets a theme by applying all user specified theme configuration settings to the original source files. This is particularly helpful when the original source files have changed to a Feature upgrade. Copyright 2016 Falchion Consulting, LLC @@ -5915,12 +5436,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Copy - SPList + Reset + SPTheme 1.0.0.0 - Copy a list from one site to another. Wraps the functionality of the Export-SPWeb and Import-SPWeb cmdlets. + Resets a theme by applying all user specified theme configuration settings to the original source files. This is particularly helpful when the original source files have changed to a Feature upgrade. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -5930,114 +5451,41 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Copy-SPList + Reset-SPTheme - SourceList - SPListPipeBind - - - TargetWeb + Web SPWebPipeBind - DeleteSource - SwitchParameter - - - Path - String - - - SuppressAfterEvents - SwitchParameter - - - RetargetLinks - SwitchParameter - - - RetainObjectIdentity + SetSubWebsToInherit SwitchParameter - IncludeVersions - LastMajor | CurrentVersion | LastMajorAndMinor | All - - - IncludeDescendants - None | Content | All - - - UpdateVersions - Append | Overwrite | Ignore - - - CompressionSize - Int32 + AssignmentCollection + SPAssignmentCollection - - IncludeDependencies - SwitchParameter + + + Reset-SPTheme + + Site + SPSitePipeBind - ExcludeChildren + SetSubWebsToInherit SwitchParameter - UseSqlSnapshot - SwitchParameter - - - Force - SwitchParameter - - - HaltOnError - SwitchParameter - - - HaltOnWarning - SwitchParameter - - - IncludeUserSecurity - SwitchParameter - - - NoFileCompression - SwitchParameter - - - NoLogFile - SwitchParameter - - - AssignmentCollection - SPAssignmentCollection + AssignmentCollection + SPAssignmentCollection - SourceList - - The source list to copy. - - The value must be a valid URL in the form http://server_name - - SPListPipeBind - - SPListPipeBind - - - - - - - - TargetWeb + Web - Specifies the URL or GUID of the Web containing the list to be copied. + Specifies the URL or GUID of the Web containing the theme to reset. The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. @@ -6050,58 +5498,16 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - - DeleteSource - - Delete the source list after the copy operation completes. - - SwitchParameter - - SwitchParameter - - - - - - - - Path - - Specifies the name of the export file. - - If the NoFileCompression parameter is used, a directory must be specified; otherwise, any file format is valid. - - String - - String - - - - - - - - SuppressAfterEvents + + Site + The site containing the theme(s) to reset. If specified, all webs that have a unique theme will be reset. + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - SwitchParameter - - SwitchParameter - - - - - - - - RetargetLinks - - Iterate through all links pointing to the source and retarget to the new location. - - SwitchParameter + SPSitePipeBind - SwitchParameter + SPSitePipeBind @@ -6109,9 +5515,9 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - RetainObjectIdentity + SetSubWebsToInherit - If specified, create the new list with the same ID as the source list. The target location must be in a different content database from the source list for this to work. + If specified, all child webs will be reset to inherit the theme of the specified web or root web. SwitchParameter @@ -6122,133 +5528,341 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - - IncludeVersions + + AssignmentCollection - Indicates the type of file and list item version history to be included in the export operation. If the IncludeVersions parameter is absent, the Copy-SPList cmdlet by default uses a value of "LastMajor". - - The type must be any one of the following versions: + Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used. - -Last major version for files and list items (default) - -The current version, either the last major version or the last minor version - -Last major and last minor version for files and list items - -All versions for files and list items + When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur. - Nullable`1 + SPAssignmentCollection - Nullable`1 + SPAssignmentCollection - - IncludeDescendants - - - - Nullable`1 + + + - Nullable`1 + - - - UpdateVersions - - - - Nullable`1 + + + + - Nullable`1 + - - - CompressionSize + + + + + + + + For more information, type "Get-Help Reset-SPTheme -detailed". For technical information, type "Get-Help Reset-SPTheme -full". + + + + + ------------------EXAMPLE 1----------------------- + PS C:\> Get-SPWeb http://server_name/sub-web | Reset-SPTheme + + This example resets the theme for the web http://server_name/sub-web. + + + + ------------------EXAMPLE 2----------------------- + PS C:\> Get-SPSite http://server_name | Reset-SPTheme -SetSubWebsToInherit + + This example resets the theme for the site collection http://server_name and resets all child webs to inherit from the root web. + + + + + + Get-SPWeb + + + + Get-SPSite + + + + + + + Clear-SPHttpContext + Site Collections + + Clears the HTTP Context. Run this cmdlet when finished with an HTTP Context created by Set-SPHttpContext. + + + Copyright 2016 Falchion Consulting, LLC + > For more information on this cmdlet and others: + > http://blog.falchionconsulting.com/ + > Use of this cmdlet is at your own risk. + > Gary Lapointe assumes no liability. + + Clear + SPHttpContext + 1.0.0.0 + + + Clears the HTTP Context. Run this cmdlet when finished with an HTTP Context created by Set-SPHttpContext. The HTTP Context is cleared by setting the static System.Web.HttpContext.Current property to $null (this can be done explicitly or via this cmdlet). + + Copyright 2016 Falchion Consulting, LLC + > For more information on this cmdlet and others: + > http://blog.falchionconsulting.com/ + > Use of this cmdlet is at your own risk. + > Gary Lapointe assumes no liability. + + + + Clear-SPHttpContext + + AssignmentCollection + SPAssignmentCollection + + + + + + AssignmentCollection - Sets the maximum file size for the compressed export files. If the total size of the exported package is greater than this size, the exported package will be split into multiple files. + Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used. + + When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur. - Int32 + SPAssignmentCollection - Int32 + SPAssignmentCollection - - IncludeDependencies - - - - SwitchParameter + + + - SwitchParameter + - - - ExcludeChildren - - - - SwitchParameter + + + + - SwitchParameter + - - - UseSqlSnapshot + + + + + + + + For more information, type "Get-Help Clear-SPHttpContext -detailed". For technical information, type "Get-Help Clear-SPHttpContext -full". + + + + + ------------------EXAMPLE------------------ + PS C:\> $web = Set-SPHttpContext "http://demo/" +PS C:\> Write-Host "do something with the web" +PS C:\> Clear-SPHttpContext + + This example clears the HttpContext. + + + + + + Set-SPHttpContext + + + + + + + ConvertTo-SPSite + Site Collections + + Converts a sub-site to a site collection. + + + Copyright 2016 Falchion Consulting, LLC + > For more information on this cmdlet and others: + > http://blog.falchionconsulting.com/ + > Use of this cmdlet is at your own risk. + > Gary Lapointe assumes no liability. + + ConvertTo + SPSite + 1.0.0.0 + + + Converts a sub-site to a site collection. + + Copyright 2016 Falchion Consulting, LLC + > For more information on this cmdlet and others: + > http://blog.falchionconsulting.com/ + > Use of this cmdlet is at your own risk. + > Gary Lapointe assumes no liability. + + + + ConvertTo-SPSite + + SourceWeb + SPWebPipeBind + + + TargetUrl + String + + + OwnerLogin + String + + + OwnerEmail + String + + + SecondaryEmail + String + + + SecondaryOwnerLogin + String + + + ContentDatabase + SPContentDatabasePipeBind + + + SiteSubscription + SPSiteSubscriptionPipeBind + + + Name + String + + + Language + UInt32 + + + Description + String + + + ExportedFile + String + + + NoFileCompression + SwitchParameter + + + SuppressAfterEvents + SwitchParameter + + + DeleteSource + SwitchParameter + + + CreateManagedPath + SwitchParameter + + + HaltOnWarning + SwitchParameter + + + HaltOnFatalError + SwitchParameter + + + IncludeUserSecurity + SwitchParameter + + + HostHeaderWebApplication + SPWebApplicationPipeBind + + + QuotaTemplate + SPQuotaTemplatePipeBind + + + AssignmentCollection + SPAssignmentCollection + + + + + + SourceWeb - Specifies a SQL Database Snapshot will be created when the export process begins, and all exported data will be retrieved directly from the database snapshot. This snapshot will be automatically deleted when export completes. + Specifies the URL or GUID of the Web to be converted. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. - SwitchParameter + SPWebPipeBind - SwitchParameter + SPWebPipeBind - - Force + + TargetUrl - Forcefully overwrites the export package if it already exists. + The target URL of the new site collection. Example: http://server_name/sites/newsite1 - SwitchParameter + String - SwitchParameter + String - - HaltOnError + + OwnerLogin - Stops the export/import process when an error occurs. + The site collection's owner login in the form domain\user. - SwitchParameter + String - SwitchParameter + String @@ -6256,13 +5870,13 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - HaltOnWarning + OwnerEmail - Stops the export/import process when a warning occurs. + The owner's email in the form user@domain.com - SwitchParameter + String - SwitchParameter + String @@ -6270,13 +5884,13 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - IncludeUserSecurity + SecondaryEmail - Preserves the user security settings. + The secondary owner's email in the form user@domain.com - SwitchParameter + String - SwitchParameter + String @@ -6284,13 +5898,13 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - NoFileCompression + SecondaryOwnerLogin - Either enables or disables file compression in the export package. The export package is stored in the folder specified by thePath parameter or Identity parameter. We recommend that you use this parameter for performance reasons. If compression is enabled, the export process can increase by approximately 30 percent. + The seconary owner's login in the form domain\user. - SwitchParameter + String - SwitchParameter + String @@ -6298,179 +5912,97 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - NoLogFile + ContentDatabase - Suppresses the generation of an export log file. If this parameter is not specified, the cmdlet will generate an export log file in the same location as the export package. The log file uses Unified Logging Service (ULS). - - It is recommended to use this parameter. However, for performance reasons, you might not want to generate a log file. + The content database to store the new site collection within. - SwitchParameter + SPContentDatabasePipeBind - SwitchParameter + SPContentDatabasePipeBind - - AssignmentCollection + + SiteSubscription - Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used. - When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur. - SPAssignmentCollection + SPSiteSubscriptionPipeBind - SPAssignmentCollection + SPSiteSubscriptionPipeBind - - - + + Name + + The name or title of the new site collection. + + String - + String - - - - + + + Language + + + + UInt32 - + UInt32 - - - - - - - - For more information, type "Get-Help Copy-SPList -detailed". For technical information, type "Get-Help Copy-SPList -full". - - - - - ------------------EXAMPLE------------------ - PS C:\> Get-SPList "http://server_name/sites/site1/lists/mylist" | Copy-SPList -TargetWeb "http://server_name/sites/sites2" - - This example copies the mylist list from site1 to site2. - - - - - - Export-SPWeb2 - - - - Import-SPWeb2 - - - - Get-SPList - - - - Copy-SPListSecurity - - - - Export-SPWeb - - - - Import-SPWeb - - - - - - - Copy-SPListSecurity - Lists - - Copy the security settings and permissions from one list to another. - - - Copyright 2016 Falchion Consulting, LLC - > For more information on this cmdlet and others: - > http://blog.falchionconsulting.com/ - > Use of this cmdlet is at your own risk. - > Gary Lapointe assumes no liability. - - Copy - SPListSecurity - 1.0.0.0 - - - Copy the security settings and permissions from one list to another. - - Copyright 2016 Falchion Consulting, LLC - > For more information on this cmdlet and others: - > http://blog.falchionconsulting.com/ - > Use of this cmdlet is at your own risk. - > Gary Lapointe assumes no liability. - - - - Copy-SPListSecurity - - SourceList - SPListPipeBind - - - TargetList - SPListPipeBind - - - IncludeItemSecurity - SwitchParameter - - - AssignmentCollection - SPAssignmentCollection - - - - - - SourceList + + + Description - The source list whose security will be copied. - The value must be a valid URL in the form http://server_name - SPListPipeBind + String - SPListPipeBind + String - - TargetList + + ExportedFile + + If an export of the source web was already performed provide the path to the exported file to prevent another export from occuring. + + String + + String + + + + + + + + NoFileCompression - The target list to apply the new security to. - The value must be a valid URL in the form http://server_name - SPListPipeBind + SwitchParameter - SPListPipeBind + SwitchParameter @@ -6478,9 +6010,9 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - IncludeItemSecurity + SuppressAfterEvents - In addition to the list level security copy the security settings of individual items. + SwitchParameter @@ -6491,6 +6023,104 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 + + DeleteSource + + Delete the source web after the conversion completes. + + SwitchParameter + + SwitchParameter + + + + + + + + CreateManagedPath + + Create a managed path for the new site collection. + + SwitchParameter + + SwitchParameter + + + + + + + + HaltOnWarning + + Halt the export or import operation on warning. + + SwitchParameter + + SwitchParameter + + + + + + + + HaltOnFatalError + + Halt the export or import operation on error. + + SwitchParameter + + SwitchParameter + + + + + + + + IncludeUserSecurity + + + + SwitchParameter + + SwitchParameter + + + + + + + + HostHeaderWebApplication + + + + SPWebApplicationPipeBind + + SPWebApplicationPipeBind + + + + + + + + QuotaTemplate + + The quota template to assign to the new site collection. + + SPQuotaTemplatePipeBind + + SPQuotaTemplatePipeBind + + + + + + AssignmentCollection @@ -6535,39 +6165,47 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help Copy-SPListSecurity -detailed". For technical information, type "Get-Help Copy-SPListSecurity -full". + For more information, type "Get-Help ConvertTo-SPSite -detailed". For technical information, type "Get-Help ConvertTo-SPSite -full". ------------------EXAMPLE------------------ - PS C:\> Get-SPList "http://server_name/lists/list1" | Copy-SPListSecurity -TargetList (Get-SPList "http://server_name/lists/list2") + PS C:\> Get-SPWeb http://portal/subweb1 | ConvertTo-SPSite -TargetUrl "http://portal/sites/newsitecoll" -OwnerLogin domain\user - This example copies the security settings and permissions from list1 to list2. + This example converts the web located at http://portal/subweb1 to a site collection located at http://portal/sites/newsitecoll - Export-SPListSecurity + Repair-SPMigratedSite - Import-SPListSecurity + Export-SPWeb2 - Get-SPList + Import-SPWeb2 + + + + Export-SPWeb + + + + Import-SPWeb - Remove-SPList - Lists + Export-SPNavigation + Site Collections - Delete a list from a web site. + Export the navigation settings of a publishing site. Copyright 2016 Falchion Consulting, LLC @@ -6576,12 +6214,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Remove - SPList + Export + SPNavigation 1.0.0.0 - Delete a list from a web site. + Export the navigation settings of a publishing site. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -6591,21 +6229,32 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Remove-SPList + Export-SPNavigation - Identity - SPListPipeBind + Site + SPSitePipeBind + OutputFile + String + + + AssignmentCollection + SPAssignmentCollection + + + + Export-SPNavigation + Web SPWebPipeBind - Force + IncludeChildren SwitchParameter - BackupDirectory + OutputFile String @@ -6616,29 +6265,29 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Identity + Site - The list to delete. + Specifies the URL or GUID of the Site whose navigation settings will be exported. - The value must be a valid URL in the form http://server_name/lists/listname or /lists/listname. If a server relative URL is provided then the Web parameter must be provided. + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - SPListPipeBind + SPSitePipeBind - SPListPipeBind + SPSitePipeBind - + Web - Specifies the URL or GUID of the Web containing the list to be deleted. + Specifies the URL or GUID of the Web whose navigation settings will be exported. The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. - SPWebPipeBind + SPWebPipeBind SPWebPipeBind @@ -6648,13 +6297,13 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Force + OutputFile - Force the deletion of the list by overriding the AllowDeletion flag. + The path to the file to save the navigation settings to. - SwitchParameter + String - SwitchParameter + String @@ -6662,13 +6311,13 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - BackupDirectory + IncludeChildren - Export the list prior to deleting. The type must be a valid directory path. + Include all child webs of the specified Web. - String + SwitchParameter - String + SwitchParameter @@ -6719,35 +6368,45 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help Remove-SPList -detailed". For technical information, type "Get-Help Remove-SPList -full". + For more information, type "Get-Help Export-SPNavigation -detailed". For technical information, type "Get-Help Export-SPNavigation -full". - ------------------EXAMPLE------------------ - PS C:\> Get-SPList "http://server_name/lists/mylist" | Remove-SPList -BackupDirectory "c:\backups\mylist" + ------------------EXAMPLE 1----------------------- + PS C:\> Get-SPSite "http://server_name/" | Export-SPNavigation -OutputFile "c:\nav.xml" - This example deletes the list mylist and creates a backup of the list in the c:\backups\mylist folder. + This example exports the navigation settings from the site collection and saves to c:\nav.xml. + + + + ------------------EXAMPLE 2----------------------- + PS C:\> Get-SPWeb "http://server_name/subsite" | Export-SPNavigation -OutputFile "c:\nav.xml" + + This example exports the navigation settings for http://server_name/subsite and saves to c:\nav.xml. + + + + ------------------EXAMPLE 3----------------------- + PS C:\> Get-SPWeb "http://server_name/subsite" | Export-SPNavigation -OutputFile "c:\nav.xml" -IncludeChildren + + This example exports the navigation settings for http://server_name/subsite and all its sub-sites and saves to c:\nav.xml. - Get-SPList - - - - Get-SPWeb + Import-SPNavigation - Download-SPFile - Lists + Get-SPAvailableWebTemplates + Site Collections - Save the file associated with the specified file or folder URL. + Copyright 2016 Falchion Consulting, LLC @@ -6756,12 +6415,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Download - SPFile + Get + SPAvailableWebTemplates 1.0.0.0 - Save the file associated with the specified file or folder URL. + Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -6771,97 +6430,28 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Download-SPFile - - File - SPFilePipeBind[] - - - File - SPFilePipeBind[] - - - - Download-SPFile + Get-SPAvailableWebTemplates - Folder - SPFolderPipeBind - - - Recursive - SwitchParameter + Web + SPWebPipeBind - - File - SPFilePipeBind[] + + AssignmentCollection + SPAssignmentCollection - - File - - The path to the file to save. - - SPFilePipeBind[] - - SPFilePipeBind[] - - - - - - - Folder - - The path to the folder to save. - - SPFolderPipeBind - - SPFolderPipeBind - - - - - - - - Recursive - - Save all child folders and their files. - - SwitchParameter - - SwitchParameter - - - - - - - - TargetFolder - - The path to the folder to save the files to. - - String - - String - - - - - - - - Overwrite + Web - Overwrite existing files. + Specifies the URL or GUID of the Web for which the available site templates will be returned. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. - SwitchParameter + SPWebPipeBind - SwitchParameter + SPWebPipeBind @@ -6912,36 +6502,29 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help Download-SPFile -detailed". For technical information, type "Get-Help Download-SPFile -full". + For more information, type "Get-Help Get-SPAvailableWebTemplates -detailed". For technical information, type "Get-Help Get-SPAvailableWebTemplates -full". - ------------------EXAMPLE 1----------------------- - PS C:\> Download-SPFile -File "http://server_name/pages/default.aspx" -TargetFolder "c:\temp" - - This saves the default.aspx file from the http://server_name/pages library. - - - - ------------------EXAMPLE 2----------------------- - PS C:\> Download-SPFile "http://server_name/documents/" -TargetFolder "c:\temp" -Recursive + ------------------EXAMPLE------------------ + PS C:\> Get-SPWeb http://portal | Get-SPAvailableWebTemplates - This example saves all files from the http://server_name/documents library. + This example returns back all available site templates for http://portal. - Get-SPFile + Get-SPWeb - Export-SPListSecurity - Lists + Import-SPNavigation + Site Collections Export the security settings and permissions from a list. @@ -6952,8 +6535,8 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Export - SPListSecurity + Import + SPNavigation 1.0.0.0 @@ -6967,38 +6550,58 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Export-SPListSecurity + Import-SPNavigation - List - SPListPipeBind + Site + SPSitePipeBind - - OutputFile + + InputFile String - IncludeItemSecurity + DeleteExistingGlobal + SwitchParameter + + + DeleteExistingCurrent SwitchParameter + + BackupFile + String + AssignmentCollection SPAssignmentCollection - Export-SPListSecurity + Import-SPNavigation Web SPWebPipeBind - OutputFile + IncludeChildren + SwitchParameter + + + InputFile String - IncludeItemSecurity + DeleteExistingGlobal + SwitchParameter + + + DeleteExistingCurrent SwitchParameter + + BackupFile + String + AssignmentCollection SPAssignmentCollection @@ -7007,15 +6610,15 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - List + Site - The list whose security will be exported. + Specifies the URL or GUID of the Site whose navigation settings will be updated. - The value must be a valid URL in the form http://server_name + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - SPListPipeBind + SPSitePipeBind - SPListPipeBind + SPSitePipeBind @@ -7025,7 +6628,7 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 Web - Specifies the URL or GUID of the Web containing the lists whose security will be exported. + Specifies the URL or GUID of the Web whose navigation settings will be updated. The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. @@ -7038,12 +6641,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - - OutputFile + + InputFile - The path to the file to save the security to. + The path to the file containing the navigation settings to import. - String + String String @@ -7053,9 +6656,37 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - IncludeItemSecurity + IncludeChildren - In addition to the list level security copy the security settings of individual items. + Include all child webs of the specified Web. + + SwitchParameter + + SwitchParameter + + + + + + + + DeleteExistingGlobal + + Delete the existing glboal navigation settings. + + SwitchParameter + + SwitchParameter + + + + + + + + DeleteExistingCurrent + + Delete the existing current navigation settings. SwitchParameter @@ -7066,6 +6697,20 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 + + BackupFile + + The path to the backup file to save the navigation settings to prior to importing. + + String + + String + + + + + + AssignmentCollection @@ -7110,46 +6755,45 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help Export-SPListSecurity -detailed". For technical information, type "Get-Help Export-SPListSecurity -full". + For more information, type "Get-Help Import-SPNavigation -detailed". For technical information, type "Get-Help Import-SPNavigation -full". ------------------EXAMPLE 1----------------------- - PS C:\> Get-SPWeb "http://server_name" | Export-SPListSecurity -OutputFile "c:\listsecurity.xml" + PS C:\> Get-SPSite "http://server_name/" | Import-SPNavigation -InputFile "c:\nav.xml" - This example exports the security settings and permissions for all lists in http://server_name and saves to c:\listsecurity.xml. + This example imports the navigation settings from the c:\nav.xml to the specified site collection. ------------------EXAMPLE 2----------------------- - PS C:\> Get-SPList "http://server_name/lists/list1" | Export-SPListSecurity -OutputFile "c:\listsecurity.xml" + PS C:\> Get-SPWeb "http://server_name/subsite" | Import-SPNavigation -InputFile "c:\nav.xml" - This example exports the security settings and permissions from list1 and saves to c:\listsecurity.xml. + This example imports the navigation settings from the c:\nav.xml to http://server_name/subsite. + + + + ------------------EXAMPLE 3----------------------- + PS C:\> Get-SPWeb "http://server_name/subsite" | Import-SPNavigation -InputFile "c:\nav.xml" -IncludeChildren + + This example imports the navigation settings from the c:\nav.xml to http://server_name/subsite and all of its sub-sites. - Copy-SPListSecurity - - - - Import-SPListSecurity - - - - Get-SPList + Export-SPNavigation - Export-SPWeb2 - Lists + Move-SPWeb + Site Collections - The Export-SPWeb2 cmdlet exports a site collection, Web application, list, or library. This cmdlet extends the capabilities of the Export-SPWeb cmdlet by exposing additional parameters. + Move an SPWeb from one URL to another. Copyright 2016 Falchion Consulting, LLC @@ -7158,12 +6802,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Export - SPWeb2 + Move + SPWeb 1.0.0.0 - The Export-SPWeb2 cmdlet exports a site collection, Web application, list, or library. This cmdlet extends the capabilities of the Export-SPWeb cmdlet by exposing additional parameters. + Move an SPWeb from one URL to another. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -7173,78 +6817,18 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Export-SPWeb2 - - Identity - SPWebPipeBind - - - CompressionSize - Int32 - - - IncludeDependencies - SwitchParameter - - - ExcludeChildren - SwitchParameter - - - IncludeVersions - LastMajor | CurrentVersion | LastMajorAndMinor | All - - - IncludeDescendants - None | Content | All - - - ItemUrl - String - - - UseSqlSnapshot - SwitchParameter - - - Force - SwitchParameter - - - HaltOnError - SwitchParameter - - - HaltOnWarning - SwitchParameter - - - IncludeUserSecurity - SwitchParameter - - - NoFileCompression - SwitchParameter - + Move-SPWeb - NoLogFile - SwitchParameter - - - Path + UrlName String - - AssignmentCollection - SPAssignmentCollection - - + Identity - Specifies the URL or GUID of the Web to be exported. + Specifies the URL or GUID of the existing Web to move. The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. @@ -7257,28 +6841,28 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - - CompressionSize + + Parent - Sets the maximum file size for the compressed export files. If the total size of the exported package is greater than this size, the exported package will be split into multiple files. + Specifies the URL of the parent Web to move the Web to. This will not change the URL name of the current Web. - Int32 + SPWebPipeBind - Int32 + SPWebPipeBind - - IncludeDependencies + + UrlName - + Specifies the URL name of the Web. If not specified then the current URL name is used. For example, if moving http://portal/foo/bar, "bar" is the URL name of the Web. - SwitchParameter + String - SwitchParameter + String @@ -7286,9 +6870,9 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - ExcludeChildren + HaltOnWarning - + When moving to a new Site Collection, halts the export or import of the Web if an warning occurs. SwitchParameter @@ -7300,20 +6884,13 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - IncludeVersions + HaltOnFatalError - Indicates the type of file and list item version history to be included in the export operation. If the IncludeVersions parameter is absent, the cmdlet by default uses a value of "LastMajor". - - The type must be any one of the following versions: - - -Last major version for files and list items (default) - -The current version, either the last major version or the last minor version - -Last major and last minor version for files and list items - -All versions for files and list items + When moving to a new Site Collection, halts the export or import of the Web if an error occurs. - SPIncludeVersions + SwitchParameter - SPIncludeVersions + SwitchParameter @@ -7321,13 +6898,13 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - IncludeDescendants + IncludeUserSecurity - + When moving to a new Site Collection, includes user security. - SPIncludeDescendants + SwitchParameter - SPIncludeDescendants + SwitchParameter @@ -7335,15 +6912,13 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - ItemUrl + SuppressAfterEvents - Specifies the URL of the Web application, GUID, or object to be exported. - - The type must be a valid URL; for example, http://server_name. + When moving to a new Site Collection, disable the firing of "After" events when creating or modifying list items. - String + SwitchParameter - String + SwitchParameter @@ -7351,9 +6926,9 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - UseSqlSnapshot + RetainObjectIdentity - Specifies a SQL Database Snapshot will be created when the export process begins, and all exported data will be retrieved directly from the database snapshot. This snapshot will be automatically deleted when export completes. + When moving to a new Site Collection, retains the identity of all (lists and sub-webs). SwitchParameter @@ -7365,117 +6940,29 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Force + TempPath - Forcefully overwrites the export package if it already exists. + When moving to a new Site Collection, the -TempPath parameter specifies where the export files will be stored. - SwitchParameter + String - SwitchParameter + String - - HaltOnError + + AssignmentCollection - Stops the export/import process when an error occurs. + Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used. + + When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur. - SwitchParameter + SPAssignmentCollection - SwitchParameter - - - - - - - - HaltOnWarning - - Stops the export/import process when a warning occurs. - - SwitchParameter - - SwitchParameter - - - - - - - - IncludeUserSecurity - - Preserves the user security settings. - - SwitchParameter - - SwitchParameter - - - - - - - - NoFileCompression - - Either enables or disables file compression in the export package. The export package is stored in the folder specified by thePath parameter or Identity parameter. We recommend that you use this parameter for performance reasons. If compression is enabled, the export process can increase by approximately 30 percent. - - SwitchParameter - - SwitchParameter - - - - - - - - NoLogFile - - Suppresses the generation of an export log file. If this parameter is not specified, the cmdlet will generate an export log file in the same location as the export package. The log file uses Unified Logging Service (ULS). - - It is recommended to use this parameter. However, for performance reasons, you might not want to generate a log file. - - SwitchParameter - - SwitchParameter - - - - - - - - Path - - Specifies the name of the export file. - - If the NoFileCompression parameter is used, a directory must be specified; otherwise, any file format is valid. - - String - - String - - - - - - - - AssignmentCollection - - Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used. - - When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur. - - SPAssignmentCollection - - SPAssignmentCollection + SPAssignmentCollection @@ -7510,31 +6997,69 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help Export-SPWeb2 -detailed". For technical information, type "Get-Help Export-SPWeb2 -full". + For more information, type "Get-Help Move-SPWeb -detailed". For technical information, type "Get-Help Move-SPWeb -full". - + + + ------------------EXAMPLE 1----------------------- + PS C:\> Move-SPWeb -Identity "http://portal/foo/bar" -Parent "http://portal/" + + This example moves the Web located at http://portal/foo/bar to http://portal/bar. + + + + ------------------EXAMPLE 2----------------------- + PS C:\> Move-SPWeb -Identity "http://portal/foo/bar" -Parent "http://portal/" -UrlName "foobar" + + This example moves the Web located at http://portal/foo/bar to http://portal/foobar. + + + + ------------------EXAMPLE 3----------------------- + PS C:\> Move-SPWeb -Identity "http://portal/foo/bar" -UrlName "foobar" + + This example moves the Web located at http://portal/foo/bar to http://portal/foo/foobar. + + + - Import-SPWeb2 + Remove-SPList - Export-SPWeb + Copy-SPList - Import-SPWeb + Copy-SPListSecurity + + + + Export-SPListSecurity + + + + Get-SPWeb + + + + Start-SPAssignment + + + + Stop-SPAssignment - Get-SPCheckedOutFiles - Lists + Repair-SPMigratedSite + Site Collections - Retrieves check out details for a given List, Web, or Site Collection. + Repair a site collection that was created using the export of a web. This cmdlet is the equivalent to the SharePoint 2010 Repair-SPSite cmdlet - it was renamed because SharePoint 2013 introduced a Repair-SPSite cmdlet which does different things. Copyright 2016 Falchion Consulting, LLC @@ -7543,12 +7068,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Get - SPCheckedOutFiles + Repair + SPMigratedSite 1.0.0.0 - Retrieves check out details for a given List, Web, or Site Collection. + Repair a site collection that was created using the export of a web. This cmdlet is the equivalent to the SharePoint 2010 Repair-SPSite cmdlet - it was renamed because SharePoint 2013 introduced a Repair-SPSite cmdlet which does different things. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -7558,52 +7083,26 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Get-SPCheckedOutFiles - - Site + Repair-SPMigratedSite + + TargetSite SPSitePipeBind - - Site + + SourceSite SPSitePipeBind - - - Get-SPCheckedOutFiles - - Web - SPWebPipeBind - - ExcludeChildWebs - SwitchParameter - - - Site - SPSitePipeBind - - - - Get-SPCheckedOutFiles - - Web - SPWebPipeBind - - - List - SPListPipeBind - - - Site - SPSitePipeBind + AssignmentCollection + SPAssignmentCollection - - Site + + TargetSite - Specifies the URL or GUID of the Site to inspect. + The site to repair. The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. @@ -7616,46 +7115,16 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - - Web - - Specifies the URL or GUID of the Web to inspect. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPWeb object. - - SPWebPipeBind - - SPWebPipeBind - - - - - - - - List + + SourceSite - The list whose checked out files are to be returned. + The model or source site collection to use as the basis for the repairs. - The value must be a valid URL in the form http://server_name/lists/listname or /lists/listname. If a server relative URL is provided then the Web parameter must be provided. - - SPListPipeBind - - SPListPipeBind - - - - - - - - ExcludeChildWebs - - Excludes all child sites and only considers the specified site. + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - SwitchParameter + SPSitePipeBind - SwitchParameter + SPSitePipeBind @@ -7706,31 +7175,47 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help Get-SPCheckedOutFiles -detailed". For technical information, type "Get-Help Get-SPCheckedOutFiles -full". + For more information, type "Get-Help Repair-SPMigratedSite -detailed". For technical information, type "Get-Help Repair-SPMigratedSite -full". ------------------EXAMPLE------------------ - PS C:\> Get-SPCheckedOutFiles -Site "http://server_name/" + PS C:\> Get-SPSite http://portal/sites/newsitecoll | Repair-SPMigratedSite -SourceSite "http://portal/" - This example outputs a list of files that are checked out for the given Site Collection + This example repairs the site collection located at http://portal/sites/newsitecoll using the site collection http://portal as the model site for the repairs. - Get-SPFile + ConvertTo-SPSite + + + + Export-SPWeb2 + + + + Import-SPWeb2 + + + + Export-SPWeb + + + + Import-SPWeb - Get-SPFile - Lists + Set-SPHttpContext + Site Collections - Retrieves the SPFile object associated with the specified URL. Use the AssignmentCollection parameter to handle disposal of parent web and site objects. + Sets the HTTP Context for a given Site and returns a new SPWeb object associated with the new context. When done with a given Site be sure to run Clear-SPHttpContext in order to remove the context. Copyright 2016 Falchion Consulting, LLC @@ -7739,12 +7224,18 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Get - SPFile + Set + SPHttpContext 1.0.0.0 - Retrieves the SPFile object associated with the specified URL. Use the AssignmentCollection parameter to handle disposal of parent web and site objects. + Many native SharePoint objects, such as Web Parts, require a valid HTTP Context in order for certain properties to be available. When working within PowerShell there is no HTTP Context so it is necessary to create one. This is accomplished by setting the System.Web.HttpContext.Current static property to a valid object instantiated using the provided SPWeb object. Once created there are SharePoint specific properties that must be set on this object. This cmdlet sets the following (where $context is the HttpContext object): + 1. $context.Items["FormDigestValidated"] = true; + 2. $context.User = System.Threading.Thread.CurrentPrincipal; + 3. $context.Items["Microsoft.SharePoint.SPServiceContext"] = Microsoft.SharePoint.SPServiceContext.GetContext($web.Site); + 4. Microsoft.SharePoint.Web.Controls.SPControl.SetContextSite($context, $web.Site); + 5. Microsoft.SharePoint.Web.Controls.SPControl.SetContextWeb($context, $web); + When you are finished working with a given Site run Clear-SPHttpContext to set the HttpContext object back to null. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -7754,10 +7245,10 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Get-SPFile + Set-SPHttpContext Identity - SPFilePipeBind[] + SPWebPipeBind AssignmentCollection @@ -7766,14 +7257,16 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - + Identity - The path to the publishing page to return. + The web to set the HTTP Context to. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. - SPFilePipeBind[] + SPWebPipeBind - SPFilePipeBind[] + SPWebPipeBind @@ -7824,46 +7317,37 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help Get-SPFile -detailed". For technical information, type "Get-Help Get-SPFile -full". + For more information, type "Get-Help Set-SPHttpContext -detailed". For technical information, type "Get-Help Set-SPHttpContext -full". - ------------------EXAMPLE 1----------------------- - PS C:\> $file = Get-SPFile "http://server_name/documents/HRHandbook.doc" - - This example returns back the HRHandbook.doc file from the http://server_name/documents library. - - - - ------------------EXAMPLE 2----------------------- - PS C:\> $file = Get-SPFile "http://server_name/pages/default.aspx" + ------------------EXAMPLE------------------ + PS C:\> $web = Set-SPHttpContext "http://demo/" +PS C:\> Write-Host "do something with the web" +PS C:\> Clear-SPHttpContext - This example returns back the default.aspx file from the http://server_name/pages library. + This example sets the HttpContext to http://demo. - Get-SPPublishingPage - - - - Start-SPAssignment + Clear-SPHttpContext - Stop-SPAssignment + Get-SPWeb - Get-SPList - Lists + Get-SPQuotaTemplate + Quotas - Retrieve an SPList object by name or type. Use the AssignmentCollection parameter to ensure parent objects are properly disposed. + Retrieve one or more quota templates. Copyright 2016 Falchion Consulting, LLC @@ -7873,11 +7357,11 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Gary Lapointe assumes no liability. Get - SPList + SPQuotaTemplate 1.0.0.0 - Retrieve an SPList object by name or type. Use the AssignmentCollection parameter to ensure parent objects are properly disposed. + Retrieve one or more quota templates. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -7887,29 +7371,10 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Get-SPList + Get-SPQuotaTemplate Identity - SPListPipeBind - - - Web - SPWebPipeBind - - - AssignmentCollection - SPAssignmentCollection - - - - Get-SPList - - ListType - GenericList | DocumentLibrary | Unused | DiscussionBoard | Survey | Issue | UnspecifiedBaseType - - - Web - SPWebPipeBind + SPQuotaTemplatePipeBind AssignmentCollection @@ -7918,44 +7383,14 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - + Identity - - - SPListPipeBind - - SPListPipeBind - - - - - - - - ListType - - - - SPBaseType - - SPBaseType - - - - - - - - Web - - Specifies the URL or GUID of the Web containing the list to be retrieved. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. + The name of the quota template to return. - SPWebPipeBind + SPQuotaTemplatePipeBind - SPWebPipeBind + SPQuotaTemplatePipeBind @@ -8006,55 +7441,46 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help Get-SPList -detailed". For technical information, type "Get-Help Get-SPList -full". + For more information, type "Get-Help Get-SPQuotaTemplate -detailed". For technical information, type "Get-Help Get-SPQuotaTemplate -full". - ------------------EXAMPLE------------------ - PS C:\> $list = Get-SPList "http://server_name/lists/mylist" + ------------------EXAMPLE 1----------------------- + PS C:\> $quotas = Get-SPQuotaTemplate - This example retrieves the list at http://server_name/lists/mylist. + This example retrieves all quota templates. + + + + ------------------EXAMPLE 2----------------------- + PS C:\> $quota = Get-SPQuotaTemplate "Portal" + + This example retrieves the "Portal" quota template. - Remove-SPList - - - - Copy-SPList - - - - Copy-SPListSecurity - - - - Export-SPListSecurity - - - - Get-SPWeb + New-SPQuotaTemplate - Start-SPAssignment + Set-SPQuota - Stop-SPAssignment + Set-SPQuotaTemplate - Get-SPListOverlays - Lists + New-SPQuotaTemplate + Quotas - Retrieve all SPList objects set as a calendar overlay on the given list. + Creates a new quota template. Copyright 2016 Falchion Consulting, LLC @@ -8063,12 +7489,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Get - SPListOverlays + New + SPQuotaTemplate 1.0.0.0 - Retrieve all SPList objects set as a calendar overlay on the given list. + Creates a new quota template. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -8078,14 +7504,30 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Get-SPListOverlays + New-SPQuotaTemplate + + StorageMaximumLevel + Int64 + + + StorageWarningLevel + Int64 + + + UserCodeMaximumLevel + Double + + + UserCodeWarningLevel + Double + - Identity - SPListPipeBind + Name + String - Web - SPWebPipeBind + Quota + SPQuotaTemplatePipeBind AssignmentCollection @@ -8094,71 +7536,123 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - - Identity + + StorageMaximumLevel - The calendar whose calendar overlays will be retrieved. - - The value must be a valid URL in the form http://server_name/lists/listname or /lists/listname. If a server relative URL is provided then the Web parameter must be provided. + Specify whether to limit the amount of storage available on a Site Collection, and set the maximum amount of storage. When the warning level or maximum storage level is reached, an e-mail is sent to the site administrator to inform them of the issue. - SPListPipeBind + Nullable`1 - SPListPipeBind + Nullable`1 - - Web + + StorageWarningLevel - Specifies the URL or GUID of the Web containing the calendar whose overlays will be retrieved. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. + Specify whether to limit the amount of storage available on a Site Collection, and set the warning level. When the warning level or maximum storage level is reached, an e-mail is sent to the site administrator to inform them of the issue. - SPWebPipeBind + Nullable`1 - SPWebPipeBind + Nullable`1 - - AssignmentCollection + + UserCodeMaximumLevel - Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used. - - When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur. + Specifies whether sandboxed solutions with code are allowed for this site collection. When the maximum usage limit is reached, sandboxed solutions with code are disabled for the rest of the day and an e-mail is sent to the site administrator. - SPAssignmentCollection + Nullable`1 - SPAssignmentCollection + Nullable`1 - - - + + UserCodeWarningLevel + + Specifies whether sandboxed solutions with code are allowed for this site collection. When the warning level is reached, an e-mail is sent. + + Nullable`1 - + Nullable`1 - - - - - - - + + + Name + + The name of the new quota template to create. + + String + + String + + + + + + + + Quota + + An existing quota template to base the new template off of. + + SPQuotaTemplatePipeBind + + SPQuotaTemplatePipeBind + + + + + + + + AssignmentCollection + + Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used. + + When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur. + + SPAssignmentCollection + + SPAssignmentCollection + + + + + + + + + + + + + + + + + + + + + + + @@ -8170,39 +7664,46 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help Get-SPListOverlays -detailed". For technical information, type "Get-Help Get-SPListOverlays -full". + For more information, type "Get-Help New-SPQuotaTemplate -detailed". For technical information, type "Get-Help New-SPQuotaTemplate -full". - ------------------EXAMPLE------------------ - PS C:\> $lists = Get-SPListOverlays "http://server_name/lists/mylist" + ------------------EXAMPLE 1----------------------- + PS C:\> $quota = New-SPQuotaTemplate -Name "Portal" -StorageMaximumLevel 15GB -StorageWarningLevel 13GB - This example retrieves the calendar overlays for the calendar at http://server_name/lists/mycalendar. + This example creates a new quota template with a max storage value of 15GB and a warning value of 13GB. + + + + ------------------EXAMPLE 2----------------------- + PS C:\> $quota = Get-SPQuotaTemplate "Portal" | New-SPQuotaTemplate -Name "Teams" + + This example creates a new quota template based on the existing Portal quota template. - Get-SPList + Get-SPQuotaTemplate - Set-SPListOverlay + Set-SPQuota - Get-SPWeb + Set-SPQuotaTemplate - Import-SPListSecurity - Lists + Set-SPQuota + Quotas - Export the security settings and permissions from a list. + Synchronizes all assigned quotas with the corresponding quota template. Copyright 2016 Falchion Consulting, LLC @@ -8211,12 +7712,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Import - SPListSecurity + Set + SPQuota 1.0.0.0 - Export the security settings and permissions from a list. + Synchronizes all assigned quotas with the corresponding quota template. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -8226,37 +7727,89 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Import-SPListSecurity + Set-SPQuota + + SyncExistingOnly + SwitchParameter + - List - SPListPipeBind + Site + SPSitePipeBind - - Input - XmlDocumentPipeBind + + AssignmentCollection + SPAssignmentCollection + + + Set-SPQuota - IncludeItemSecurity + SyncExistingOnly SwitchParameter + + WebApplication + SPWebApplicationPipeBind + AssignmentCollection SPAssignmentCollection - Import-SPListSecurity - - Web - SPWebPipeBind + Set-SPQuota + + SyncExistingOnly + SwitchParameter + + + Farm + SPFarmPipeBind + + + AssignmentCollection + SPAssignmentCollection + + + + Set-SPQuota + + WebApplication + SPWebApplicationPipeBind - Input - XmlDocumentPipeBind + QuotaTemplate + SPQuotaTemplatePipeBind - IncludeItemSecurity - SwitchParameter + AssignmentCollection + SPAssignmentCollection + + + + Set-SPQuota + + Site + SPSitePipeBind + + + QuotaTemplate + SPQuotaTemplatePipeBind + + + AssignmentCollection + SPAssignmentCollection + + + + Set-SPQuota + + Farm + SPFarmPipeBind + + + QuotaTemplate + SPQuotaTemplatePipeBind AssignmentCollection @@ -8265,60 +7818,74 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 + + SyncExistingOnly + + Synchronize site collection quota settings with the associated template only (do not assign the template if missing). + + SwitchParameter + + SwitchParameter + + + + + + - List + WebApplication - The list whose security will be updated. + The web application containing the sites whose quota will be set or synchronized. - The value must be a valid URL in the form http://server_name + The type must be a valid URL, in the form http://server_name; or an instance of a valid SPWebApplication object. - SPListPipeBind + SPWebApplicationPipeBind - SPListPipeBind + SPWebApplicationPipeBind - - Web + + Site - Specifies the URL or GUID of the Web containing the lists whose security will be updated. + The site whose quota will be set or synchronized. - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - SPWebPipeBind + SPSitePipeBind - SPWebPipeBind + SPSitePipeBind - - Input + + Farm - The path to the file containing the security settings to import. + Set or synchronize all site collection quotas within the farm. - XmlDocumentPipeBind + SPFarmPipeBind - XmlDocumentPipeBind + SPFarmPipeBind - - IncludeItemSecurity + + QuotaTemplate - In addition to the list level security copy the security settings of individual items. + The quota template to associate with the site collections in the scope. - SwitchParameter + SPQuotaTemplatePipeBind - SwitchParameter + SPQuotaTemplatePipeBind @@ -8369,46 +7936,46 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help Import-SPListSecurity -detailed". For technical information, type "Get-Help Import-SPListSecurity -full". + For more information, type "Get-Help Set-SPQuota -detailed". For technical information, type "Get-Help Set-SPQuota -full". ------------------EXAMPLE 1----------------------- - PS C:\> Get-SPWeb "http://server_name" | Import-SPListSecurity -Path "c:\listsecurity.xml" + PS C:\> Get-SPWebApplication http://server_name | Set-SPQuota -SyncExistingOnly - This example imports the security settings and permissions from c:\listsecurity.xml and applies them to matching lists found in http://server_name. + This example synchronizes all site collections in http://server_name with the assigned quota template. ------------------EXAMPLE 2----------------------- - PS C:\> Get-SPList "http://server_name/lists/list1" | Import-SPListSecurity -Path "c:\listsecurity.xml" + PS C:\> Get-SPWebApplication http://server_name | Set-SPQuota -QuotaTempate (Get-SPQuotaTemplate "Portal") - This example imports the security settings and permissions from c:\listsecurity.xml and applies them to list1. + This example sets all site collections in http://server_name with the Portal quota template. - Copy-SPListSecurity + Get-SPQuotaTemplate - Export-SPListSecurity + Set-SPQuota - Get-SPList + New-SPQuotaTemplate - Import-SPWeb2 - Lists + Set-SPQuotaTemplate + Quotas - The Import-SPWeb2 cmdlet imports a site collection, Web application, list, or library. This cmdlet extends the capabilities of the Import-SPWeb cmdlet by exposing additional parameters. + Updates an existing quota template. Copyright 2016 Falchion Consulting, LLC @@ -8417,12 +7984,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Import - SPWeb2 + Set + SPQuotaTemplate 1.0.0.0 - The Import-SPWeb2 cmdlet imports a site collection, Web application, list, or library. This cmdlet extends the capabilities of the Import-SPWeb cmdlet by exposing additional parameters. + Updates an existing quota template. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -8432,50 +7999,26 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Import-SPWeb2 - - Identity - SPWebPipeBind - - - RetainObjectIdentity - SwitchParameter - - - SuppressAfterEvents - SwitchParameter - - - UpdateVersions - Append | Overwrite | Ignore - - - Force - SwitchParameter - - - HaltOnError - SwitchParameter - + Set-SPQuotaTemplate - HaltOnWarning - SwitchParameter + StorageMaximumLevel + Int64 - IncludeUserSecurity - SwitchParameter + StorageWarningLevel + Int64 - NoFileCompression - SwitchParameter + UserCodeMaximumLevel + Double - NoLogFile - SwitchParameter + UserCodeWarningLevel + Double - - Path - String + + Identity + SPQuotaTemplatePipeBind AssignmentCollection @@ -8484,100 +8027,14 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - - Identity - - Specifies the URL or GUID of the Web to be exported. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. - - SPWebPipeBind - - SPWebPipeBind - - - - - - - - RetainObjectIdentity - - - - SwitchParameter - - SwitchParameter - - - - - - - - SuppressAfterEvents - - - - SwitchParameter - - SwitchParameter - - - - - - - - UpdateVersions - - - - SPUpdateVersions - - SPUpdateVersions - - - - - - - - Force - - Forcefully overwrites the export package if it already exists. - - SwitchParameter - - SwitchParameter - - - - - - - - HaltOnError - - Stops the export/import process when an error occurs. - - SwitchParameter - - SwitchParameter - - - - - - - HaltOnWarning + StorageMaximumLevel - Stops the export/import process when a warning occurs. + Specify whether to limit the amount of storage available on a Site Collection, and set the maximum amount of storage. When the warning level or maximum storage level is reached, an e-mail is sent to the site administrator to inform them of the issue. - SwitchParameter + Nullable`1 - SwitchParameter + Nullable`1 @@ -8585,13 +8042,13 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - IncludeUserSecurity + StorageWarningLevel - Preserves the user security settings. + Specify whether to limit the amount of storage available on a Site Collection, and set the warning level. When the warning level or maximum storage level is reached, an e-mail is sent to the site administrator to inform them of the issue. - SwitchParameter + Nullable`1 - SwitchParameter + Nullable`1 @@ -8599,13 +8056,13 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - NoFileCompression + UserCodeMaximumLevel - Either enables or disables file compression in the export package. The export package is stored in the folder specified by thePath parameter or Identity parameter. We recommend that you use this parameter for performance reasons. If compression is enabled, the export process can increase by approximately 30 percent. + Specifies whether sandboxed solutions with code are allowed for this site collection. When the maximum usage limit is reached, sandboxed solutions with code are disabled for the rest of the day and an e-mail is sent to the site administrator. - SwitchParameter + Nullable`1 - SwitchParameter + Nullable`1 @@ -8613,31 +8070,27 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - NoLogFile + UserCodeWarningLevel - Suppresses the generation of an export log file. If this parameter is not specified, the cmdlet will generate an export log file in the same location as the export package. The log file uses Unified Logging Service (ULS). - - It is recommended to use this parameter. However, for performance reasons, you might not want to generate a log file. + Specifies whether sandboxed solutions with code are allowed for this site collection. When the warning level is reached, an e-mail is sent. - SwitchParameter + Nullable`1 - SwitchParameter + Nullable`1 - - Path + + Identity - Specifies the name of the export file. - - If the NoFileCompression parameter is used, a directory must be specified; otherwise, any file format is valid. + The name of the quota template to update. - String + SPQuotaTemplatePipeBind - String + SPQuotaTemplatePipeBind @@ -8688,31 +8141,46 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help Import-SPWeb2 -detailed". For technical information, type "Get-Help Import-SPWeb2 -full". + For more information, type "Get-Help Set-SPQuotaTemplate -detailed". For technical information, type "Get-Help Set-SPQuotaTemplate -full". - + + + ------------------EXAMPLE 1----------------------- + PS C:\> $quota = Set-SPQuotaTemplate -Name "Portal" -StorageMaximumLevel 15GB -StorageWarningLevel 13GB + + This example updates the Portal quota template and sets the max storage value to 15GB and warning value to 13GB. + + + + ------------------EXAMPLE 2----------------------- + PS C:\> Get-SPQuotaTemplate "Portal" | Set-SPQuotaTemplate -StorageMaximumLevel 15GB -StorageWarningLevel 13GB + + This example updates the Portal quota template and sets the max storage value to 15GB and warning value to 13GB. + + + - Export-SPWeb2 + Get-SPQuotaTemplate - Export-SPWeb + Set-SPQuota - Import-SPWeb + New-SPQuotaTemplate - New-SPFile - Lists + Add-SPWikiPageHtml + Wiki Pages - Creates a new file within a list. + Sets the layout for a wiki page within an existing List. Copyright 2016 Falchion Consulting, LLC @@ -8721,12 +8189,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - New - SPFile + Add + SPWikiPageHtml 1.0.0.0 - Creates a new file within a list. + Sets the layout for a wiki page within an existing List. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -8736,35 +8204,97 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - New-SPFile + Add-SPWikiPageHtml List SPListPipeBind - - List - SPListPipeBind + + Web + SPWebPipeBind + + + WikiPageName + String + + + Html + String + + + Row + Int32 + + + Column + Int32 + + + Prepend + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection - New-SPFile + Add-SPWikiPageHtml Folder SPFolderPipeBind - - List - SPListPipeBind - + + Web + SPWebPipeBind + + + WikiPageName + String + + + Html + String + + + Row + Int32 + + + Column + Int32 + + + Prepend + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection + + + Web + + Specifies the URL or GUID of the Web to create the wiki page in. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. + + SPWebPipeBind + + SPWebPipeBind + + + + + + List - Specifies the List to add the file to. - - The type must be a valid absolute URL, in the form http://contoso.sharepoint.com/site_name/lists/list_name, or an SPOList object, Microsoft.SharePoint.Client.List object, List title, or GUID representing the List ID. + Specifies the identity of the Site containing the file to update. SPListPipeBind @@ -8778,9 +8308,7 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 Folder - Specifies the Folder to add the file to. - - The type must be a valid SPOFolder object. + Specifies the Folder containing the file to update. SPFolderPipeBind @@ -8792,9 +8320,9 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - File + WikiPageName - Specify the path to the file to add to the list. + The name of the wiki page to update. String @@ -8805,28 +8333,56 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - - Overwrite + + Html - Overwrite an existing file if present. + The HTML to add to the wiki page. - SwitchParameter + String - SwitchParameter + String - - FieldValues + + Row - The collection of field values to set where the key is the internal field name. The type must be a hash table where each key represents the name of a field whose value should be set to the corresponding key value (e.g., @{"Field1"="Value1";"Field2"="Value2"}). Alternatively, provide the path to a file with XML property settings (<Properties><Property Name="Name1">Value1</Property><Property Name="Name2">Value2</Property></Properties>). + The zone row to add the HTML to. - PropertiesPipeBind + Int32 - PropertiesPipeBind + Int32 + + + + + + + + Column + + The zone column to add the HTML to. + + Int32 + + Int32 + + + + + + + + Prepend + + Add some space before the web part. + + SwitchParameter + + SwitchParameter @@ -8877,31 +8433,35 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help New-SPFile -detailed". For technical information, type "Get-Help New-SPFile -full". + For more information, type "Get-Help Add-SPWikiPageHtml -detailed". For technical information, type "Get-Help Add-SPWikiPageHtml -full". ------------------EXAMPLE------------------ - PS C:\> New-SPFile -List "http://server_name/documents" -File "c:\myfile.txt" -FieldValues @{"Title"="My new file"} + PS C:\> Get-SPWeb http://server_name | Add-SPWikiPageHtml -List "Site Pages" -WikiPageName "MyWikiPage.aspx" -Html "<h1>Welcome!</h1>" -Prepend -Row 1 -Column 1 - This example creates a new file within the List My List under the root Site of the current Site Collection. + This example adds a welcome header to the wiki page. - Get-SPList + Set-SPOWikiPageLayout + + + + Get-SPWeb - New-SPFolder - Lists + Get-SPCustomizedPages + Pages - Creates a new folder within a list. + Retrieves all customized (unghosted) pages at the given scope. If not returning as a string using the Start-SPAssignment and Stop-SPAssignment cmdlets to dispose of all parent objects. Copyright 2016 Falchion Consulting, LLC @@ -8910,12 +8470,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - New - SPFolder + Get + SPCustomizedPages 1.0.0.0 - Creates a new folder within a list. + Retrieves all customized (unghosted) pages at the given scope. If not returning as a string using the Start-SPAssignment and Stop-SPAssignment cmdlets to dispose of all parent objects. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -8925,14 +8485,33 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - New-SPFolder + Get-SPCustomizedPages - List - SPListPipeBind + Web + SPWebPipeBind[] - - Path - String + + Recurse + SwitchParameter + + + AsString + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection + + + + Get-SPCustomizedPages + + Site + SPSitePipeBind[] + + + AsString + SwitchParameter AssignmentCollection @@ -8941,30 +8520,60 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - - List + + Web - The list to add the field to. + Specifies the URL or GUID of the Web to retrieve customized pages from. - The value must be a valid URL in the form http://server_name + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. - SPListPipeBind + SPWebPipeBind[] - SPListPipeBind + SPWebPipeBind[] - - Path + + Site - The list relative folder path to create to create. Example: "TopLevelFolder/ChildFolder1" + The site to retrieve customized pages from. All sub-webs will be iterated through. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - String + SPSitePipeBind[] - String + SPSitePipeBind[] + + + + + + + + Recurse + + Iterate through all child-webs of the specified web. + + SwitchParameter + + SwitchParameter + + + + + + + + AsString + + Returns the results as a string. If this parameter is not provided the results will be returned as SPFile objects and the caller will be responsible for disposing the parent objects using the Start-SPAssignment and Stop-SPAssignment cmdlets. + + SwitchParameter + + SwitchParameter @@ -9015,31 +8624,54 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help New-SPFolder -detailed". For technical information, type "Get-Help New-SPFolder -full". + For more information, type "Get-Help Get-SPCustomizedPages -detailed". For technical information, type "Get-Help Get-SPCustomizedPages -full". - ------------------EXAMPLE------------------ - PS C:\> $folder = Get-SPList http://server_name/documents | New-SPFolder -Path "TopLevelFolder/ChildFolder1" + ------------------EXAMPLE 1----------------------- + PS C:\> $pages = Get-SPWeb http://server_name/subweb | Get-SPCustomizedPages -Recurse - This example creates a TopLevelFolder with a sub-folder called ChildFolder1 at http://server_name/documents. + This example returns back all customized, or unghosted, pages from all webs under http://server_name/subweb, inclusive. + + + + ------------------EXAMPLE 2----------------------- + PS C:\> $pages = Get-SPSite http://server_name/ | Get-SPCustomizedPages + + This example returns back all customized, or unghosted, pages from all webs at the site collection http://server_name/. - Get-SPList + Reset-SPCustomizedPages + + + + Get-SPWeb + + + + Get-SPSite + + + + Start-SPAssignment + + + + Stop-SPAssignment - New-SPList - Lists + Get-SPPublishingPage + Pages - Creates a new list. + Retrieves all publishing pages from the specified source. Copyright 2016 Falchion Consulting, LLC @@ -9048,12 +8680,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - New - SPList + Get + SPPublishingPage 1.0.0.0 - Creates a new list. + Retrieves all publishing pages from the specified source. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -9063,34 +8695,25 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - New-SPList - + Get-SPPublishingPage + Web - SPWebPipeBind - - - Title - String - - - UrlName - String - - - FeatureId - Guid - - - TemplateType - Int32 + SPWebPipeBind[] - Description - String + PageName + String[] - DocTemplateType - Int32 + AssignmentCollection + SPAssignmentCollection + + + + Get-SPPublishingPage + + Identity + SPFilePipeBind[] AssignmentCollection @@ -9099,100 +8722,44 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - + Web - Specifies the URL or GUID of the Web to create the list in. + Specifies the URL or GUID of the Web to retrieve publishing pages from. The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. - SPWebPipeBind - - SPWebPipeBind - - - - - - - - Title - - The list title. Example: "My List" - - String - - String - - - - - - - - UrlName - - The URL name of the list to create. Example: "MyList" - - String - - String - - - - - - - - FeatureId - - The feature ID to which the list definition belongs. - - Guid - - Guid - - - - - - - - TemplateType - - An integer corresponding to the list definition type. - - Int32 + SPWebPipeBind[] - Int32 + SPWebPipeBind[] - - Description + + PageName - The list description. + The name of the publishing page to return. Example: default.aspx - String + String[] - String + String[] - - DocTemplateType + + Identity - The ID for the document template type. + The path to the publishing page to return. - Int32 + SPFilePipeBind[] - Int32 + SPFilePipeBind[] @@ -9243,31 +8810,53 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help New-SPList -detailed". For technical information, type "Get-Help New-SPList -full". + For more information, type "Get-Help Get-SPPublishingPage -detailed". For technical information, type "Get-Help Get-SPPublishingPage -full". - ------------------EXAMPLE------------------ - PS C:\> $list = Get-SPWeb http://server_name | New-SPList -UrlName "MyDocs" -Title "My Docs" -FeatureId "00BFEA71-E717-4E80-AA17-D0C71B360101" -TemplateType 101 -DocTemplateType 100 + ------------------EXAMPLE 1----------------------- + PS C:\> $pages = Get-SPWeb http://server_name | Get-SPPublishingPage - This example creates a standard document library at http://server_name/MyDocs. + This example returns back all publishing pages in the http://server_name web. + + + + ------------------EXAMPLE 2----------------------- + PS C:\> $page = Get-SPPublishingPage "http://server_name/pages/default.aspx" + + This example returns back the default.aspx publishing pages from the http://server_name web. + + + + ------------------EXAMPLE 3----------------------- + PS C:\> $page = $Get-SPWeb http://server_name | Get-SPPublishingPage -PageName "default.aspx" + + This example returns back the default.aspx publishing pages from the http://server_name web. - Get-SPList + Get-SPPublishingPageLayout + + + + Repair-SPPageLayoutUrl + + + + Get-SPWeb - Publish-SPListItems - Lists + Get-SPPublishingPageLayout + Pages - Publish any draft or pending items. + Retrieves all publishing page layouts from the specified source. Copyright 2016 Falchion Consulting, LLC @@ -9276,12 +8865,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Publish - SPListItems + Get + SPPublishingPageLayout 1.0.0.0 - Publish any draft or pending items. + Retrieves all publishing page layouts from the specified source. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -9291,80 +8880,18 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Publish-SPListItems - - TakeOverFilesWithNoCheckIn - SwitchParameter - - - FilterExpression - String - - - Site - SPSitePipeBind - - - LogFile - String - - - Comment - String - - - AssignmentCollection - SPAssignmentCollection - - - - Publish-SPListItems - - TakeOverFilesWithNoCheckIn - SwitchParameter - - - FilterExpression - String - - + Get-SPPublishingPageLayout + Web SPWebPipeBind - - LogFile - String - - - Comment - String - - - AssignmentCollection - SPAssignmentCollection - - - - Publish-SPListItems - - TakeOverFilesWithNoCheckIn - SwitchParameter - - - FilterExpression - String - - - WebApplication - SPWebApplicationPipeBind - - - LogFile - String + + PageLayout + SPPageLayoutPipeBind[] - Comment - String + AssociatedContentType + SPContentTypePipeBind AssignmentCollection @@ -9372,76 +8899,14 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Publish-SPListItems - - TakeOverFilesWithNoCheckIn - SwitchParameter - - - FilterExpression - String - + Get-SPPublishingPageLayout - Farm - SPFarmPipeBind - - - LogFile - String + Web + SPWebPipeBind - Comment - String - - - AssignmentCollection - SPAssignmentCollection - - - - Publish-SPListItems - - TakeOverFilesWithNoCheckIn - SwitchParameter - - - FilterExpression - String - - - List - SPListPipeBind - - - LogFile - String - - - Comment - String - - - AssignmentCollection - SPAssignmentCollection - - - - Publish-SPListItems - - ListItem - SPListItemPipeBind - - - ParentList - SPListPipeBind - - - LogFile - String - - - Comment - String + AssociatedContentType + SPContentTypePipeBind AssignmentCollection @@ -9450,94 +8915,10 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - - TakeOverFilesWithNoCheckIn - - Take over ownership of any files that do not have an existing check-in. - - SwitchParameter - - SwitchParameter - - - - - - - - FilterExpression - - A regular expression to match against the file name. For example, to only publish Word and Excel files use the following expression: "\.((docx)|(xlsx))$". If specified, list items are ignored (only files are published). - - String - - String - - - - - - - - LogFile - - The filename to save all details to. - - String - - String - - - - - - - - ListItem - - The list item to publish. - - SPListItemPipeBind - - SPListItemPipeBind - - - - - - - - ParentList - - The list containing the item to publish. - - SPListPipeBind - - SPListPipeBind - - - - - - - - List - - The list containing the items to publish. - - SPListPipeBind - - SPListPipeBind - - - - - - Web - Specifies the URL or GUID of the Web containing the list items to publish. + Specifies the URL or GUID of the Web to retrieve publishing page layouts from. The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. @@ -9550,46 +8931,16 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - - Site - - The site containing the list items to publish. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - - SPSitePipeBind - - SPSitePipeBind - - - - - - - - WebApplication + + PageLayout - The web application containing the list items to publish. + The name or path to the page layout to return. If the value is the page name only then the Web parameter must be provided. - The type must be a valid URL, in the form http://server_name; or an instance of a valid SPWebApplication object. - - SPWebApplicationPipeBind - - SPWebApplicationPipeBind - - - - - - - - Farm - - A valid SPFarm object. All items in the farm will be published. + Example: ArticleLeft.aspx or http://<site>/_catalogs/masterpage/articleleft.aspx. - SPFarmPipeBind + SPPageLayoutPipeBind[] - SPFarmPipeBind + SPPageLayoutPipeBind[] @@ -9597,13 +8948,13 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Comment + AssociatedContentType - A comment to associated with each checked in, published, and approved item. + The associated content type to filter the returned page layouts by. - String + SPContentTypePipeBind - String + SPContentTypePipeBind @@ -9654,89 +9005,57 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help Publish-SPListItems -detailed". For technical information, type "Get-Help Publish-SPListItems -full". + For more information, type "Get-Help Get-SPPublishingPageLayout -detailed". For technical information, type "Get-Help Get-SPPublishingPageLayout -full". ------------------EXAMPLE 1----------------------- - PS C:\> Get-SPFarm | Publish-SPListItems + PS C:\> $layouts = Get-SPWeb http://server_name | Get-SPPublishingPageLayout - This example publishes all items in the farm. This will recurse through all web applications, sites, and sub-webs. + This example returns back all page layouts from http://server_name. ------------------EXAMPLE 2----------------------- - PS C:\> Get-SPWebApplication "http://server_name/" | Publish-SPListItems + PS C:\> $layout = Get-SPPublishingPageLayout "http://server_name/_catalogs/masterpage/articleleft.aspx" - This example publishes all items in the web application located at http://server_name. This will recurse through all sites and sub-webs. + This example returns back the articleleft.aspx page layout from the http://server_name web. ------------------EXAMPLE 3----------------------- - PS C:\> Get-SPList "http://server_name/pages" | Publish-SPListItems -ListItem 1 - - This example publishes item with ID 1 in the pages library located at http://server_name. - - - - ------------------EXAMPLE 4----------------------- - PS C:\> Get-SPSite "http://server_name/" | Publish-SPListItems - - This example publishes all items in the site located at http://server_name. This will recurse through sub-webs. - - - - ------------------EXAMPLE 5----------------------- - PS C:\> Publish-SPListItems -ListItem "http://server_name/pages/default.aspx" - - This example publishes http://server_name/pages/default.aspx. - - - - ------------------EXAMPLE 6----------------------- - PS C:\> Get-SPList "http://server_name/pages" | Publish-SPListItems - - This example publishes all items in the pages library located at http://server_name. - - - - ------------------EXAMPLE 7----------------------- - PS C:\> Get-SPWeb "http://server_name/" | Publish-SPListItems + PS C:\> $layout = $Get-SPWeb http://server_name | Get-SPPublishingPageLayout -PageLayout "articleleft.aspx" - This example publishes all items in the web located at http://server_name. This will no recurse through sub-webs. + This example returns back the articleleft.aspx page layout from http://server_name. - Get-SPList - - - - Get-SPWeb + Get-SPPublishingPage - Get-SPSite + Repair-SPPageLayoutUrl - Get-SPWebApplication + Get-SPContentType - Get-SPFarm + Get-SPWeb - Remove-SPField - Lists + New-SPPublishingPage + Pages - The Remove-SPField cmdlet deletes the specified field from the given list or web. + Creates a new publishing page. Copyright 2016 Falchion Consulting, LLC @@ -9745,12 +9064,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Remove - SPField + New + SPPublishingPage 1.0.0.0 - The Remove-SPField cmdlet deletes the specified field from the given list or web. + Creates a new publishing page. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -9760,52 +9079,26 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Remove-SPField + New-SPPublishingPage Web SPWebPipeBind - - InternalFieldName - String - - - Force - SwitchParameter - - - AssignmentCollection - SPAssignmentCollection - - - - Remove-SPField - - List - SPListPipeBind - - - InternalFieldName + + PageName String - Force - SwitchParameter - - - AssignmentCollection - SPAssignmentCollection + Title + String - - - Remove-SPField - - Field - SPField + + PageLayout + SPPageLayoutPipeBind - Force - SwitchParameter + FieldData + Hashtable AssignmentCollection @@ -9817,9 +9110,9 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 Web - The web to remove the field from. + Specifies the URL or GUID of the Web to create the publishing page in. - The value must be a valid URL in the form http://server_name + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. SPWebPipeBind @@ -9830,46 +9123,42 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - - List + + PageName - The list to remove the field from. - - The value must be a valid URL in the form http://server_name + The name of the publishing page to create. Example: default.aspx - SPListPipeBind + String - SPListPipeBind + String - - Field + + Title - The field to remove. - The value must be a valid SPField object. - SPField + String - SPField + String - - InternalFieldName + + PageLayout - The internal name of the field to remove from the list. + The filename of the page layout to use. - String + SPPageLayoutPipeBind - String + SPPageLayoutPipeBind @@ -9877,13 +9166,15 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Force + FieldData - Used to force deletion if AllowDeletion property is false. + Key/Value pairs of field names and values to set after the page is created. + + Example: -FieldData @{"FieldName1"="Field Value 1";"FieldName2"="Field Value 2"} - SwitchParameter + Hashtable - SwitchParameter + Hashtable @@ -9934,45 +9225,47 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help Remove-SPField -detailed". For technical information, type "Get-Help Remove-SPField -full". + For more information, type "Get-Help New-SPPublishingPage -detailed". For technical information, type "Get-Help New-SPPublishingPage -full". ------------------EXAMPLE 1----------------------- - PS C:\> (Get-SPList "http://demo/documents").Fields.GetFieldByInternalName("MyField") | Remove-SPField -InternalFieldName "MyField" + PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName "custom.aspx" -Title "Custom Page " -PageLayout "articleleft.aspx" - This example deletes the "MyField" field from the list "http://demo/documents". + This example creates a page named custom.aspx at http://server_name. ------------------EXAMPLE 2----------------------- - PS C:\> Remove-SPField -Web "http://demo" -InternalFieldName "MyField" - - This example deletes the "MyField" field from the web "http://demo". - - - - ------------------EXAMPLE 3----------------------- - PS C:\> Remove-SPField -List "http://demo/documents" -InternalFieldName "MyField" + PS C:\> $data = @{"FieldName1"="Field Value 1";"FieldName2"="Field Value 2"} +PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName "custom.aspx" -Title "Custom Page " -PageLayout "articleleft.aspx" -FieldData $data - This example deletes the "MyField" field from the list "http://demo/documents". + This example creates a page named custom.aspx at http://server_name and sets two additional fields. - Get-SPList + Get-SPPublishingPage + + + + Get-SPPublishingPageLayout + + + + Get-SPWeb - Replace-SPListContent - Lists + New-SPWikiPage + Pages - Replaces all occurances of the search string with the replacement string. Supports the use of regular expressions. Use -WhatIf to verify your replacements before executing. + Creates a new wiki page. Copyright 2016 Falchion Consulting, LLC @@ -9981,12 +9274,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Replace - SPListContent + New + SPWikiPage 1.0.0.0 - Replaces all occurances of the search string with the replacement string. Supports the use of regular expressions. Use -WhatIf to verify your replacements before executing. + Creates a new wiki page. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -9996,398 +9289,336 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Replace-SPListContent - - InputFile - String - - - InputFileDelimiter - String - - - List - SPListPipeBind - - - SearchString - String - - - ReplaceString - String - - - List - SPListPipeBind - - - - Replace-SPListContent - - InputFile - String - - - InputFileDelimiter - String - - - Site - SPSitePipeBind - - - SearchString - String - - - ReplaceString - String - - + New-SPWikiPage + List SPListPipeBind - - - Replace-SPListContent - - InputFile - String - - - InputFileDelimiter - String - - Farm - SPFarmPipeBind + Web + SPWebPipeBind - - SearchString + + WikiPageName String - - ReplaceString - String + + WikiPageLayout + OneColumn | OneColumnSideBar | TwoColumns | TwoColumnsHeader | TwoColumnsHeaderFooter | ThreeColumns | ThreeColumnsHeader | ThreeColumnsHeaderFooter - - List - SPListPipeBind + + AssignmentCollection + SPAssignmentCollection - Replace-SPListContent - - InputFile - String - - - InputFileDelimiter - String + New-SPWikiPage + + Folder + SPFolderPipeBind Web SPWebPipeBind - - SearchString + + WikiPageName String - - ReplaceString - String + + WikiPageLayout + OneColumn | OneColumnSideBar | TwoColumns | TwoColumnsHeader | TwoColumnsHeaderFooter | ThreeColumns | ThreeColumnsHeader | ThreeColumnsHeaderFooter - - List - SPListPipeBind - - - - Replace-SPListContent - - InputFile - String - - - InputFileDelimiter - String - - - WebApplication - SPWebApplicationPipeBind - - - SearchString - String - - - ReplaceString - String - - - List - SPListPipeBind + + AssignmentCollection + SPAssignmentCollection + + + + Web + + Specifies the URL or GUID of the Web to create the wiki page in. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. + + SPWebPipeBind + + SPWebPipeBind + + + + + + + + List + + Specifies the List to add the file to. + + SPListPipeBind + + SPListPipeBind + + + + + + + + Folder + + Specifies the Folder to add the file to. + + SPFolderPipeBind + + SPFolderPipeBind + + + + + + + + WikiPageName + + The name of the wiki page to create. + + String + + String + + + + + + + + WikiPageLayout + + The page layout to set the wiki page to. The default value is "ThreeColumnsHeaderFooter". + + WikiPageLayout + + WikiPageLayout + + + + + + + + AssignmentCollection + + Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used. + + When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur. + + SPAssignmentCollection + + SPAssignmentCollection + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + For more information, type "Get-Help New-SPWikiPage -detailed". For technical information, type "Get-Help New-SPWikiPage -full". + + + + + ------------------EXAMPLE------------------ + PS C:\> Get-SPWeb http://server_name | New-SPWikiPage -List "Site Pages" -File "MyWikiPage.aspx" + + This example creates a new wiki page within the Site Pages list under the root Site of the root Site Collection. + + + + + + Set-SPOWikiPageLayout + + + + Get-SPWeb + + + + + + + Repair-SPPageLayoutUrl + Pages + + Fixes the Page Layout URL property of publishing pages which can get messed up during an upgrade or from importing into a new farm. + + + Copyright 2016 Falchion Consulting, LLC + > For more information on this cmdlet and others: + > http://blog.falchionconsulting.com/ + > Use of this cmdlet is at your own risk. + > Gary Lapointe assumes no liability. + + Repair + SPPageLayoutUrl + 1.0.0.0 + + + Fixes the Page Layout URL property of publishing pages which can get messed up during an upgrade or from importing into a new farm. + + Copyright 2016 Falchion Consulting, LLC + > For more information on this cmdlet and others: + > http://blog.falchionconsulting.com/ + > Use of this cmdlet is at your own risk. + > Gary Lapointe assumes no liability. + + - Replace-SPListContent - - XmlInputFile - XmlDocumentPipeBind - + Repair-SPPageLayoutUrl - List - SPListPipeBind + WebApplication + SPWebApplicationPipeBind - - SearchString + + RegexSearchString String - - ReplaceString + + RegexReplaceString String - - List - SPListPipeBind + + FixContact + SwitchParameter + + + PageLayout + SPPageLayoutPipeBind + + + AssignmentCollection + SPAssignmentCollection - Replace-SPListContent - - XmlInputFile - XmlDocumentPipeBind - + Repair-SPPageLayoutUrl - Web - SPWebPipeBind + Site + SPSitePipeBind - - SearchString + + RegexSearchString String - - ReplaceString + + RegexReplaceString String - - List - SPListPipeBind + + FixContact + SwitchParameter + + + PageLayout + SPPageLayoutPipeBind + + + AssignmentCollection + SPAssignmentCollection - Replace-SPListContent - - XmlInputFile - XmlDocumentPipeBind - + Repair-SPPageLayoutUrl - Site - SPSitePipeBind + Web + SPWebPipeBind - - SearchString + + RegexSearchString String - - ReplaceString + + RegexReplaceString String - - List - SPListPipeBind - - - - Replace-SPListContent - - XmlInputFile - XmlDocumentPipeBind - - - WebApplication - SPWebApplicationPipeBind - - - SearchString - String - - - ReplaceString - String - - - List - SPListPipeBind - - - - Replace-SPListContent - - XmlInputFile - XmlDocumentPipeBind - - - Farm - SPFarmPipeBind - - - SearchString - String - - - ReplaceString - String - - - List - SPListPipeBind - - - - Replace-SPListContent - - SearchString - String - - - ReplaceString - String - - - Web - SPWebPipeBind - - - SearchString - String - - - ReplaceString - String - - - List - SPListPipeBind - - - - Replace-SPListContent - - SearchString - String - - - ReplaceString - String - - - Farm - SPFarmPipeBind - - - SearchString - String - - - ReplaceString - String - - - List - SPListPipeBind - - - - Replace-SPListContent - - SearchString - String - - - ReplaceString - String - - - List - SPListPipeBind - - - SearchString - String + + FixContact + SwitchParameter - - ReplaceString - String + + PageLayout + SPPageLayoutPipeBind - - List - SPListPipeBind + + AssignmentCollection + SPAssignmentCollection - Replace-SPListContent - - SearchString - String - - - ReplaceString - String - - - Site - SPSitePipeBind - - - SearchString - String - - - ReplaceString - String - + Repair-SPPageLayoutUrl - List - SPListPipeBind + Page + SPFilePipeBind - - - Replace-SPListContent - - SearchString + + RegexSearchString String - - ReplaceString + + RegexReplaceString String - - WebApplication - SPWebApplicationPipeBind - - - SearchString - String + + FixContact + SwitchParameter - - ReplaceString - String + + PageLayout + SPPageLayoutPipeBind - - List - SPListPipeBind + + AssignmentCollection + SPAssignmentCollection - - InputFile + + RegexSearchString - A file with search and replace strings, seperated by a "|" character (each search and replace string should be on a separate line). + Search pattern to use for a regular expression replacement of the page layout URL. - String + String String @@ -10396,12 +9627,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - - InputFileDelimiter + + RegexReplaceString - The delimiter used within the input file specified by the -InputFile parameter (the default is "|" if not specified). + Replace pattern to use for a regular expression replacement of the page layout URL. - String + String String @@ -10410,42 +9641,46 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - - XmlInputFile + + FixContact - An XML file or XmlDocument containing the replacements to make: <Replacements><Replacement><SearchString>string</SearchString><ReplaceString>string</ReplaceString></Replacement></Replacements> + Attempt to fix any page contacts that are invalid. - XmlDocumentPipeBind + SwitchParameter - XmlDocumentPipeBind + SwitchParameter - - SearchString + + WebApplication - A regular expression search string. + The web application containing the pages to repair. + + The type must be a valid URL, in the form http://server_name; or an instance of a valid SPWebApplication object. - String + SPWebApplicationPipeBind - String + SPWebApplicationPipeBind - - ReplaceString + + Site - The string to replace the match with. + The site containing the pages to repair. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - String + SPSitePipeBind - String + SPSitePipeBind @@ -10453,119 +9688,29 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - List + Web - The list whose content will be replaced. + Specifies the URL or GUID of the Web containing the pages to repair. - The value must be a valid URL in the form http://server_name + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. - SPListPipeBind + SPWebPipeBind - SPListPipeBind + SPWebPipeBind - - Web - - Specifies the URL or GUID of the Web containing the lists whose content will be replaced. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. - - SPWebPipeBind - - SPWebPipeBind - - - - - - - - Site - - The site containing the lists whose content will be replaced. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - - SPSitePipeBind - - SPSitePipeBind - - - - - - - - WebApplication - - The web application containing the lists whose content will be replaced. - - The type must be a valid URL, in the form http://server_name; or an instance of a valid SPWebApplication object. - - SPWebApplicationPipeBind - - SPWebApplicationPipeBind - - - - - - - - Farm - - Provide the SPFarm object to replace matching content in all lists throughout the farm. - - SPFarmPipeBind - - SPFarmPipeBind - - - - - - - - Publish - - Publish or check-in the item after updating the contents. - - SwitchParameter - - SwitchParameter - - - - - - - - LogFile - - The log file to store all change records to. - - String - - String - - - - - - - - FieldName + + Page - The name of the field to update. + The URL to the page to repair. - String[] + SPFilePipeBind - String[] + SPFilePipeBind @@ -10573,13 +9718,13 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - UseInternalFieldName + PageLayout - If specified then the internal name of the field will be used; otherwise the display name will be used. + URL of page layout to retarget page(s) to. - SwitchParameter + SPPageLayoutPipeBind - SwitchParameter + SPPageLayoutPipeBind @@ -10630,25 +9775,32 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help Replace-SPListContent -detailed". For technical information, type "Get-Help Replace-SPListContent -full". + For more information, type "Get-Help Repair-SPPageLayoutUrl -detailed". For technical information, type "Get-Help Repair-SPPageLayoutUrl -full". - ------------------EXAMPLE------------------ - PS C:\> Get-SPWeb http://portal | Replace-SPListContent -SearchString "(?i:old product name)" -ReplaceString "New Product Name" -Publish + ------------------EXAMPLE 1----------------------- + PS C:\> Get-SPWebApplication "http://server_name" | Repair-SPPageLayoutUrl - This example does a case-insensitive search for "old product name" and replaces with "New Product Name" and publishes the changes after completion. + This example automatically repairs all pages in http://server_name by analyzing the page layout name and fixing the path so it points to the appropriate location. + + + + ------------------EXAMPLE 2----------------------- + PS C:\> Get-SPWeb "http://server_name" | Repair-SPPageLayoutUrl -RegexSearchString "(?:http://testserver/)" -RegexReplaceString "http://prodserver" + + This example automatically repairs all pages in http://server_name replacing the value http://testserver with http://prodserver. - Get-SPList + Get-SPPublishingPage - Get-SPFarm + Get-SPPublishingPageLayout @@ -10667,10 +9819,10 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Set-SPListAudienceTargeting - Lists + Reset-SPCustomizedPages + Pages - Sets audience targeting for the specified list. + Resets customized (unghosted) pages to their site definition. Copyright 2016 Falchion Consulting, LLC @@ -10679,12 +9831,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Set - SPListAudienceTargeting + Reset + SPCustomizedPages 1.0.0.0 - Sets audience targeting for the specified list. + Resets customized (unghosted) pages to their site definition. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -10694,18 +9846,102 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Set-SPListAudienceTargeting + Reset-SPCustomizedPages - Identity - SPListPipeBind + Web + SPWebPipeBind + + + Recurse + SwitchParameter + + + HaltOnError + SwitchParameter + + + Force + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection + + + Reset-SPCustomizedPages Web SPWebPipeBind - - Enabled - Boolean + + List + SPListPipeBind + + + HaltOnError + SwitchParameter + + + Force + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection + + + + Reset-SPCustomizedPages + + Site + SPSitePipeBind + + + HaltOnError + SwitchParameter + + + Force + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection + + + + Reset-SPCustomizedPages + + File + SPFilePipeBind + + + HaltOnError + SwitchParameter + + + Force + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection + + + + Reset-SPCustomizedPages + + WebApplication + SPWebApplicationPipeBind + + + HaltOnError + SwitchParameter + + + Force + SwitchParameter AssignmentCollection @@ -10715,41 +9951,117 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Identity + Web - The list to update. + Specifies the URL or GUID of the Web containing the pages to reset. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. - SPListPipeBind + SPWebPipeBind - SPListPipeBind + SPWebPipeBind - - Web + + Site - The web containing the list. This parameter is required if the Identity parameter is a relative URL to a list. + The site containing the pages to reset. All sub-webs will be iterated through. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - SPWebPipeBind + SPSitePipeBind - SPWebPipeBind + SPSitePipeBind - - Enabled + + File - Enable or disable audience targeting. Valid values are $true or $false. + The URL to the file to reset. - Boolean + SPFilePipeBind - Boolean + SPFilePipeBind + + + + + + + + List + + The URL to the list containing the files to reset. + + SPListPipeBind + + SPListPipeBind + + + + + + + + WebApplication + + The web application containing the files to reset. + + The type must be a valid URL, in the form http://server_name; or an instance of a valid SPWebApplication object. + + SPWebApplicationPipeBind + + SPWebApplicationPipeBind + + + + + + + + Recurse + + Recurse all Webs. + + SwitchParameter + + SwitchParameter + + + + + + + + HaltOnError + + Abort execution if an error is encountered. + + SwitchParameter + + SwitchParameter + + + + + + + + Force + + Use of the Force parameter is not supported and should only be used as a last resort. + + SwitchParameter + + SwitchParameter @@ -10800,19 +10112,37 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help Set-SPListAudienceTargeting -detailed". For technical information, type "Get-Help Set-SPListAudienceTargeting -full". + For more information, type "Get-Help Reset-SPCustomizedPages -detailed". For technical information, type "Get-Help Reset-SPCustomizedPages -full". - ------------------EXAMPLE------------------ - PS C:\> Get-SPList "http://server_name/lists/mylist" | Set-SPListAudienceTargeting -Enabled $true + ------------------EXAMPLE 1----------------------- + PS C:\> Get-SPWeb http://server_name | Reset-SPCustomizedPages - This example enables audience targeting on the mylist list. + This example resets all unghosted pages in http://server_name without updating any child webs. + + + + ------------------EXAMPLE 2----------------------- + PS C:\> Get-SPSite http://server_name | Reset-SPCustomizedPages + + This example resets all unghosted pages in http://server_name including all child webs. + + + + ------------------EXAMPLE 3----------------------- + PS C:\> Reset-SPCustomizedPages -File http://server_name/pages/default.aspx + + This example resets the unghosted page http://server_name/pages/default.aspx. + + Get-SPCustomizedPages + + Get-SPList @@ -10821,14 +10151,22 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 Get-SPWeb + + Get-SPSite + + + + Get-SPWebApplication + + - Set-SPListOverlay - Lists + Set-SPOWikiPageLayout + Wiki Pages - Sets calendar overlays for the given list. + Sets the layout for a wiki page within an existing List. Copyright 2016 Falchion Consulting, LLC @@ -10838,11 +10176,11 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Gary Lapointe assumes no liability. Set - SPListOverlay + SPOWikiPageLayout 1.0.0.0 - Sets calendar overlays for the given list. + Sets the layout for a wiki page within an existing List. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -10852,81 +10190,22 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Set-SPListOverlay - - Color - LightYellow | LightGreen | Orange | LightTurquise | Pink | LightBlue | IceBlue1 | IceBlue2 | White - - - OverlayTitle - String - - - OverlayDescription - String - - - OwaUrl - String - - - WebServiceUrl - String - - - TargetList - SPListPipeBind - - - ViewName - String - - - DoNotAlwaysShow - SwitchParameter - - - ClearExisting - SwitchParameter - - - AssignmentCollection - SPAssignmentCollection - - - - Set-SPListOverlay - - Color - LightYellow | LightGreen | Orange | LightTurquise | Pink | LightBlue | IceBlue1 | IceBlue2 | White - - - OverlayList + Set-SPOWikiPageLayout + + List SPListPipeBind - - OverlayTitle - String - - - OverlayDescription - String - - TargetList - SPListPipeBind + Web + SPWebPipeBind - - ViewName + + WikiPageName String - - DoNotAlwaysShow - SwitchParameter - - - ClearExisting - SwitchParameter + + WikiPageLayout + OneColumn | OneColumnSideBar | TwoColumns | TwoColumnsHeader | TwoColumnsHeaderFooter | ThreeColumns | ThreeColumnsHeader | ThreeColumnsHeaderFooter AssignmentCollection @@ -10934,26 +10213,22 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Set-SPListOverlay - - OverlayLists - SPListPipeBind[] + Set-SPOWikiPageLayout + + Folder + SPFolderPipeBind - TargetList - SPListPipeBind + Web + SPWebPipeBind - - ViewName + + WikiPageName String - - DoNotAlwaysShow - SwitchParameter - - - ClearExisting - SwitchParameter + + WikiPageLayout + OneColumn | OneColumnSideBar | TwoColumns | TwoColumnsHeader | TwoColumnsHeaderFooter | ThreeColumns | ThreeColumnsHeader | ThreeColumnsHeaderFooter AssignmentCollection @@ -10962,26 +10237,28 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - - Color + + Web - The color to use for the overlay calendar. + Specifies the URL or GUID of the Web to create the wiki page in. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. - CalendarOverlayColor + SPWebPipeBind - CalendarOverlayColor + SPWebPipeBind - - TargetList + + List - The calendar list to add the overlays to. + Specifies the identity of the Site containing the file to update. - SPListPipeBind + SPListPipeBind SPListPipeBind @@ -10990,94 +10267,24 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - - ViewName + + Folder - The name of the view to add the overlays to. If not specified the default view will be used. + Specifies the Folder containing the file to update. - String + SPFolderPipeBind - String - - - - - - - - OverlayList - - The calendar list to add as an overlay. - - SPListPipeBind - - SPListPipeBind - - - - - - - - OverlayLists - - The calendar lists to add as an overlay. - - SPListPipeBind[] - - SPListPipeBind[] - - - - - - - - OverlayTitle - - The title to give the overlay calendar when viewed in the target calendar. - - String - - String - - - - - - - - OverlayDescription - - The description to give the overlay calendar when viewed in the target calendar. - - String - - String - - - - - - - - OwaUrl - - Outlook Web Access URL. - - String - - String + SPFolderPipeBind - - WebServiceUrl + + WikiPageName - Exchange Web Service URL. + The name of the wiki page to update. String @@ -11088,28 +10295,14 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - - DoNotAlwaysShow - - Don't always show the calendar overlay. - - SwitchParameter - - SwitchParameter - - - - - - - - ClearExisting + + WikiPageLayout - Clear existing overlays. If not specified then all overlays will be appended to the list of existing overlays (up until 10 - anything after 10 will be ignored) + The page layout to set the wiki page to. - SwitchParameter + WikiPageLayout - SwitchParameter + WikiPageLayout @@ -11160,21 +10353,25 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help Set-SPListOverlay -detailed". For technical information, type "Get-Help Set-SPListOverlay -full". + For more information, type "Get-Help Set-SPOWikiPageLayout -detailed". For technical information, type "Get-Help Set-SPOWikiPageLayout -full". ------------------EXAMPLE------------------ - PS C:\> Get-SPList "http://server_name/lists/MyCalendar" | Set-SPListOverlay -TargetList "http://server_name/lists/MyOverlayCalendar" -Color "Pink" -ClearExisting + PS C:\> Get-SPWeb http://server_name | Set-SPWikiPageLayout -List "Site Pages" -WikiPageName "MyWikiPage.aspx" -WikiPageLayout "OneColumnSideBar" - This example adds the MyOverlayCalendar calendar as an overlay to the MyCalendar list. + This example sets the layout of an existing wiki page within the Site Pages list under the root Site of the root Site Collection. - Get-SPList + Set-SPOWikiPageLayout + + + + Get-SPWeb @@ -11213,9 +10410,13 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 TaxonomySession SPTaxonomySessionPipeBind - - TaxonomySession - SPTaxonomySessionPipeBind + + OutputFile + String + + + AssignmentCollection + SPAssignmentCollection @@ -11224,9 +10425,13 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 TermStore SPTaxonomyTermStorePipeBind - - TaxonomySession - SPTaxonomySessionPipeBind + + OutputFile + String + + + AssignmentCollection + SPAssignmentCollection @@ -11235,9 +10440,13 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 Group SPTaxonomyGroupPipeBind - - TaxonomySession - SPTaxonomySessionPipeBind + + OutputFile + String + + + AssignmentCollection + SPAssignmentCollection @@ -11246,9 +10455,13 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 TermSet SPTaxonomyTermSetPipeBind - - TaxonomySession - SPTaxonomySessionPipeBind + + OutputFile + String + + + AssignmentCollection + SPAssignmentCollection @@ -11257,9 +10470,13 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 Term SPTaxonomyTermPipeBind - - TaxonomySession - SPTaxonomySessionPipeBind + + OutputFile + String + + + AssignmentCollection + SPAssignmentCollection @@ -11398,16 +10615,16 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 ------------------EXAMPLE 1----------------------- - PS C:\> Export-SPTerms -Group (Get-SPTaxonomySession -Site "http://site/").TermStores[0].Groups[0] -OutputFile "c:\terms.xml" + PS C:\> Export-SPTerms -TaxonomySession "http://site/" -OutputFile "c:\terms.xml" - This example exports the first Group of the first Term Store and saves to c:\terms.xml. + This example exports the terms for all term stores associated with the site and saves to c:\terms.xml. ------------------EXAMPLE 2----------------------- - PS C:\> Export-SPTerms -TaxonomySession "http://site/" -OutputFile "c:\terms.xml" + PS C:\> Export-SPTerms -Group (Get-SPTaxonomySession -Site "http://site/").TermStores[0].Groups[0] -OutputFile "c:\terms.xml" - This example exports the terms for all term stores associated with the site and saves to c:\terms.xml. + This example exports the first Group of the first Term Store and saves to c:\terms.xml. @@ -11456,9 +10673,13 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 TaxonomySession SPTaxonomySessionPipeBind - - TaxonomySession - SPTaxonomySessionPipeBind + + InputFile + XmlDocumentPipeBind + + + AssignmentCollection + SPAssignmentCollection @@ -11467,9 +10688,13 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 ParentTermStore SPTaxonomyTermStorePipeBind - - TaxonomySession - SPTaxonomySessionPipeBind + + InputFile + XmlDocumentPipeBind + + + AssignmentCollection + SPAssignmentCollection @@ -11478,9 +10703,13 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 ParentGroup SPTaxonomyGroupPipeBind - - TaxonomySession - SPTaxonomySessionPipeBind + + InputFile + XmlDocumentPipeBind + + + AssignmentCollection + SPAssignmentCollection @@ -11489,9 +10718,13 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 ParentTermSet SPTaxonomyTermSetPipeBind - - TaxonomySession - SPTaxonomySessionPipeBind + + InputFile + XmlDocumentPipeBind + + + AssignmentCollection + SPAssignmentCollection @@ -11500,9 +10733,13 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 ParentTerm SPTaxonomyTermPipeBind - - TaxonomySession - SPTaxonomySessionPipeBind + + InputFile + XmlDocumentPipeBind + + + AssignmentCollection + SPAssignmentCollection @@ -11641,16 +10878,16 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 ------------------EXAMPLE 1----------------------- - PS C:\> Import-SPTerms -ParentTermStore (Get-SPTaxonomySession -Site "http://site/").TermStores[0] -InputFile "c:\terms.xml" + PS C:\> Import-SPTerms -TaxonomySession "http://site/" -InputFile "c:\terms.xml" - This example imports the Group from c:\terms.xml to the first Term Store. + This example imports the terms from c:\terms.xml to the Term Store associated with http://site. ------------------EXAMPLE 2----------------------- - PS C:\> Import-SPTerms -TaxonomySession "http://site/" -InputFile "c:\terms.xml" + PS C:\> Import-SPTerms -ParentTermStore (Get-SPTaxonomySession -Site "http://site/").TermStores[0] -InputFile "c:\terms.xml" - This example imports the terms from c:\terms.xml to the Term Store associated with http://site. + This example imports the Group from c:\terms.xml to the first Term Store. @@ -11667,10 +10904,10 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Add-SPWikiPageHtml - Wiki Pages + Add-SPEventReceiver + Lists - Sets the layout for a wiki page within an existing List. + Adds an event receiver to a web, list, or content type. Copyright 2016 Falchion Consulting, LLC @@ -11680,11 +10917,11 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Gary Lapointe assumes no liability. Add - SPWikiPageHtml + SPEventReceiver 1.0.0.0 - Sets the layout for a wiki page within an existing List. + Adds an event receiver to a web, list, or content type. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -11694,35 +10931,106 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Add-SPWikiPageHtml - - List - SPListPipeBind + Add-SPEventReceiver + + Web + SPWebPipeBind - - List - SPListPipeBind + + Name + String - - - Add-SPWikiPageHtml - - Folder - SPFolderPipeBind + + Assembly + String - + + ClassName + String + + + Type + SPEventReceiverType[] + + + Sequence + Int32 + + + AssignmentCollection + SPAssignmentCollection + + + + Add-SPEventReceiver + List SPListPipeBind + + Name + String + + + Assembly + String + + + ClassName + String + + + Type + SPEventReceiverType[] + + + Sequence + Int32 + + + AssignmentCollection + SPAssignmentCollection + + + + Add-SPEventReceiver + + ContentType + SPContentTypePipeBind + + + Name + String + + + Assembly + String + + + ClassName + String + + + Type + SPEventReceiverType[] + + + Sequence + Int32 + + + AssignmentCollection + SPAssignmentCollection + Web - Specifies the URL or GUID of the Web to create the wiki page in. + The web to add the event receiver to. - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. + The value must be a valid URL in the form http://server_name SPWebPipeBind @@ -11733,12 +11041,14 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - + List - Specifies the identity of the Site containing the file to update. + The list to add the event receiver to. + + The value must be a valid URL in the form http://server_name - SPListPipeBind + SPListPipeBind SPListPipeBind @@ -11747,24 +11057,24 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - - Folder + + ContentType - Specifies the Folder containing the file to update. + The name of the content type to return. The type must be a valid content type name; a valid content type ID, in the form 0x0123...; or an instance of an SPContentType object. - SPFolderPipeBind + SPContentTypePipeBind - SPFolderPipeBind + SPContentTypePipeBind - - WikiPageName + + Name - The name of the wiki page to update. + The name to give to the event receiver. The name has no significance but can be useful when later listing the event receivers. String @@ -11775,10 +11085,10 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - - Html + + Assembly - The HTML to add to the wiki page. + The fully qualified assembly name containing the event receiver class to add. String @@ -11789,42 +11099,42 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - - Row + + ClassName - The zone row to add the HTML to. + The fully qualified class name of the event receiver to add. - Int32 + String - Int32 + String - - Column + + Type - The zone column to add the HTML to. + The event type to add. The command does not validate that you are adding the correct type for the specified target or that the specified class contains handlers for the type specified. - Int32 + SPEventReceiverType[] - Int32 + SPEventReceiverType[] - - Prepend + + Sequence - Add some space before the web part. + The sequence number specifies the order of execution of the event receiver. - SwitchParameter + Int32 - SwitchParameter + Int32 @@ -11875,21 +11185,39 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help Add-SPWikiPageHtml -detailed". For technical information, type "Get-Help Add-SPWikiPageHtml -full". + For more information, type "Get-Help Add-SPEventReceiver -detailed". For technical information, type "Get-Help Add-SPEventReceiver -full". - ------------------EXAMPLE------------------ - PS C:\> Get-SPWeb http://server_name | Add-SPWikiPageHtml -List "Site Pages" -WikiPageName "MyWikiPage.aspx" -Html "<h1>Welcome!</h1>" -Prepend -Row 1 -Column 1 + ------------------EXAMPLE 1----------------------- + PS C:\> Get-SPWeb http://demo | Add-SPEventReceiver -Name "My Cool Event Receivers" -Assembly "Falchion.SharePoint.MyCoolProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3216c23aba16db08" -ClassName "Falchion.SharePoint.MyCoolProject.MyCoolEventReceiver" -Type "WebProvisioned","WebDeleted" - This example adds a welcome header to the wiki page. + This example adds WebProvisioned and WebDeleted event receivers to the http://demo site. + + + + ------------------EXAMPLE 2----------------------- + PS C:\> Get-SPList http://demo/Lists/MyList | Add-SPEventReceiver -Name "My Cool Event Receivers" -Assembly "Falchion.SharePoint.MyCoolProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3216c23aba16db08" -ClassName "Falchion.SharePoint.MyCoolProject.MyCoolEventReceiver" -Type "ItemUpdating","ItemAdding" + + This example adds ItemUpdating and ItemAdding event receivers to the http://demo/Lists/MyList list. + + + + ------------------EXAMPLE 3----------------------- + PS C:\> Get-SPWeb http://demo | Get-SPContentType -Identity "My Content Type" | Add-SPEventReceiver -Name "My Cool Event Receivers" -Assembly "Falchion.SharePoint.MyCoolProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3216c23aba16db08" -ClassName "Falchion.SharePoint.MyCoolProject.MyCoolEventReceiver" -Type "ItemUpdating","ItemAdding" + + This example adds ItemUpdating and ItemAdding event receivers to the "My Content Type" content type. - Set-SPOWikiPageLayout + Get-SPList + + + + Get-SPContentType @@ -11900,10 +11228,10 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Get-SPCustomizedPages - Pages + Copy-SPList + Lists - Retrieves all customized (unghosted) pages at the given scope. If not returning as a string using the Start-SPAssignment and Stop-SPAssignment cmdlets to dispose of all parent objects. + Copy a list from one site to another. Wraps the functionality of the Export-SPWeb and Import-SPWeb cmdlets. Copyright 2016 Falchion Consulting, LLC @@ -11912,12 +11240,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Get - SPCustomizedPages + Copy + SPList 1.0.0.0 - Retrieves all customized (unghosted) pages at the given scope. If not returning as a string using the Start-SPAssignment and Stop-SPAssignment cmdlets to dispose of all parent objects. + Copy a list from one site to another. Wraps the functionality of the Export-SPWeb and Import-SPWeb cmdlets. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -11927,273 +11255,383 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Get-SPCustomizedPages + Copy-SPList - Web - SPWebPipeBind[] + SourceList + SPListPipeBind + + + TargetWeb + SPWebPipeBind - Recurse + DeleteSource SwitchParameter - - Site - SPSitePipeBind[] + + Path + String - - - Get-SPCustomizedPages - - Site - SPSitePipeBind[] + + SuppressAfterEvents + SwitchParameter - - Site - SPSitePipeBind[] + + RetargetLinks + SwitchParameter - - - - - Web - - Specifies the URL or GUID of the Web to retrieve customized pages from. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. - - SPWebPipeBind[] - - SPWebPipeBind[] - - - - - - - - Site - - The site to retrieve customized pages from. All sub-webs will be iterated through. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - - SPSitePipeBind[] - - SPSitePipeBind[] - - - - - - - - Recurse + + RetainObjectIdentity + SwitchParameter + + + IncludeVersions + LastMajor | CurrentVersion | LastMajorAndMinor | All + + + IncludeDescendants + None | Content | All + + + UpdateVersions + Append | Overwrite | Ignore + + + CompressionSize + Int32 + + + IncludeDependencies + SwitchParameter + + + ExcludeChildren + SwitchParameter + + + UseSqlSnapshot + SwitchParameter + + + Force + SwitchParameter + + + HaltOnError + SwitchParameter + + + HaltOnWarning + SwitchParameter + + + IncludeUserSecurity + SwitchParameter + + + NoFileCompression + SwitchParameter + + + NoLogFile + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection + + + + + + SourceList - Iterate through all child-webs of the specified web. + The source list to copy. + + The value must be a valid URL in the form http://server_name - SwitchParameter + SPListPipeBind - SwitchParameter + SPListPipeBind - - AsString + + TargetWeb - Returns the results as a string. If this parameter is not provided the results will be returned as SPFile objects and the caller will be responsible for disposing the parent objects using the Start-SPAssignment and Stop-SPAssignment cmdlets. + Specifies the URL or GUID of the Web containing the list to be copied. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. - SwitchParameter + SPWebPipeBind - SwitchParameter + SPWebPipeBind - - AssignmentCollection + + DeleteSource - Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used. - - When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur. + Delete the source list after the copy operation completes. - SPAssignmentCollection + SwitchParameter - SPAssignmentCollection + SwitchParameter - - - + + Path + + Specifies the name of the export file. + + If the NoFileCompression parameter is used, a directory must be specified; otherwise, any file format is valid. + + String - + String - - - - + + + SuppressAfterEvents + + + + SwitchParameter - + SwitchParameter - - - - - - - - For more information, type "Get-Help Get-SPCustomizedPages -detailed". For technical information, type "Get-Help Get-SPCustomizedPages -full". - - - - - ------------------EXAMPLE 1----------------------- - PS C:\> $pages = Get-SPSite http://server_name/ | Get-SPCustomizedPages - - This example returns back all customized, or unghosted, pages from all webs at the site collection http://server_name/. - - - - ------------------EXAMPLE 2----------------------- - PS C:\> $pages = Get-SPWeb http://server_name/subweb | Get-SPCustomizedPages -Recurse - - This example returns back all customized, or unghosted, pages from all webs under http://server_name/subweb, inclusive. - - - - - - Reset-SPCustomizedPages - - - - Get-SPWeb - - - - Get-SPSite - - - - Start-SPAssignment - - - - Stop-SPAssignment - - - - - - - Get-SPPublishingPage - Pages - - Retrieves all publishing pages from the specified source. - - - Copyright 2016 Falchion Consulting, LLC - > For more information on this cmdlet and others: - > http://blog.falchionconsulting.com/ - > Use of this cmdlet is at your own risk. - > Gary Lapointe assumes no liability. - - Get - SPPublishingPage - 1.0.0.0 - - - Retrieves all publishing pages from the specified source. - - Copyright 2016 Falchion Consulting, LLC - > For more information on this cmdlet and others: - > http://blog.falchionconsulting.com/ - > Use of this cmdlet is at your own risk. - > Gary Lapointe assumes no liability. - - - - Get-SPPublishingPage - - Web - SPWebPipeBind[] - - - PageName - String[] - - - Identity - SPFilePipeBind[] - - - - Get-SPPublishingPage - - Identity - SPFilePipeBind[] - - - Identity - SPFilePipeBind[] - - - - - - Web + + + RetargetLinks - Specifies the URL or GUID of the Web to retrieve publishing pages from. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. + Iterate through all links pointing to the source and retarget to the new location. - SPWebPipeBind[] + SwitchParameter - SPWebPipeBind[] + SwitchParameter - - PageName + + RetainObjectIdentity - The name of the publishing page to return. Example: default.aspx + If specified, create the new list with the same ID as the source list. The target location must be in a different content database from the source list for this to work. - String[] + SwitchParameter - String[] + SwitchParameter - - Identity + + IncludeVersions - The path to the publishing page to return. + Indicates the type of file and list item version history to be included in the export operation. If the IncludeVersions parameter is absent, the Copy-SPList cmdlet by default uses a value of "LastMajor". + + The type must be any one of the following versions: + + -Last major version for files and list items (default) + -The current version, either the last major version or the last minor version + -Last major and last minor version for files and list items + -All versions for files and list items - SPFilePipeBind[] + Nullable`1 - SPFilePipeBind[] + Nullable`1 + + + + + + + + IncludeDescendants + + + + Nullable`1 + + Nullable`1 + + + + + + + + UpdateVersions + + + + Nullable`1 + + Nullable`1 + + + + + + + + CompressionSize + + Sets the maximum file size for the compressed export files. If the total size of the exported package is greater than this size, the exported package will be split into multiple files. + + Int32 + + Int32 + + + + + + + + IncludeDependencies + + + + SwitchParameter + + SwitchParameter + + + + + + + + ExcludeChildren + + + + SwitchParameter + + SwitchParameter + + + + + + + + UseSqlSnapshot + + Specifies a SQL Database Snapshot will be created when the export process begins, and all exported data will be retrieved directly from the database snapshot. This snapshot will be automatically deleted when export completes. + + SwitchParameter + + SwitchParameter + + + + + + + + Force + + Forcefully overwrites the export package if it already exists. + + SwitchParameter + + SwitchParameter + + + + + + + + HaltOnError + + Stops the export/import process when an error occurs. + + SwitchParameter + + SwitchParameter + + + + + + + + HaltOnWarning + + Stops the export/import process when a warning occurs. + + SwitchParameter + + SwitchParameter + + + + + + + + IncludeUserSecurity + + Preserves the user security settings. + + SwitchParameter + + SwitchParameter + + + + + + + + NoFileCompression + + Either enables or disables file compression in the export package. The export package is stored in the folder specified by thePath parameter or Identity parameter. We recommend that you use this parameter for performance reasons. If compression is enabled, the export process can increase by approximately 30 percent. + + SwitchParameter + + SwitchParameter + + + + + + + + NoLogFile + + Suppresses the generation of an export log file. If this parameter is not specified, the cmdlet will generate an export log file in the same location as the export package. The log file uses Unified Logging Service (ULS). + + It is recommended to use this parameter. However, for performance reasons, you might not want to generate a log file. + + SwitchParameter + + SwitchParameter @@ -12244,53 +11682,51 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help Get-SPPublishingPage -detailed". For technical information, type "Get-Help Get-SPPublishingPage -full". + For more information, type "Get-Help Copy-SPList -detailed". For technical information, type "Get-Help Copy-SPList -full". - ------------------EXAMPLE 1----------------------- - PS C:\> $page = $Get-SPWeb http://server_name | Get-SPPublishingPage -PageName "default.aspx" - - This example returns back the default.aspx publishing pages from the http://server_name web. - - - - ------------------EXAMPLE 2----------------------- - PS C:\> $page = Get-SPPublishingPage "http://server_name/pages/default.aspx" - - This example returns back the default.aspx publishing pages from the http://server_name web. - - - - ------------------EXAMPLE 3----------------------- - PS C:\> $pages = Get-SPWeb http://server_name | Get-SPPublishingPage + ------------------EXAMPLE------------------ + PS C:\> Get-SPList "http://server_name/sites/site1/lists/mylist" | Copy-SPList -TargetWeb "http://server_name/sites/sites2" - This example returns back all publishing pages in the http://server_name web. + This example copies the mylist list from site1 to site2. - Get-SPPublishingPageLayout + Export-SPWeb2 - Repair-SPPageLayoutUrl + Import-SPWeb2 - Get-SPWeb + Get-SPList + + + + Copy-SPListSecurity + + + + Export-SPWeb + + + + Import-SPWeb - Get-SPPublishingPageLayout - Pages + Copy-SPListSecurity + Lists - Retrieves all publishing page layouts from the specified source. + Copy the security settings and permissions from one list to another. Copyright 2016 Falchion Consulting, LLC @@ -12299,12 +11735,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Get - SPPublishingPageLayout + Copy + SPListSecurity 1.0.0.0 - Retrieves all publishing page layouts from the specified source. + Copy the security settings and permissions from one list to another. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -12314,59 +11750,52 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Get-SPPublishingPageLayout + Copy-SPListSecurity - Web - SPWebPipeBind + SourceList + SPListPipeBind - - Web - SPWebPipeBind + + TargetList + SPListPipeBind - - - Get-SPPublishingPageLayout - - Web - SPWebPipeBind + + IncludeItemSecurity + SwitchParameter - - PageLayout - SPPageLayoutPipeBind[] - - - Web - SPWebPipeBind + + AssignmentCollection + SPAssignmentCollection - Web + SourceList - Specifies the URL or GUID of the Web to retrieve publishing page layouts from. + The source list whose security will be copied. - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. + The value must be a valid URL in the form http://server_name - SPWebPipeBind + SPListPipeBind - SPWebPipeBind + SPListPipeBind - - PageLayout + + TargetList - The name or path to the page layout to return. If the value is the page name only then the Web parameter must be provided. + The target list to apply the new security to. - Example: ArticleLeft.aspx or http://<site>/_catalogs/masterpage/articleleft.aspx. + The value must be a valid URL in the form http://server_name - SPPageLayoutPipeBind[] + SPListPipeBind - SPPageLayoutPipeBind[] + SPListPipeBind @@ -12374,13 +11803,13 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - AssociatedContentType + IncludeItemSecurity - The associated content type to filter the returned page layouts by. + In addition to the list level security copy the security settings of individual items. - SPContentTypePipeBind + SwitchParameter - SPContentTypePipeBind + SwitchParameter @@ -12431,57 +11860,39 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help Get-SPPublishingPageLayout -detailed". For technical information, type "Get-Help Get-SPPublishingPageLayout -full". + For more information, type "Get-Help Copy-SPListSecurity -detailed". For technical information, type "Get-Help Copy-SPListSecurity -full". - ------------------EXAMPLE 1----------------------- - PS C:\> $layout = $Get-SPWeb http://server_name | Get-SPPublishingPageLayout -PageLayout "articleleft.aspx" - - This example returns back the articleleft.aspx page layout from http://server_name. - - - - ------------------EXAMPLE 2----------------------- - PS C:\> $layouts = Get-SPWeb http://server_name | Get-SPPublishingPageLayout - - This example returns back all page layouts from http://server_name. - - - - ------------------EXAMPLE 3----------------------- - PS C:\> $layout = Get-SPPublishingPageLayout "http://server_name/_catalogs/masterpage/articleleft.aspx" + ------------------EXAMPLE------------------ + PS C:\> Get-SPList "http://server_name/lists/list1" | Copy-SPListSecurity -TargetList (Get-SPList "http://server_name/lists/list2") - This example returns back the articleleft.aspx page layout from the http://server_name web. + This example copies the security settings and permissions from list1 to list2. - Get-SPPublishingPage - - - - Repair-SPPageLayoutUrl + Export-SPListSecurity - Get-SPContentType + Import-SPListSecurity - Get-SPWeb + Get-SPList - New-SPPublishingPage - Pages + Remove-SPList + Lists - Creates a new publishing page. + Delete a list from a web site. Copyright 2016 Falchion Consulting, LLC @@ -12490,12 +11901,12 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - New - SPPublishingPage + Remove + SPList 1.0.0.0 - Creates a new publishing page. + Delete a list from a web site. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -12505,26 +11916,22 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - New-SPPublishingPage + Remove-SPList + Identity + SPListPipeBind + + Web SPWebPipeBind - - PageName - String - - Title - String - - - PageLayout - SPPageLayoutPipeBind + Force + SwitchParameter - FieldData - Hashtable + BackupDirectory + String AssignmentCollection @@ -12534,57 +11941,45 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - Web + Identity - Specifies the URL or GUID of the Web to create the publishing page in. + The list to delete. - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. - - SPWebPipeBind - - SPWebPipeBind - - - - - - - - PageName - - The name of the publishing page to create. Example: default.aspx + The value must be a valid URL in the form http://server_name/lists/listname or /lists/listname. If a server relative URL is provided then the Web parameter must be provided. - String + SPListPipeBind - String + SPListPipeBind - - Title + + Web + Specifies the URL or GUID of the Web containing the list to be deleted. + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. - String + SPWebPipeBind - String + SPWebPipeBind - - PageLayout + + Force - The filename of the page layout to use. + Force the deletion of the list by overriding the AllowDeletion flag. - SPPageLayoutPipeBind + SwitchParameter - SPPageLayoutPipeBind + SwitchParameter @@ -12592,15 +11987,13 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - FieldData + BackupDirectory - Key/Value pairs of field names and values to set after the page is created. - - Example: -FieldData @{"FieldName1"="Field Value 1";"FieldName2"="Field Value 2"} + Export the list prior to deleting. The type must be a valid directory path. - Hashtable + String - Hashtable + String @@ -12651,33 +12044,21 @@ PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10 - For more information, type "Get-Help New-SPPublishingPage -detailed". For technical information, type "Get-Help New-SPPublishingPage -full". + For more information, type "Get-Help Remove-SPList -detailed". For technical information, type "Get-Help Remove-SPList -full". - ------------------EXAMPLE 1----------------------- - PS C:\> $data = @{"FieldName1"="Field Value 1";"FieldName2"="Field Value 2"} -PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName "custom.aspx" -Title "Custom Page " -PageLayout "articleleft.aspx" -FieldData $data - - This example creates a page named custom.aspx at http://server_name and sets two additional fields. - - - - ------------------EXAMPLE 2----------------------- - PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName "custom.aspx" -Title "Custom Page " -PageLayout "articleleft.aspx" + ------------------EXAMPLE------------------ + PS C:\> Get-SPList "http://server_name/lists/mylist" | Remove-SPList -BackupDirectory "c:\backups\mylist" - This example creates a page named custom.aspx at http://server_name. + This example deletes the list mylist and creates a backup of the list in the c:\backups\mylist folder. - Get-SPPublishingPage - - - - Get-SPPublishingPageLayout + Get-SPList @@ -12688,10 +12069,10 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName - New-SPWikiPage - Pages + Download-SPFile + Lists - Creates a new wiki page. + Save the file associated with the specified file or folder URL. Copyright 2016 Falchion Consulting, LLC @@ -12700,12 +12081,12 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - New - SPWikiPage + Download + SPFile 1.0.0.0 - Creates a new wiki page. + Save the file associated with the specified file or folder URL. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -12715,77 +12096,95 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName - New-SPWikiPage - - List - SPListPipeBind + Download-SPFile + + File + SPFilePipeBind[] - - List - SPListPipeBind + + TargetFolder + String + + + Overwrite + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection - New-SPWikiPage - + Download-SPFile + Folder SPFolderPipeBind - List - SPListPipeBind + Recursive + SwitchParameter + + + TargetFolder + String + + + Overwrite + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection - - Web + + File - Specifies the URL or GUID of the Web to create the wiki page in. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. + The path to the file to save. - SPWebPipeBind + SPFilePipeBind[] - SPWebPipeBind + SPFilePipeBind[] - - List + + Folder - Specifies the List to add the file to. + The path to the folder to save. - SPListPipeBind + SPFolderPipeBind - SPListPipeBind + SPFolderPipeBind - - Folder + + Recursive - Specifies the Folder to add the file to. + Save all child folders and their files. - SPFolderPipeBind + SwitchParameter - SPFolderPipeBind + SwitchParameter - - WikiPageName + + TargetFolder - The name of the wiki page to create. + The path to the folder to save the files to. String @@ -12796,14 +12195,14 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName - - WikiPageLayout + + Overwrite - The page layout to set the wiki page to. The default value is "ThreeColumnsHeaderFooter". + Overwrite existing files. - WikiPageLayout + SwitchParameter - WikiPageLayout + SwitchParameter @@ -12854,35 +12253,38 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName - For more information, type "Get-Help New-SPWikiPage -detailed". For technical information, type "Get-Help New-SPWikiPage -full". + For more information, type "Get-Help Download-SPFile -detailed". For technical information, type "Get-Help Download-SPFile -full". - ------------------EXAMPLE------------------ - PS C:\> Get-SPWeb http://server_name | New-SPWikiPage -List "Site Pages" -File "MyWikiPage.aspx" + ------------------EXAMPLE 1----------------------- + PS C:\> Download-SPFile -File "http://server_name/pages/default.aspx" -TargetFolder "c:\temp" - This example creates a new wiki page within the Site Pages list under the root Site of the root Site Collection. + This saves the default.aspx file from the http://server_name/pages library. + + + + ------------------EXAMPLE 2----------------------- + PS C:\> Download-SPFile "http://server_name/documents/" -TargetFolder "c:\temp" -Recursive + + This example saves all files from the http://server_name/documents library. - Set-SPOWikiPageLayout - - - - Get-SPWeb + Get-SPFile - Repair-SPPageLayoutUrl - Pages + Export-SPListSecurity + Lists - Fixes the Page Layout URL property of publishing pages which can get messed up during an upgrade or from importing into a new farm. + Export the security settings and permissions from a list. Copyright 2016 Falchion Consulting, LLC @@ -12891,12 +12293,12 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Repair - SPPageLayoutUrl + Export + SPListSecurity 1.0.0.0 - Fixes the Page Layout URL property of publishing pages which can get messed up during an upgrade or from importing into a new farm. + Export the security settings and permissions from a list. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -12906,108 +12308,38 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName - Repair-SPPageLayoutUrl - - WebApplication - SPWebApplicationPipeBind - - - RegexSearchString - String - - - RegexReplaceString - String - - - FixContact - SwitchParameter - - - PageLayout - SPPageLayoutPipeBind - - - AssignmentCollection - SPAssignmentCollection - - - - Repair-SPPageLayoutUrl + Export-SPListSecurity - Site - SPSitePipeBind - - - RegexSearchString - String + List + SPListPipeBind - RegexReplaceString + OutputFile String - FixContact + IncludeItemSecurity SwitchParameter - - PageLayout - SPPageLayoutPipeBind - AssignmentCollection SPAssignmentCollection - Repair-SPPageLayoutUrl - + Export-SPListSecurity + Web SPWebPipeBind - RegexSearchString - String - - - RegexReplaceString - String - - - FixContact - SwitchParameter - - - PageLayout - SPPageLayoutPipeBind - - - AssignmentCollection - SPAssignmentCollection - - - - Repair-SPPageLayoutUrl - - Page - SPFilePipeBind - - - RegexSearchString - String - - - RegexReplaceString + OutputFile String - FixContact + IncludeItemSecurity SwitchParameter - - PageLayout - SPPageLayoutPipeBind - AssignmentCollection SPAssignmentCollection @@ -13015,84 +12347,26 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName - - RegexSearchString - - Search pattern to use for a regular expression replacement of the page layout URL. - - String - - String - - - - - - - - RegexReplaceString - - Replace pattern to use for a regular expression replacement of the page layout URL. - - String - - String - - - - - - - - FixContact - - Attempt to fix any page contacts that are invalid. - - SwitchParameter - - SwitchParameter - - - - - - - - WebApplication - - The web application containing the pages to repair. - - The type must be a valid URL, in the form http://server_name; or an instance of a valid SPWebApplication object. - - SPWebApplicationPipeBind - - SPWebApplicationPipeBind - - - - - - - - Site + + List - The site containing the pages to repair. + The list whose security will be exported. - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. + The value must be a valid URL in the form http://server_name - SPSitePipeBind + SPListPipeBind - SPSitePipeBind + SPListPipeBind - + Web - Specifies the URL or GUID of the Web containing the pages to repair. + Specifies the URL or GUID of the Web containing the lists whose security will be exported. The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. @@ -13105,14 +12379,14 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName - - Page + + OutputFile - The URL to the page to repair. + The path to the file to save the security to. - SPFilePipeBind + String - SPFilePipeBind + String @@ -13120,13 +12394,13 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName - PageLayout + IncludeItemSecurity - URL of page layout to retarget page(s) to. + In addition to the list level security copy the security settings of individual items. - SPPageLayoutPipeBind + SwitchParameter - SPPageLayoutPipeBind + SwitchParameter @@ -13177,54 +12451,46 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName - For more information, type "Get-Help Repair-SPPageLayoutUrl -detailed". For technical information, type "Get-Help Repair-SPPageLayoutUrl -full". + For more information, type "Get-Help Export-SPListSecurity -detailed". For technical information, type "Get-Help Export-SPListSecurity -full". ------------------EXAMPLE 1----------------------- - PS C:\> Get-SPWeb "http://server_name" | Repair-SPPageLayoutUrl -RegexSearchString "(?:http://testserver/)" -RegexReplaceString "http://prodserver" + PS C:\> Get-SPList "http://server_name/lists/list1" | Export-SPListSecurity -OutputFile "c:\listsecurity.xml" - This example automatically repairs all pages in http://server_name replacing the value http://testserver with http://prodserver. + This example exports the security settings and permissions from list1 and saves to c:\listsecurity.xml. ------------------EXAMPLE 2----------------------- - PS C:\> Get-SPWebApplication "http://server_name" | Repair-SPPageLayoutUrl + PS C:\> Get-SPWeb "http://server_name" | Export-SPListSecurity -OutputFile "c:\listsecurity.xml" - This example automatically repairs all pages in http://server_name by analyzing the page layout name and fixing the path so it points to the appropriate location. + This example exports the security settings and permissions for all lists in http://server_name and saves to c:\listsecurity.xml. - Get-SPPublishingPage + Copy-SPListSecurity - Get-SPPublishingPageLayout + Import-SPListSecurity - Get-SPWebApplication - - - - Get-SPSite - - - - Get-SPWeb + Get-SPList - Reset-SPCustomizedPages - Pages + Export-SPWeb2 + Lists - Resets customized (unghosted) pages to their site definition. + The Export-SPWeb2 cmdlet exports a site collection, Web application, list, or library. This cmdlet extends the capabilities of the Export-SPWeb cmdlet by exposing additional parameters. Copyright 2016 Falchion Consulting, LLC @@ -13233,12 +12499,12 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Reset - SPCustomizedPages + Export + SPWeb2 1.0.0.0 - Resets customized (unghosted) pages to their site definition. + The Export-SPWeb2 cmdlet exports a site collection, Web application, list, or library. This cmdlet extends the capabilities of the Export-SPWeb cmdlet by exposing additional parameters. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -13248,94 +12514,78 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName - Reset-SPCustomizedPages + Export-SPWeb2 - Web + Identity SPWebPipeBind - Recurse - SwitchParameter + CompressionSize + Int32 - - Web - SPWebPipeBind + + IncludeDependencies + SwitchParameter - Recurse + ExcludeChildren SwitchParameter - - - Reset-SPCustomizedPages - Web - SPWebPipeBind + IncludeVersions + LastMajor | CurrentVersion | LastMajorAndMinor | All - - List - SPListPipeBind + + IncludeDescendants + None | Content | All - - Web - SPWebPipeBind + + ItemUrl + String - Recurse + UseSqlSnapshot SwitchParameter - - - Reset-SPCustomizedPages - - Site - SPSitePipeBind - - - Web - SPWebPipeBind + + Force + SwitchParameter - Recurse + HaltOnError SwitchParameter - - - Reset-SPCustomizedPages - - File - SPFilePipeBind + + HaltOnWarning + SwitchParameter - - Web - SPWebPipeBind + + IncludeUserSecurity + SwitchParameter - Recurse + NoFileCompression SwitchParameter - - - Reset-SPCustomizedPages - - WebApplication - SPWebApplicationPipeBind + + NoLogFile + SwitchParameter - - Web - SPWebPipeBind + + Path + String - Recurse - SwitchParameter + AssignmentCollection + SPAssignmentCollection - Web + Identity - Specifies the URL or GUID of the Web containing the pages to reset. + Specifies the URL or GUID of the Web to be exported. The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. @@ -13348,60 +12598,77 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName - - Site + + CompressionSize + + Sets the maximum file size for the compressed export files. If the total size of the exported package is greater than this size, the exported package will be split into multiple files. + + Int32 + + Int32 + + + + + + + + IncludeDependencies - The site containing the pages to reset. All sub-webs will be iterated through. - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - SPSitePipeBind + SwitchParameter - SPSitePipeBind + SwitchParameter - - File + + ExcludeChildren - The URL to the file to reset. + - SPFilePipeBind + SwitchParameter - SPFilePipeBind + SwitchParameter - - List + + IncludeVersions - The URL to the list containing the files to reset. + Indicates the type of file and list item version history to be included in the export operation. If the IncludeVersions parameter is absent, the cmdlet by default uses a value of "LastMajor". + + The type must be any one of the following versions: + + -Last major version for files and list items (default) + -The current version, either the last major version or the last minor version + -Last major and last minor version for files and list items + -All versions for files and list items - SPListPipeBind + SPIncludeVersions - SPListPipeBind + SPIncludeVersions - - WebApplication + + IncludeDescendants - The web application containing the files to reset. - The type must be a valid URL, in the form http://server_name; or an instance of a valid SPWebApplication object. - SPWebApplicationPipeBind + SPIncludeDescendants - SPWebApplicationPipeBind + SPIncludeDescendants @@ -13409,9 +12676,39 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName - Recurse + ItemUrl - Recurse all Webs. + Specifies the URL of the Web application, GUID, or object to be exported. + + The type must be a valid URL; for example, http://server_name. + + String + + String + + + + + + + + UseSqlSnapshot + + Specifies a SQL Database Snapshot will be created when the export process begins, and all exported data will be retrieved directly from the database snapshot. This snapshot will be automatically deleted when export completes. + + SwitchParameter + + SwitchParameter + + + + + + + + Force + + Forcefully overwrites the export package if it already exists. SwitchParameter @@ -13425,7 +12722,7 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName HaltOnError - Abort execution if an error is encountered. + Stops the export/import process when an error occurs. SwitchParameter @@ -13437,9 +12734,9 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName - Force + HaltOnWarning - Use of the Force parameter is not supported and should only be used as a last resort. + Stops the export/import process when a warning occurs. SwitchParameter @@ -13450,105 +12747,135 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName - - AssignmentCollection + + IncludeUserSecurity - Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used. - - When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur. + Preserves the user security settings. - SPAssignmentCollection + SwitchParameter - SPAssignmentCollection + SwitchParameter - - - + + NoFileCompression + + Either enables or disables file compression in the export package. The export package is stored in the folder specified by thePath parameter or Identity parameter. We recommend that you use this parameter for performance reasons. If compression is enabled, the export process can increase by approximately 30 percent. + + SwitchParameter - + SwitchParameter - - - - + + + NoLogFile + + Suppresses the generation of an export log file. If this parameter is not specified, the cmdlet will generate an export log file in the same location as the export package. The log file uses Unified Logging Service (ULS). + + It is recommended to use this parameter. However, for performance reasons, you might not want to generate a log file. + + SwitchParameter - + SwitchParameter - - - - - - - - For more information, type "Get-Help Reset-SPCustomizedPages -detailed". For technical information, type "Get-Help Reset-SPCustomizedPages -full". + + + Path + + Specifies the name of the export file. + + If the NoFileCompression parameter is used, a directory must be specified; otherwise, any file format is valid. + + String + + String + + + + + + + + AssignmentCollection + + Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used. + + When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur. + + SPAssignmentCollection + + SPAssignmentCollection + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + For more information, type "Get-Help Export-SPWeb2 -detailed". For technical information, type "Get-Help Export-SPWeb2 -full". - - - ------------------EXAMPLE 1----------------------- - PS C:\> Get-SPSite http://server_name | Reset-SPCustomizedPages - - This example resets all unghosted pages in http://server_name including all child webs. - - - - ------------------EXAMPLE 2----------------------- - PS C:\> Reset-SPCustomizedPages -File http://server_name/pages/default.aspx - - This example resets the unghosted page http://server_name/pages/default.aspx. - - - - ------------------EXAMPLE 3----------------------- - PS C:\> Get-SPWeb http://server_name | Reset-SPCustomizedPages - - This example resets all unghosted pages in http://server_name without updating any child webs. - - - + - Get-SPCustomizedPages - - - - Get-SPList - - - - Get-SPWeb + Import-SPWeb2 - Get-SPSite + Export-SPWeb - Get-SPWebApplication + Import-SPWeb - Set-SPOWikiPageLayout - Wiki Pages + Get-SPCheckedOutFiles + Lists - Sets the layout for a wiki page within an existing List. + Retrieves check out details for a given List, Web, or Site Collection. Copyright 2016 Falchion Consulting, LLC @@ -13557,12 +12884,12 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Set - SPOWikiPageLayout + Get + SPCheckedOutFiles 1.0.0.0 - Sets the layout for a wiki page within an existing List. + Retrieves check out details for a given List, Web, or Site Collection. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -13572,95 +12899,104 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName - Set-SPOWikiPageLayout - - List - SPListPipeBind + Get-SPCheckedOutFiles + + Site + SPSitePipeBind - - List - SPListPipeBind + + AssignmentCollection + SPAssignmentCollection - Set-SPOWikiPageLayout - - Folder - SPFolderPipeBind + Get-SPCheckedOutFiles + + Web + SPWebPipeBind + + + ExcludeChildWebs + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection + + + Get-SPCheckedOutFiles + Web + SPWebPipeBind + + List SPListPipeBind + + AssignmentCollection + SPAssignmentCollection + - Web + Site - Specifies the URL or GUID of the Web to create the wiki page in. + Specifies the URL or GUID of the Site to inspect. - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. - - SPWebPipeBind - - SPWebPipeBind - - - - - - - - List - - Specifies the identity of the Site containing the file to update. + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - SPListPipeBind + SPSitePipeBind - SPListPipeBind + SPSitePipeBind - - Folder + + Web - Specifies the Folder containing the file to update. + Specifies the URL or GUID of the Web to inspect. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPWeb object. - SPFolderPipeBind + SPWebPipeBind - SPFolderPipeBind + SPWebPipeBind - - WikiPageName + + List - The name of the wiki page to update. + The list whose checked out files are to be returned. + + The value must be a valid URL in the form http://server_name/lists/listname or /lists/listname. If a server relative URL is provided then the Web parameter must be provided. - String + SPListPipeBind - String + SPListPipeBind - - WikiPageLayout + + ExcludeChildWebs - The page layout to set the wiki page to. + Excludes all child sites and only considers the specified site. - WikiPageLayout + SwitchParameter - WikiPageLayout + SwitchParameter @@ -13711,35 +13047,31 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName - For more information, type "Get-Help Set-SPOWikiPageLayout -detailed". For technical information, type "Get-Help Set-SPOWikiPageLayout -full". + For more information, type "Get-Help Get-SPCheckedOutFiles -detailed". For technical information, type "Get-Help Get-SPCheckedOutFiles -full". ------------------EXAMPLE------------------ - PS C:\> Get-SPWeb http://server_name | Set-SPWikiPageLayout -List "Site Pages" -WikiPageName "MyWikiPage.aspx" -WikiPageLayout "OneColumnSideBar" + PS C:\> Get-SPCheckedOutFiles -Site "http://server_name/" - This example sets the layout of an existing wiki page within the Site Pages list under the root Site of the root Site Collection. + This example outputs a list of files that are checked out for the given Site Collection - Set-SPOWikiPageLayout - - - - Get-SPWeb + Get-SPFile - Get-SPQuotaTemplate - Quotas + Get-SPFile + Lists - Retrieve one or more quota templates. + Retrieves the SPFile object associated with the specified URL. Use the AssignmentCollection parameter to handle disposal of parent web and site objects. Copyright 2016 Falchion Consulting, LLC @@ -13749,11 +13081,11 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName > Gary Lapointe assumes no liability. Get - SPQuotaTemplate + SPFile 1.0.0.0 - Retrieve one or more quota templates. + Retrieves the SPFile object associated with the specified URL. Use the AssignmentCollection parameter to handle disposal of parent web and site objects. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -13763,10 +13095,10 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName - Get-SPQuotaTemplate - + Get-SPFile + Identity - SPQuotaTemplatePipeBind + SPFilePipeBind[] AssignmentCollection @@ -13775,14 +13107,14 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName - + Identity - The name of the quota template to return. + The path to the publishing page to return. - SPQuotaTemplatePipeBind + SPFilePipeBind[] - SPQuotaTemplatePipeBind + SPFilePipeBind[] @@ -13833,46 +13165,46 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName - For more information, type "Get-Help Get-SPQuotaTemplate -detailed". For technical information, type "Get-Help Get-SPQuotaTemplate -full". + For more information, type "Get-Help Get-SPFile -detailed". For technical information, type "Get-Help Get-SPFile -full". ------------------EXAMPLE 1----------------------- - PS C:\> $quotas = Get-SPQuotaTemplate + PS C:\> $file = Get-SPFile "http://server_name/pages/default.aspx" - This example retrieves all quota templates. + This example returns back the default.aspx file from the http://server_name/pages library. ------------------EXAMPLE 2----------------------- - PS C:\> $quota = Get-SPQuotaTemplate "Portal" + PS C:\> $file = Get-SPFile "http://server_name/documents/HRHandbook.doc" - This example retrieves the "Portal" quota template. + This example returns back the HRHandbook.doc file from the http://server_name/documents library. - New-SPQuotaTemplate + Get-SPPublishingPage - Set-SPQuota + Start-SPAssignment - Set-SPQuotaTemplate + Stop-SPAssignment - New-SPQuotaTemplate - Quotas + Get-SPList + Lists - Creates a new quota template. + Retrieve an SPList object by name or type. Use the AssignmentCollection parameter to ensure parent objects are properly disposed. Copyright 2016 Falchion Consulting, LLC @@ -13881,12 +13213,12 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - New - SPQuotaTemplate + Get + SPList 1.0.0.0 - Creates a new quota template. + Retrieve an SPList object by name or type. Use the AssignmentCollection parameter to ensure parent objects are properly disposed. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -13896,30 +13228,29 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName - New-SPQuotaTemplate - - StorageMaximumLevel - Int64 + Get-SPList + + Identity + SPListPipeBind - StorageWarningLevel - Int64 + Web + SPWebPipeBind - UserCodeMaximumLevel - Double + AssignmentCollection + SPAssignmentCollection + + + Get-SPList - UserCodeWarningLevel - Double - - - Name - String + ListType + GenericList | DocumentLibrary | Unused | DiscussionBoard | Survey | Issue | UnspecifiedBaseType - Quota - SPQuotaTemplatePipeBind + Web + SPWebPipeBind AssignmentCollection @@ -13928,42 +13259,14 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName - - StorageMaximumLevel - - Specify whether to limit the amount of storage available on a Site Collection, and set the maximum amount of storage. When the warning level or maximum storage level is reached, an e-mail is sent to the site administrator to inform them of the issue. - - Nullable`1 - - Nullable`1 - - - - - - - - StorageWarningLevel - - Specify whether to limit the amount of storage available on a Site Collection, and set the warning level. When the warning level or maximum storage level is reached, an e-mail is sent to the site administrator to inform them of the issue. - - Nullable`1 - - Nullable`1 - - - - - - - - UserCodeMaximumLevel + + Identity - Specifies whether sandboxed solutions with code are allowed for this site collection. When the maximum usage limit is reached, sandboxed solutions with code are disabled for the rest of the day and an e-mail is sent to the site administrator. + - Nullable`1 + SPListPipeBind - Nullable`1 + SPListPipeBind @@ -13971,41 +13274,29 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName - UserCodeWarningLevel - - Specifies whether sandboxed solutions with code are allowed for this site collection. When the warning level is reached, an e-mail is sent. - - Nullable`1 - - Nullable`1 - - - - - - - - Name + ListType - The name of the new quota template to create. + - String + SPBaseType - String + SPBaseType - - Quota + + Web - An existing quota template to base the new template off of. + Specifies the URL or GUID of the Web containing the list to be retrieved. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. - SPQuotaTemplatePipeBind + SPWebPipeBind - SPQuotaTemplatePipeBind + SPWebPipeBind @@ -14056,46 +13347,55 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName - For more information, type "Get-Help New-SPQuotaTemplate -detailed". For technical information, type "Get-Help New-SPQuotaTemplate -full". + For more information, type "Get-Help Get-SPList -detailed". For technical information, type "Get-Help Get-SPList -full". - ------------------EXAMPLE 1----------------------- - PS C:\> $quota = Get-SPQuotaTemplate "Portal" | New-SPQuotaTemplate -Name "Teams" - - This example creates a new quota template based on the existing Portal quota template. - - - - ------------------EXAMPLE 2----------------------- - PS C:\> $quota = New-SPQuotaTemplate -Name "Portal" -StorageMaximumLevel 15GB -StorageWarningLevel 13GB + ------------------EXAMPLE------------------ + PS C:\> $list = Get-SPList "http://server_name/lists/mylist" - This example creates a new quota template with a max storage value of 15GB and a warning value of 13GB. + This example retrieves the list at http://server_name/lists/mylist. - Get-SPQuotaTemplate + Remove-SPList - Set-SPQuota + Copy-SPList - Set-SPQuotaTemplate + Copy-SPListSecurity + + + + Export-SPListSecurity + + + + Get-SPWeb + + + + Start-SPAssignment + + + + Stop-SPAssignment - Set-SPQuota - Quotas + Get-SPListOverlays + Lists - Synchronizes all assigned quotas with the corresponding quota template. + Retrieve all SPList objects set as a calendar overlay on the given list. Copyright 2016 Falchion Consulting, LLC @@ -14104,12 +13404,12 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Set - SPQuota + Get + SPListOverlays 1.0.0.0 - Synchronizes all assigned quotas with the corresponding quota template. + Retrieve all SPList objects set as a calendar overlay on the given list. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -14119,189 +13419,48 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName - Set-SPQuota - - SyncExistingOnly - SwitchParameter - - - Farm - SPFarmPipeBind - - - SyncExistingOnly - SwitchParameter - - - Site - SPSitePipeBind - - - - Set-SPQuota - - SyncExistingOnly - SwitchParameter - - - WebApplication - SPWebApplicationPipeBind - - - SyncExistingOnly - SwitchParameter - - - Site - SPSitePipeBind - - - - Set-SPQuota - - SyncExistingOnly - SwitchParameter - + Get-SPListOverlays - Site - SPSitePipeBind + Identity + SPListPipeBind - SyncExistingOnly - SwitchParameter - - - Site - SPSitePipeBind - - - - Set-SPQuota - - WebApplication - SPWebApplicationPipeBind - - - QuotaTemplate - SPQuotaTemplatePipeBind + Web + SPWebPipeBind - SyncExistingOnly - SwitchParameter - - - Site - SPSitePipeBind - - - - Set-SPQuota - - Site - SPSitePipeBind - - - QuotaTemplate - SPQuotaTemplatePipeBind - - - SyncExistingOnly - SwitchParameter - - - Site - SPSitePipeBind - - - - Set-SPQuota - - Farm - SPFarmPipeBind - - - QuotaTemplate - SPQuotaTemplatePipeBind - - - SyncExistingOnly - SwitchParameter - - - Site - SPSitePipeBind + AssignmentCollection + SPAssignmentCollection - - SyncExistingOnly - - Synchronize site collection quota settings with the associated template only (do not assign the template if missing). - - SwitchParameter - - SwitchParameter - - - - - - - - WebApplication + + Identity - The web application containing the sites whose quota will be set or synchronized. + The calendar whose calendar overlays will be retrieved. - The type must be a valid URL, in the form http://server_name; or an instance of a valid SPWebApplication object. + The value must be a valid URL in the form http://server_name/lists/listname or /lists/listname. If a server relative URL is provided then the Web parameter must be provided. - SPWebApplicationPipeBind + SPListPipeBind - SPWebApplicationPipeBind + SPListPipeBind - - Site + + Web - The site whose quota will be set or synchronized. + Specifies the URL or GUID of the Web containing the calendar whose overlays will be retrieved. - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - - SPSitePipeBind - - SPSitePipeBind - - - - - - - - Farm - - Set or synchronize all site collection quotas within the farm. - - SPFarmPipeBind - - SPFarmPipeBind - - - - - - - - QuotaTemplate - - The quota template to associate with the site collections in the scope. + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. - SPQuotaTemplatePipeBind + SPWebPipeBind - SPQuotaTemplatePipeBind + SPWebPipeBind @@ -14352,46 +13511,39 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName - For more information, type "Get-Help Set-SPQuota -detailed". For technical information, type "Get-Help Set-SPQuota -full". + For more information, type "Get-Help Get-SPListOverlays -detailed". For technical information, type "Get-Help Get-SPListOverlays -full". - ------------------EXAMPLE 1----------------------- - PS C:\> Get-SPWebApplication http://server_name | Set-SPQuota -SyncExistingOnly - - This example synchronizes all site collections in http://server_name with the assigned quota template. - - - - ------------------EXAMPLE 2----------------------- - PS C:\> Get-SPWebApplication http://server_name | Set-SPQuota -QuotaTempate (Get-SPQuotaTemplate "Portal") + ------------------EXAMPLE------------------ + PS C:\> $lists = Get-SPListOverlays "http://server_name/lists/mylist" - This example sets all site collections in http://server_name with the Portal quota template. + This example retrieves the calendar overlays for the calendar at http://server_name/lists/mycalendar. - Get-SPQuotaTemplate + Get-SPList - Set-SPQuota + Set-SPListOverlay - New-SPQuotaTemplate + Get-SPWeb - Set-SPQuotaTemplate - Quotas + Import-SPListSecurity + Lists - Updates an existing quota template. + Export the security settings and permissions from a list. Copyright 2016 Falchion Consulting, LLC @@ -14400,12 +13552,12 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Set - SPQuotaTemplate + Import + SPListSecurity 1.0.0.0 - Updates an existing quota template. + Export the security settings and permissions from a list. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -14415,26 +13567,37 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName - Set-SPQuotaTemplate - - StorageMaximumLevel - Int64 + Import-SPListSecurity + + List + SPListPipeBind - - StorageWarningLevel - Int64 + + Input + XmlDocumentPipeBind - UserCodeMaximumLevel - Double + IncludeItemSecurity + SwitchParameter - UserCodeWarningLevel - Double + AssignmentCollection + SPAssignmentCollection - - Identity - SPQuotaTemplatePipeBind + + + Import-SPListSecurity + + Web + SPWebPipeBind + + + Input + XmlDocumentPipeBind + + + IncludeItemSecurity + SwitchParameter AssignmentCollection @@ -14443,42 +13606,46 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName - - StorageMaximumLevel + + List - Specify whether to limit the amount of storage available on a Site Collection, and set the maximum amount of storage. When the warning level or maximum storage level is reached, an e-mail is sent to the site administrator to inform them of the issue. + The list whose security will be updated. + + The value must be a valid URL in the form http://server_name - Nullable`1 + SPListPipeBind - Nullable`1 + SPListPipeBind - - StorageWarningLevel + + Web - Specify whether to limit the amount of storage available on a Site Collection, and set the warning level. When the warning level or maximum storage level is reached, an e-mail is sent to the site administrator to inform them of the issue. + Specifies the URL or GUID of the Web containing the lists whose security will be updated. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. - Nullable`1 + SPWebPipeBind - Nullable`1 + SPWebPipeBind - - UserCodeMaximumLevel + + Input - Specifies whether sandboxed solutions with code are allowed for this site collection. When the maximum usage limit is reached, sandboxed solutions with code are disabled for the rest of the day and an e-mail is sent to the site administrator. + The path to the file containing the security settings to import. - Nullable`1 + XmlDocumentPipeBind - Nullable`1 + XmlDocumentPipeBind @@ -14486,27 +13653,13 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName - UserCodeWarningLevel - - Specifies whether sandboxed solutions with code are allowed for this site collection. When the warning level is reached, an e-mail is sent. - - Nullable`1 - - Nullable`1 - - - - - - - - Identity + IncludeItemSecurity - The name of the quota template to update. + In addition to the list level security copy the security settings of individual items. - SPQuotaTemplatePipeBind + SwitchParameter - SPQuotaTemplatePipeBind + SwitchParameter @@ -14557,46 +13710,46 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName - For more information, type "Get-Help Set-SPQuotaTemplate -detailed". For technical information, type "Get-Help Set-SPQuotaTemplate -full". + For more information, type "Get-Help Import-SPListSecurity -detailed". For technical information, type "Get-Help Import-SPListSecurity -full". ------------------EXAMPLE 1----------------------- - PS C:\> Get-SPQuotaTemplate "Portal" | Set-SPQuotaTemplate -StorageMaximumLevel 15GB -StorageWarningLevel 13GB + PS C:\> Get-SPList "http://server_name/lists/list1" | Import-SPListSecurity -Path "c:\listsecurity.xml" - This example updates the Portal quota template and sets the max storage value to 15GB and warning value to 13GB. + This example imports the security settings and permissions from c:\listsecurity.xml and applies them to list1. ------------------EXAMPLE 2----------------------- - PS C:\> $quota = Set-SPQuotaTemplate -Name "Portal" -StorageMaximumLevel 15GB -StorageWarningLevel 13GB + PS C:\> Get-SPWeb "http://server_name" | Import-SPListSecurity -Path "c:\listsecurity.xml" - This example updates the Portal quota template and sets the max storage value to 15GB and warning value to 13GB. + This example imports the security settings and permissions from c:\listsecurity.xml and applies them to matching lists found in http://server_name. - Get-SPQuotaTemplate + Copy-SPListSecurity - Set-SPQuota + Export-SPListSecurity - New-SPQuotaTemplate + Get-SPList - Clear-SPHttpContext - Site Collections + Import-SPWeb2 + Lists - Clears the HTTP Context. Run this cmdlet when finished with an HTTP Context created by Set-SPHttpContext. + The Import-SPWeb2 cmdlet imports a site collection, Web application, list, or library. This cmdlet extends the capabilities of the Import-SPWeb cmdlet by exposing additional parameters. Copyright 2016 Falchion Consulting, LLC @@ -14605,12 +13758,12 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Clear - SPHttpContext + Import + SPWeb2 1.0.0.0 - Clears the HTTP Context. Run this cmdlet when finished with an HTTP Context created by Set-SPHttpContext. The HTTP Context is cleared by setting the static System.Web.HttpContext.Current property to $null (this can be done explicitly or via this cmdlet). + The Import-SPWeb2 cmdlet imports a site collection, Web application, list, or library. This cmdlet extends the capabilities of the Import-SPWeb cmdlet by exposing additional parameters. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -14620,14 +13773,218 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName - Clear-SPHttpContext - - AssignmentCollection - SPAssignmentCollection - + Import-SPWeb2 + + Identity + SPWebPipeBind + + + RetainObjectIdentity + SwitchParameter + + + SuppressAfterEvents + SwitchParameter + + + UpdateVersions + Append | Overwrite | Ignore + + + Force + SwitchParameter + + + HaltOnError + SwitchParameter + + + HaltOnWarning + SwitchParameter + + + IncludeUserSecurity + SwitchParameter + + + NoFileCompression + SwitchParameter + + + NoLogFile + SwitchParameter + + + Path + String + + + AssignmentCollection + SPAssignmentCollection + + + Identity + + Specifies the URL or GUID of the Web to be exported. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. + + SPWebPipeBind + + SPWebPipeBind + + + + + + + + RetainObjectIdentity + + + + SwitchParameter + + SwitchParameter + + + + + + + + SuppressAfterEvents + + + + SwitchParameter + + SwitchParameter + + + + + + + + UpdateVersions + + + + SPUpdateVersions + + SPUpdateVersions + + + + + + + + Force + + Forcefully overwrites the export package if it already exists. + + SwitchParameter + + SwitchParameter + + + + + + + + HaltOnError + + Stops the export/import process when an error occurs. + + SwitchParameter + + SwitchParameter + + + + + + + + HaltOnWarning + + Stops the export/import process when a warning occurs. + + SwitchParameter + + SwitchParameter + + + + + + + + IncludeUserSecurity + + Preserves the user security settings. + + SwitchParameter + + SwitchParameter + + + + + + + + NoFileCompression + + Either enables or disables file compression in the export package. The export package is stored in the folder specified by thePath parameter or Identity parameter. We recommend that you use this parameter for performance reasons. If compression is enabled, the export process can increase by approximately 30 percent. + + SwitchParameter + + SwitchParameter + + + + + + + + NoLogFile + + Suppresses the generation of an export log file. If this parameter is not specified, the cmdlet will generate an export log file in the same location as the export package. The log file uses Unified Logging Service (ULS). + + It is recommended to use this parameter. However, for performance reasons, you might not want to generate a log file. + + SwitchParameter + + SwitchParameter + + + + + + + + Path + + Specifies the name of the export file. + + If the NoFileCompression parameter is used, a directory must be specified; otherwise, any file format is valid. + + String + + String + + + + + + AssignmentCollection @@ -14672,33 +14029,31 @@ PS C:\> $page = Get-SPWeb http://server_name | New-SPPublishingPage -PageName - For more information, type "Get-Help Clear-SPHttpContext -detailed". For technical information, type "Get-Help Clear-SPHttpContext -full". + For more information, type "Get-Help Import-SPWeb2 -detailed". For technical information, type "Get-Help Import-SPWeb2 -full". - - - ------------------EXAMPLE------------------ - PS C:\> $web = Set-SPHttpContext "http://demo/" -PS C:\> Write-Host "do something with the web" -PS C:\> Clear-SPHttpContext - - This example clears the HttpContext. - - - + - Set-SPHttpContext + Export-SPWeb2 + + + + Export-SPWeb + + + + Import-SPWeb - ConvertTo-SPSite - Site Collections + New-SPFile + Lists - Converts a sub-site to a site collection. + Creates a new file within a list. Copyright 2016 Falchion Consulting, LLC @@ -14707,12 +14062,12 @@ PS C:\> Clear-SPHttpContext > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - ConvertTo - SPSite + New + SPFile 1.0.0.0 - Converts a sub-site to a site collection. + Creates a new file within a list. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -14722,260 +14077,1802 @@ PS C:\> Clear-SPHttpContext - ConvertTo-SPSite - - SourceWeb - SPWebPipeBind + New-SPFile + + List + SPListPipeBind + + + File + String + + + Overwrite + SwitchParameter + + + FieldValues + PropertiesPipeBind + + + AssignmentCollection + SPAssignmentCollection + + + + New-SPFile + + Folder + SPFolderPipeBind + + + File + String + + + Overwrite + SwitchParameter + + + FieldValues + PropertiesPipeBind + + + AssignmentCollection + SPAssignmentCollection + + + + + + List + + Specifies the List to add the file to. + + The type must be a valid absolute URL, in the form http://contoso.sharepoint.com/site_name/lists/list_name, or an SPOList object, Microsoft.SharePoint.Client.List object, List title, or GUID representing the List ID. + + SPListPipeBind + + SPListPipeBind + + + + + + + + Folder + + Specifies the Folder to add the file to. + + The type must be a valid SPOFolder object. + + SPFolderPipeBind + + SPFolderPipeBind + + + + + + + + File + + Specify the path to the file to add to the list. + + String + + String + + + + + + + + Overwrite + + Overwrite an existing file if present. + + SwitchParameter + + SwitchParameter + + + + + + + + FieldValues + + The collection of field values to set where the key is the internal field name. The type must be a hash table where each key represents the name of a field whose value should be set to the corresponding key value (e.g., @{"Field1"="Value1";"Field2"="Value2"}). Alternatively, provide the path to a file with XML property settings (<Properties><Property Name="Name1">Value1</Property><Property Name="Name2">Value2</Property></Properties>). + + PropertiesPipeBind + + PropertiesPipeBind + + + + + + + + AssignmentCollection + + Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used. + + When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur. + + SPAssignmentCollection + + SPAssignmentCollection + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + For more information, type "Get-Help New-SPFile -detailed". For technical information, type "Get-Help New-SPFile -full". + + + + + ------------------EXAMPLE------------------ + PS C:\> New-SPFile -List "http://server_name/documents" -File "c:\myfile.txt" -FieldValues @{"Title"="My new file"} + + This example creates a new file within the List My List under the root Site of the current Site Collection. + + + + + + Get-SPList + + + + + + + New-SPFolder + Lists + + Creates a new folder within a list. + + + Copyright 2016 Falchion Consulting, LLC + > For more information on this cmdlet and others: + > http://blog.falchionconsulting.com/ + > Use of this cmdlet is at your own risk. + > Gary Lapointe assumes no liability. + + New + SPFolder + 1.0.0.0 + + + Creates a new folder within a list. + + Copyright 2016 Falchion Consulting, LLC + > For more information on this cmdlet and others: + > http://blog.falchionconsulting.com/ + > Use of this cmdlet is at your own risk. + > Gary Lapointe assumes no liability. + + + + New-SPFolder + + List + SPListPipeBind + + + Path + String + + + AssignmentCollection + SPAssignmentCollection + + + + + + List + + The list to add the field to. + + The value must be a valid URL in the form http://server_name + + SPListPipeBind + + SPListPipeBind + + + + + + + + Path + + The list relative folder path to create to create. Example: "TopLevelFolder/ChildFolder1" + + String + + String + + + + + + + + AssignmentCollection + + Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used. + + When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur. + + SPAssignmentCollection + + SPAssignmentCollection + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + For more information, type "Get-Help New-SPFolder -detailed". For technical information, type "Get-Help New-SPFolder -full". + + + + + ------------------EXAMPLE------------------ + PS C:\> $folder = Get-SPList http://server_name/documents | New-SPFolder -Path "TopLevelFolder/ChildFolder1" + + This example creates a TopLevelFolder with a sub-folder called ChildFolder1 at http://server_name/documents. + + + + + + Get-SPList + + + + + + + New-SPList + Lists + + Creates a new list. + + + Copyright 2016 Falchion Consulting, LLC + > For more information on this cmdlet and others: + > http://blog.falchionconsulting.com/ + > Use of this cmdlet is at your own risk. + > Gary Lapointe assumes no liability. + + New + SPList + 1.0.0.0 + + + Creates a new list. + + Copyright 2016 Falchion Consulting, LLC + > For more information on this cmdlet and others: + > http://blog.falchionconsulting.com/ + > Use of this cmdlet is at your own risk. + > Gary Lapointe assumes no liability. + + + + New-SPList + + Web + SPWebPipeBind + + + Title + String + + + UrlName + String + + + FeatureId + Guid + + + TemplateType + Int32 + + + Description + String + + + DocTemplateType + Int32 + + + AssignmentCollection + SPAssignmentCollection + + + + + + Web + + Specifies the URL or GUID of the Web to create the list in. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. + + SPWebPipeBind + + SPWebPipeBind + + + + + + + + Title + + The list title. Example: "My List" + + String + + String + + + + + + + + UrlName + + The URL name of the list to create. Example: "MyList" + + String + + String + + + + + + + + FeatureId + + The feature ID to which the list definition belongs. + + Guid + + Guid + + + + + + + + TemplateType + + An integer corresponding to the list definition type. + + Int32 + + Int32 + + + + + + + + Description + + The list description. + + String + + String + + + + + + + + DocTemplateType + + The ID for the document template type. + + Int32 + + Int32 + + + + + + + + AssignmentCollection + + Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used. + + When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur. + + SPAssignmentCollection + + SPAssignmentCollection + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + For more information, type "Get-Help New-SPList -detailed". For technical information, type "Get-Help New-SPList -full". + + + + + ------------------EXAMPLE------------------ + PS C:\> $list = Get-SPWeb http://server_name | New-SPList -UrlName "MyDocs" -Title "My Docs" -FeatureId "00BFEA71-E717-4E80-AA17-D0C71B360101" -TemplateType 101 -DocTemplateType 100 + + This example creates a standard document library at http://server_name/MyDocs. + + + + + + Get-SPList + + + + + + + Publish-SPListItems + Lists + + Publish any draft or pending items. + + + Copyright 2016 Falchion Consulting, LLC + > For more information on this cmdlet and others: + > http://blog.falchionconsulting.com/ + > Use of this cmdlet is at your own risk. + > Gary Lapointe assumes no liability. + + Publish + SPListItems + 1.0.0.0 + + + Publish any draft or pending items. + + Copyright 2016 Falchion Consulting, LLC + > For more information on this cmdlet and others: + > http://blog.falchionconsulting.com/ + > Use of this cmdlet is at your own risk. + > Gary Lapointe assumes no liability. + + + + Publish-SPListItems + + TakeOverFilesWithNoCheckIn + SwitchParameter + + + FilterExpression + String + + + List + SPListPipeBind + + + LogFile + String + + + Comment + String + + + AssignmentCollection + SPAssignmentCollection + + + + Publish-SPListItems + + TakeOverFilesWithNoCheckIn + SwitchParameter + + + FilterExpression + String + + + Web + SPWebPipeBind + + + LogFile + String + + + Comment + String + + + AssignmentCollection + SPAssignmentCollection + + + + Publish-SPListItems + + TakeOverFilesWithNoCheckIn + SwitchParameter + + + FilterExpression + String + + + Site + SPSitePipeBind + + + LogFile + String + + + Comment + String + + + AssignmentCollection + SPAssignmentCollection + + + + Publish-SPListItems + + TakeOverFilesWithNoCheckIn + SwitchParameter + + + FilterExpression + String + + + WebApplication + SPWebApplicationPipeBind + + + LogFile + String + + + Comment + String + + + AssignmentCollection + SPAssignmentCollection + + + + Publish-SPListItems + + TakeOverFilesWithNoCheckIn + SwitchParameter + + + FilterExpression + String + + + Farm + SPFarmPipeBind + + + LogFile + String + + + Comment + String + + + AssignmentCollection + SPAssignmentCollection + + + + Publish-SPListItems + + ListItem + SPListItemPipeBind + + + ParentList + SPListPipeBind + + + LogFile + String + + + Comment + String + + + AssignmentCollection + SPAssignmentCollection + + + + + + TakeOverFilesWithNoCheckIn + + Take over ownership of any files that do not have an existing check-in. + + SwitchParameter + + SwitchParameter + + + + + + + + FilterExpression + + A regular expression to match against the file name. For example, to only publish Word and Excel files use the following expression: "\.((docx)|(xlsx))$". If specified, list items are ignored (only files are published). + + String + + String + + + + + + + + LogFile + + The filename to save all details to. + + String + + String + + + + + + + + ListItem + + The list item to publish. + + SPListItemPipeBind + + SPListItemPipeBind + + + + + + + + ParentList + + The list containing the item to publish. + + SPListPipeBind + + SPListPipeBind + + + + + + + + List + + The list containing the items to publish. + + SPListPipeBind + + SPListPipeBind + + + + + + + + Web + + Specifies the URL or GUID of the Web containing the list items to publish. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. + + SPWebPipeBind + + SPWebPipeBind + + + + + + + + Site + + The site containing the list items to publish. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. + + SPSitePipeBind + + SPSitePipeBind + + + + + + + + WebApplication + + The web application containing the list items to publish. + + The type must be a valid URL, in the form http://server_name; or an instance of a valid SPWebApplication object. + + SPWebApplicationPipeBind + + SPWebApplicationPipeBind + + + + + + + + Farm + + A valid SPFarm object. All items in the farm will be published. + + SPFarmPipeBind + + SPFarmPipeBind + + + + + + + + Comment + + A comment to associated with each checked in, published, and approved item. + + String + + String + + + + + + + + AssignmentCollection + + Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used. + + When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur. + + SPAssignmentCollection + + SPAssignmentCollection + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + For more information, type "Get-Help Publish-SPListItems -detailed". For technical information, type "Get-Help Publish-SPListItems -full". + + + + + ------------------EXAMPLE 1----------------------- + PS C:\> Get-SPList "http://server_name/pages" | Publish-SPListItems -ListItem 1 + + This example publishes item with ID 1 in the pages library located at http://server_name. + + + + ------------------EXAMPLE 2----------------------- + PS C:\> Publish-SPListItems -ListItem "http://server_name/pages/default.aspx" + + This example publishes http://server_name/pages/default.aspx. + + + + ------------------EXAMPLE 3----------------------- + PS C:\> Get-SPList "http://server_name/pages" | Publish-SPListItems + + This example publishes all items in the pages library located at http://server_name. + + + + ------------------EXAMPLE 4----------------------- + PS C:\> Get-SPWeb "http://server_name/" | Publish-SPListItems + + This example publishes all items in the web located at http://server_name. This will no recurse through sub-webs. + + + + ------------------EXAMPLE 5----------------------- + PS C:\> Get-SPSite "http://server_name/" | Publish-SPListItems + + This example publishes all items in the site located at http://server_name. This will recurse through sub-webs. + + + + ------------------EXAMPLE 6----------------------- + PS C:\> Get-SPWebApplication "http://server_name/" | Publish-SPListItems + + This example publishes all items in the web application located at http://server_name. This will recurse through all sites and sub-webs. + + + + ------------------EXAMPLE 7----------------------- + PS C:\> Get-SPFarm | Publish-SPListItems + + This example publishes all items in the farm. This will recurse through all web applications, sites, and sub-webs. + + + + + + Get-SPList + + + + Get-SPWeb + + + + Get-SPSite + + + + Get-SPWebApplication + + + + Get-SPFarm + + + + + + + Remove-SPField + Lists + + The Remove-SPField cmdlet deletes the specified field from the given list or web. + + + Copyright 2016 Falchion Consulting, LLC + > For more information on this cmdlet and others: + > http://blog.falchionconsulting.com/ + > Use of this cmdlet is at your own risk. + > Gary Lapointe assumes no liability. + + Remove + SPField + 1.0.0.0 + + + The Remove-SPField cmdlet deletes the specified field from the given list or web. + + Copyright 2016 Falchion Consulting, LLC + > For more information on this cmdlet and others: + > http://blog.falchionconsulting.com/ + > Use of this cmdlet is at your own risk. + > Gary Lapointe assumes no liability. + + + + Remove-SPField + + Web + SPWebPipeBind + + + InternalFieldName + String + + + Force + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection + + + + Remove-SPField + + List + SPListPipeBind + + + InternalFieldName + String + + + Force + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection + + + + Remove-SPField + + Field + SPField + + + Force + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection + + + + + + Web + + The web to remove the field from. + + The value must be a valid URL in the form http://server_name + + SPWebPipeBind + + SPWebPipeBind + + + + + + + + List + + The list to remove the field from. + + The value must be a valid URL in the form http://server_name + + SPListPipeBind + + SPListPipeBind + + + + + + + + Field + + The field to remove. + + The value must be a valid SPField object. + + SPField + + SPField + + + + + + + + InternalFieldName + + The internal name of the field to remove from the list. + + String + + String + + + + + + + + Force + + Used to force deletion if AllowDeletion property is false. + + SwitchParameter + + SwitchParameter + + + + + + + + AssignmentCollection + + Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used. + + When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur. + + SPAssignmentCollection + + SPAssignmentCollection + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + For more information, type "Get-Help Remove-SPField -detailed". For technical information, type "Get-Help Remove-SPField -full". + + + + + ------------------EXAMPLE 1----------------------- + PS C:\> Remove-SPField -Web "http://demo" -InternalFieldName "MyField" + + This example deletes the "MyField" field from the web "http://demo". + + + + ------------------EXAMPLE 2----------------------- + PS C:\> Remove-SPField -List "http://demo/documents" -InternalFieldName "MyField" + + This example deletes the "MyField" field from the list "http://demo/documents". + + + + ------------------EXAMPLE 3----------------------- + PS C:\> (Get-SPList "http://demo/documents").Fields.GetFieldByInternalName("MyField") | Remove-SPField -InternalFieldName "MyField" + + This example deletes the "MyField" field from the list "http://demo/documents". + + + + + + Get-SPList + + + + + + + Replace-SPListContent + Lists + + Replaces all occurances of the search string with the replacement string. Supports the use of regular expressions. Use -WhatIf to verify your replacements before executing. + + + Copyright 2016 Falchion Consulting, LLC + > For more information on this cmdlet and others: + > http://blog.falchionconsulting.com/ + > Use of this cmdlet is at your own risk. + > Gary Lapointe assumes no liability. + + Replace + SPListContent + 1.0.0.0 + + + Replaces all occurances of the search string with the replacement string. Supports the use of regular expressions. Use -WhatIf to verify your replacements before executing. + + Copyright 2016 Falchion Consulting, LLC + > For more information on this cmdlet and others: + > http://blog.falchionconsulting.com/ + > Use of this cmdlet is at your own risk. + > Gary Lapointe assumes no liability. + + + + Replace-SPListContent + + InputFile + String + + + InputFileDelimiter + String + + + List + SPListPipeBind + + + Publish + SwitchParameter + + + LogFile + String + + + FieldName + String[] + + + UseInternalFieldName + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection + + + + Replace-SPListContent + + InputFile + String + + + InputFileDelimiter + String + + + Web + SPWebPipeBind + + + Publish + SwitchParameter + + + LogFile + String + + + FieldName + String[] + + + UseInternalFieldName + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection + + + + Replace-SPListContent + + InputFile + String + + + InputFileDelimiter + String + + + Site + SPSitePipeBind + + + Publish + SwitchParameter + + + LogFile + String + + + FieldName + String[] + + + UseInternalFieldName + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection + + + + Replace-SPListContent + + InputFile + String + + + InputFileDelimiter + String + + + WebApplication + SPWebApplicationPipeBind + + + Publish + SwitchParameter + + + LogFile + String + + + FieldName + String[] + + + UseInternalFieldName + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection + + + + Replace-SPListContent + + InputFile + String + + + InputFileDelimiter + String + + + Farm + SPFarmPipeBind + + + Publish + SwitchParameter + + + LogFile + String + + + FieldName + String[] + + + UseInternalFieldName + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection + + + + Replace-SPListContent + + XmlInputFile + XmlDocumentPipeBind + + + List + SPListPipeBind + + + Publish + SwitchParameter + + + LogFile + String + + + FieldName + String[] + + + UseInternalFieldName + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection + + + + Replace-SPListContent + + XmlInputFile + XmlDocumentPipeBind + + + Web + SPWebPipeBind + + + Publish + SwitchParameter + + + LogFile + String + + + FieldName + String[] + + + UseInternalFieldName + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection + + + + Replace-SPListContent + + XmlInputFile + XmlDocumentPipeBind + + + Site + SPSitePipeBind + + + Publish + SwitchParameter + + + LogFile + String + + + FieldName + String[] + + + UseInternalFieldName + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection + + + + Replace-SPListContent + + XmlInputFile + XmlDocumentPipeBind + + + WebApplication + SPWebApplicationPipeBind + + + Publish + SwitchParameter + + + LogFile + String + + + FieldName + String[] + + + UseInternalFieldName + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection + + + + Replace-SPListContent + + XmlInputFile + XmlDocumentPipeBind + + + Farm + SPFarmPipeBind + + + Publish + SwitchParameter + + + LogFile + String + + + FieldName + String[] + + + UseInternalFieldName + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection + + + + Replace-SPListContent + + SearchString + String + + + ReplaceString + String + + + List + SPListPipeBind + + + Publish + SwitchParameter + + + LogFile + String + + + FieldName + String[] + + + UseInternalFieldName + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection + + + + Replace-SPListContent + + SearchString + String + + + ReplaceString + String + + + Web + SPWebPipeBind + + + Publish + SwitchParameter + + + LogFile + String + + + FieldName + String[] + + + UseInternalFieldName + SwitchParameter + + AssignmentCollection + SPAssignmentCollection + + + + Replace-SPListContent - TargetUrl + SearchString String - OwnerLogin + ReplaceString String - - OwnerEmail - String + + Site + SPSitePipeBind - SecondaryEmail - String + Publish + SwitchParameter - SecondaryOwnerLogin + LogFile String - ContentDatabase - SPContentDatabasePipeBind - - - SiteSubscription - SPSiteSubscriptionPipeBind + FieldName + String[] - Name - String + UseInternalFieldName + SwitchParameter - Language - UInt32 + AssignmentCollection + SPAssignmentCollection - - Description + + + Replace-SPListContent + + SearchString String - - ExportedFile + + ReplaceString String - - NoFileCompression - SwitchParameter + + WebApplication + SPWebApplicationPipeBind - SuppressAfterEvents + Publish SwitchParameter - DeleteSource - SwitchParameter + LogFile + String - CreateManagedPath - SwitchParameter + FieldName + String[] - HaltOnWarning + UseInternalFieldName SwitchParameter - HaltOnFatalError - SwitchParameter + AssignmentCollection + SPAssignmentCollection + + + + Replace-SPListContent + + SearchString + String + + + ReplaceString + String + + + Farm + SPFarmPipeBind - IncludeUserSecurity + Publish SwitchParameter - HostHeaderWebApplication - SPWebApplicationPipeBind + LogFile + String - QuotaTemplate - SPQuotaTemplatePipeBind + FieldName + String[] - AssignmentCollection - SPAssignmentCollection - - - - - - SourceWeb - - Specifies the URL or GUID of the Web to be converted. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. - - SPWebPipeBind - - SPWebPipeBind - - - - - - - - TargetUrl - - The target URL of the new site collection. Example: http://server_name/sites/newsite1 - - String - - String - - - - - - - - OwnerLogin - - The site collection's owner login in the form domain\user. - - String - - String - - - - - - - - OwnerEmail - - The owner's email in the form user@domain.com - - String - - String - - - - - - - - SecondaryEmail - - The secondary owner's email in the form user@domain.com - - String - - String - - - - - - - - SecondaryOwnerLogin - - The seconary owner's login in the form domain\user. - - String - - String - - - - - - - - ContentDatabase - - The content database to store the new site collection within. - - SPContentDatabasePipeBind - - SPContentDatabasePipeBind - - - - - - - - SiteSubscription - - - - SPSiteSubscriptionPipeBind - - SPSiteSubscriptionPipeBind - - - - - - - - Name - - The name or title of the new site collection. - - String - - String - - - - - - - - Language - - - - UInt32 - - UInt32 - - - - - - - - Description - - - - String - - String - - - - - - - - ExportedFile + UseInternalFieldName + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection + + + + + + InputFile - If an export of the source web was already performed provide the path to the exported file to prevent another export from occuring. + A file with search and replace strings, seperated by a "|" character (each search and replace string should be on a separate line). - String + String String @@ -14984,301 +15881,148 @@ PS C:\> Clear-SPHttpContext - - NoFileCompression - - - - SwitchParameter - - SwitchParameter - - - - - - - - SuppressAfterEvents - - - - SwitchParameter - - SwitchParameter - - - - - - - - DeleteSource + + InputFileDelimiter - Delete the source web after the conversion completes. + The delimiter used within the input file specified by the -InputFile parameter (the default is "|" if not specified). - SwitchParameter + String - SwitchParameter + String - - CreateManagedPath + + XmlInputFile - Create a managed path for the new site collection. + An XML file or XmlDocument containing the replacements to make: <Replacements><Replacement><SearchString>string</SearchString><ReplaceString>string</ReplaceString></Replacement></Replacements> - SwitchParameter + XmlDocumentPipeBind - SwitchParameter + XmlDocumentPipeBind - - HaltOnWarning + + SearchString - Halt the export or import operation on warning. + A regular expression search string. - SwitchParameter + String - SwitchParameter + String - - HaltOnFatalError + + ReplaceString - Halt the export or import operation on error. + The string to replace the match with. - SwitchParameter + String - SwitchParameter + String - - IncludeUserSecurity + + List + The list whose content will be replaced. + The value must be a valid URL in the form http://server_name - SwitchParameter + SPListPipeBind - SwitchParameter + SPListPipeBind - - HostHeaderWebApplication + + Web + Specifies the URL or GUID of the Web containing the lists whose content will be replaced. + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. - SPWebApplicationPipeBind + SPWebPipeBind - SPWebApplicationPipeBind + SPWebPipeBind - - QuotaTemplate + + Site - The quota template to assign to the new site collection. + The site containing the lists whose content will be replaced. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - SPQuotaTemplatePipeBind + SPSitePipeBind - SPQuotaTemplatePipeBind + SPSitePipeBind - - AssignmentCollection + + WebApplication - Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used. + The web application containing the lists whose content will be replaced. - When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur. + The type must be a valid URL, in the form http://server_name; or an instance of a valid SPWebApplication object. - SPAssignmentCollection - - SPAssignmentCollection - - - - - - - - - - - - - - - - - - - - + SPWebApplicationPipeBind - + SPWebApplicationPipeBind - - - - - - - - - For more information, type "Get-Help ConvertTo-SPSite -detailed". For technical information, type "Get-Help ConvertTo-SPSite -full". - - - - - ------------------EXAMPLE------------------ - PS C:\> Get-SPWeb http://portal/subweb1 | ConvertTo-SPSite -TargetUrl "http://portal/sites/newsitecoll" -OwnerLogin domain\user - - This example converts the web located at http://portal/subweb1 to a site collection located at http://portal/sites/newsitecoll - - - - - - Repair-SPMigratedSite - - - - Export-SPWeb2 - - - - Import-SPWeb2 - - - - Export-SPWeb - - - - Import-SPWeb - - - - - - - Export-SPNavigation - Site Collections - - Export the navigation settings of a publishing site. - - - Copyright 2016 Falchion Consulting, LLC - > For more information on this cmdlet and others: - > http://blog.falchionconsulting.com/ - > Use of this cmdlet is at your own risk. - > Gary Lapointe assumes no liability. - - Export - SPNavigation - 1.0.0.0 - - - Export the navigation settings of a publishing site. - - Copyright 2016 Falchion Consulting, LLC - > For more information on this cmdlet and others: - > http://blog.falchionconsulting.com/ - > Use of this cmdlet is at your own risk. - > Gary Lapointe assumes no liability. - - - - Export-SPNavigation - - Site - SPSitePipeBind - - - OutputFile - String - - - AssignmentCollection - SPAssignmentCollection - - - - Export-SPNavigation - - Web - SPWebPipeBind - - - IncludeChildren - SwitchParameter - - - OutputFile - String - - - AssignmentCollection - SPAssignmentCollection - - - - + + - Site + Farm - Specifies the URL or GUID of the Site whose navigation settings will be exported. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. + Provide the SPFarm object to replace matching content in all lists throughout the farm. - SPSitePipeBind + SPFarmPipeBind - SPSitePipeBind + SPFarmPipeBind - - Web + + Publish - Specifies the URL or GUID of the Web whose navigation settings will be exported. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. + Publish or check-in the item after updating the contents. - SPWebPipeBind + SwitchParameter - SPWebPipeBind + SwitchParameter @@ -15286,9 +16030,9 @@ PS C:\> Clear-SPHttpContext - OutputFile + LogFile - The path to the file to save the navigation settings to. + The log file to store all change records to. String @@ -15299,10 +16043,24 @@ PS C:\> Clear-SPHttpContext + + FieldName + + The name of the field to update. + + String[] + + String[] + + + + + + - IncludeChildren + UseInternalFieldName - Include all child webs of the specified Web. + If specified then the internal name of the field will be used; otherwise the display name will be used. SwitchParameter @@ -15357,45 +16115,47 @@ PS C:\> Clear-SPHttpContext - For more information, type "Get-Help Export-SPNavigation -detailed". For technical information, type "Get-Help Export-SPNavigation -full". + For more information, type "Get-Help Replace-SPListContent -detailed". For technical information, type "Get-Help Replace-SPListContent -full". - ------------------EXAMPLE 1----------------------- - PS C:\> Get-SPWeb "http://server_name/subsite" | Export-SPNavigation -OutputFile "c:\nav.xml" - - This example exports the navigation settings for http://server_name/subsite and saves to c:\nav.xml. - - - - ------------------EXAMPLE 2----------------------- - PS C:\> Get-SPWeb "http://server_name/subsite" | Export-SPNavigation -OutputFile "c:\nav.xml" -IncludeChildren - - This example exports the navigation settings for http://server_name/subsite and all its sub-sites and saves to c:\nav.xml. - - - - ------------------EXAMPLE 3----------------------- - PS C:\> Get-SPSite "http://server_name/" | Export-SPNavigation -OutputFile "c:\nav.xml" + ------------------EXAMPLE------------------ + PS C:\> Get-SPWeb http://portal | Replace-SPListContent -SearchString "(?i:old product name)" -ReplaceString "New Product Name" -Publish - This example exports the navigation settings from the site collection and saves to c:\nav.xml. + This example does a case-insensitive search for "old product name" and replaces with "New Product Name" and publishes the changes after completion. - Import-SPNavigation + Get-SPList + + + + Get-SPFarm + + + + Get-SPWebApplication + + + + Get-SPSite + + + + Get-SPWeb - Get-SPAvailableWebTemplates - Site Collections + Set-SPListAudienceTargeting + Lists - + Sets audience targeting for the specified list. Copyright 2016 Falchion Consulting, LLC @@ -15404,12 +16164,12 @@ PS C:\> Clear-SPHttpContext > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Get - SPAvailableWebTemplates + Set + SPListAudienceTargeting 1.0.0.0 - + Sets audience targeting for the specified list. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -15419,11 +16179,19 @@ PS C:\> Clear-SPHttpContext - Get-SPAvailableWebTemplates + Set-SPListAudienceTargeting + Identity + SPListPipeBind + + Web SPWebPipeBind + + Enabled + Boolean + AssignmentCollection SPAssignmentCollection @@ -15432,13 +16200,25 @@ PS C:\> Clear-SPHttpContext + Identity + + The list to update. + + SPListPipeBind + + SPListPipeBind + + + + + + + Web - Specifies the URL or GUID of the Web for which the available site templates will be returned. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. + The web containing the list. This parameter is required if the Identity parameter is a relative URL to a list. - SPWebPipeBind + SPWebPipeBind SPWebPipeBind @@ -15447,6 +16227,20 @@ PS C:\> Clear-SPHttpContext + + Enabled + + Enable or disable audience targeting. Valid values are $true or $false. + + Boolean + + Boolean + + + + + + AssignmentCollection @@ -15491,19 +16285,23 @@ PS C:\> Clear-SPHttpContext - For more information, type "Get-Help Get-SPAvailableWebTemplates -detailed". For technical information, type "Get-Help Get-SPAvailableWebTemplates -full". + For more information, type "Get-Help Set-SPListAudienceTargeting -detailed". For technical information, type "Get-Help Set-SPListAudienceTargeting -full". ------------------EXAMPLE------------------ - PS C:\> Get-SPWeb http://portal | Get-SPAvailableWebTemplates + PS C:\> Get-SPList "http://server_name/lists/mylist" | Set-SPListAudienceTargeting -Enabled $true - This example returns back all available site templates for http://portal. + This example enables audience targeting on the mylist list. + + Get-SPList + + Get-SPWeb @@ -15512,10 +16310,10 @@ PS C:\> Clear-SPHttpContext - Import-SPNavigation - Site Collections + Set-SPListOverlay + Lists - Export the security settings and permissions from a list. + Sets calendar overlays for the given list. Copyright 2016 Falchion Consulting, LLC @@ -15524,12 +16322,12 @@ PS C:\> Clear-SPHttpContext > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Import - SPNavigation + Set + SPListOverlay 1.0.0.0 - Export the security settings and permissions from a list. + Sets calendar overlays for the given list. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -15539,26 +16337,38 @@ PS C:\> Clear-SPHttpContext - Import-SPNavigation - - Site - SPSitePipeBind - + Set-SPListOverlay - InputFile + Color + LightYellow | LightGreen | Orange | LightTurquise | Pink | LightBlue | IceBlue1 | IceBlue2 | White + + + OverlayList + SPListPipeBind + + + OverlayTitle String - DeleteExistingGlobal - SwitchParameter + OverlayDescription + String + + + TargetList + SPListPipeBind - DeleteExistingCurrent + ViewName + String + + + DoNotAlwaysShow SwitchParameter - BackupFile - String + ClearExisting + SwitchParameter AssignmentCollection @@ -15566,31 +16376,70 @@ PS C:\> Clear-SPHttpContext - Import-SPNavigation - - Web - SPWebPipeBind + Set-SPListOverlay + + Color + LightYellow | LightGreen | Orange | LightTurquise | Pink | LightBlue | IceBlue1 | IceBlue2 | White + + + OverlayTitle + String - IncludeChildren - SwitchParameter + OverlayDescription + String - InputFile + OwaUrl + String + + + WebServiceUrl + String + + + TargetList + SPListPipeBind + + + ViewName String - DeleteExistingGlobal + DoNotAlwaysShow SwitchParameter - DeleteExistingCurrent + ClearExisting SwitchParameter - BackupFile + AssignmentCollection + SPAssignmentCollection + + + + Set-SPListOverlay + + OverlayLists + SPListPipeBind[] + + + TargetList + SPListPipeBind + + + ViewName String + + DoNotAlwaysShow + SwitchParameter + + + ClearExisting + SwitchParameter + AssignmentCollection SPAssignmentCollection @@ -15598,44 +16447,40 @@ PS C:\> Clear-SPHttpContext - - Site + + Color - Specifies the URL or GUID of the Site whose navigation settings will be updated. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. + The color to use for the overlay calendar. - SPSitePipeBind + CalendarOverlayColor - SPSitePipeBind + CalendarOverlayColor - - Web + + TargetList - Specifies the URL or GUID of the Web whose navigation settings will be updated. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. + The calendar list to add the overlays to. - SPWebPipeBind + SPListPipeBind - SPWebPipeBind + SPListPipeBind - - InputFile + + ViewName - The path to the file containing the navigation settings to import. + The name of the view to add the overlays to. If not specified the default view will be used. - String + String String @@ -15644,14 +16489,42 @@ PS C:\> Clear-SPHttpContext + + OverlayList + + The calendar list to add as an overlay. + + SPListPipeBind + + SPListPipeBind + + + + + + + + OverlayLists + + The calendar lists to add as an overlay. + + SPListPipeBind[] + + SPListPipeBind[] + + + + + + - IncludeChildren + OverlayTitle - Include all child webs of the specified Web. + The title to give the overlay calendar when viewed in the target calendar. - SwitchParameter + String - SwitchParameter + String @@ -15659,13 +16532,41 @@ PS C:\> Clear-SPHttpContext - DeleteExistingGlobal + OverlayDescription - Delete the existing glboal navigation settings. + The description to give the overlay calendar when viewed in the target calendar. - SwitchParameter + String - SwitchParameter + String + + + + + + + + OwaUrl + + Outlook Web Access URL. + + String + + String + + + + + + + + WebServiceUrl + + Exchange Web Service URL. + + String + + String @@ -15673,9 +16574,9 @@ PS C:\> Clear-SPHttpContext - DeleteExistingCurrent + DoNotAlwaysShow - Delete the existing current navigation settings. + Don't always show the calendar overlay. SwitchParameter @@ -15687,13 +16588,13 @@ PS C:\> Clear-SPHttpContext - BackupFile + ClearExisting - The path to the backup file to save the navigation settings to prior to importing. + Clear existing overlays. If not specified then all overlays will be appended to the list of existing overlays (up until 10 - anything after 10 will be ignored) - String + SwitchParameter - String + SwitchParameter @@ -15744,45 +16645,31 @@ PS C:\> Clear-SPHttpContext - For more information, type "Get-Help Import-SPNavigation -detailed". For technical information, type "Get-Help Import-SPNavigation -full". + For more information, type "Get-Help Set-SPListOverlay -detailed". For technical information, type "Get-Help Set-SPListOverlay -full". - ------------------EXAMPLE 1----------------------- - PS C:\> Get-SPWeb "http://server_name/subsite" | Import-SPNavigation -InputFile "c:\nav.xml" -IncludeChildren - - This example imports the navigation settings from the c:\nav.xml to http://server_name/subsite and all of its sub-sites. - - - - ------------------EXAMPLE 2----------------------- - PS C:\> Get-SPSite "http://server_name/" | Import-SPNavigation -InputFile "c:\nav.xml" - - This example imports the navigation settings from the c:\nav.xml to the specified site collection. - - - - ------------------EXAMPLE 3----------------------- - PS C:\> Get-SPWeb "http://server_name/subsite" | Import-SPNavigation -InputFile "c:\nav.xml" + ------------------EXAMPLE------------------ + PS C:\> Get-SPList "http://server_name/lists/MyCalendar" | Set-SPListOverlay -TargetList "http://server_name/lists/MyOverlayCalendar" -Color "Pink" -ClearExisting - This example imports the navigation settings from the c:\nav.xml to http://server_name/subsite. + This example adds the MyOverlayCalendar calendar as an overlay to the MyCalendar list. - Export-SPNavigation + Get-SPList - Move-SPWeb - Site Collections + Add-SPGroupPermission + Groups - Move an SPWeb from one URL to another. + Adds a permission to a SharePoint Group. Copyright 2016 Falchion Consulting, LLC @@ -15791,151 +16678,81 @@ PS C:\> Clear-SPHttpContext > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Move - SPWeb + Add + SPGroupPermission 1.0.0.0 - Move an SPWeb from one URL to another. + Adds a permission to a SharePoint Group. Copyright 2016 Falchion Consulting, LLC - > For more information on this cmdlet and others: - > http://blog.falchionconsulting.com/ - > Use of this cmdlet is at your own risk. - > Gary Lapointe assumes no liability. - - - - Move-SPWeb - - UrlName - String - - - - - - Identity - - Specifies the URL or GUID of the existing Web to move. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. - - SPWebPipeBind - - SPWebPipeBind - - - - - - - - Parent - - Specifies the URL of the parent Web to move the Web to. This will not change the URL name of the current Web. - - SPWebPipeBind - - SPWebPipeBind - - - - - - - - UrlName - - Specifies the URL name of the Web. If not specified then the current URL name is used. For example, if moving http://portal/foo/bar, "bar" is the URL name of the Web. - - String - - String - - - - - - - - HaltOnWarning - - When moving to a new Site Collection, halts the export or import of the Web if an warning occurs. - - SwitchParameter - - SwitchParameter - - - - - - - - HaltOnFatalError - - When moving to a new Site Collection, halts the export or import of the Web if an error occurs. - - SwitchParameter - - SwitchParameter - - - - - - - - IncludeUserSecurity - - When moving to a new Site Collection, includes user security. - - SwitchParameter - - SwitchParameter - - - - - - - - SuppressAfterEvents + > For more information on this cmdlet and others: + > http://blog.falchionconsulting.com/ + > Use of this cmdlet is at your own risk. + > Gary Lapointe assumes no liability. + + + + Add-SPGroupPermission + + Web + SPWebPipeBind + + + Identity + SPGroupPipeBind + + + Permission + String[] + + + AssignmentCollection + SPAssignmentCollection + + + + + + Web - When moving to a new Site Collection, disable the firing of "After" events when creating or modifying list items. + Specifies the URL or GUID of the Web containing the group to be created. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. - SwitchParameter + SPWebPipeBind - SwitchParameter + SPWebPipeBind - - RetainObjectIdentity + + Identity - When moving to a new Site Collection, retains the identity of all (lists and sub-webs). + Specifies the Name or ID of the Group to add the permission to. + + The type must be a valid integer, or a valid group name (for example, Approvers); or an instance of a valid SPGroup object. If not an SPGroup object then the -Web parameter is required. - SwitchParameter + SPGroupPipeBind - SwitchParameter + SPGroupPipeBind - - TempPath + + Permission - When moving to a new Site Collection, the -TempPath parameter specifies where the export files will be stored. + The permissions to assign to the group - String + String[] - String + String[] @@ -15986,69 +16803,35 @@ PS C:\> Clear-SPHttpContext - For more information, type "Get-Help Move-SPWeb -detailed". For technical information, type "Get-Help Move-SPWeb -full". + For more information, type "Get-Help Add-SPGroupPermission -detailed". For technical information, type "Get-Help Add-SPGroupPermission -full". - ------------------EXAMPLE 1----------------------- - PS C:\> Move-SPWeb -Identity "http://portal/foo/bar" -Parent "http://portal/" - - This example moves the Web located at http://portal/foo/bar to http://portal/bar. - - - - ------------------EXAMPLE 2----------------------- - PS C:\> Move-SPWeb -Identity "http://portal/foo/bar" -Parent "http://portal/" -UrlName "foobar" - - This example moves the Web located at http://portal/foo/bar to http://portal/foobar. - - - - ------------------EXAMPLE 3----------------------- - PS C:\> Move-SPWeb -Identity "http://portal/foo/bar" -UrlName "foobar" + ------------------EXAMPLE------------------ + PS C:\> Get-SPGroup -Web "http://demo" -Name "My Group" | Add-SPGroupPermission -Permission "Approve","Contribute" - This example moves the Web located at http://portal/foo/bar to http://portal/foo/foobar. + This example adds the Approve and Contribute permissions to the "My Group" group in the http://demo site. - Remove-SPList - - - - Copy-SPList - - - - Copy-SPListSecurity - - - - Export-SPListSecurity - - - - Get-SPWeb - - - - Start-SPAssignment + Get-SPGroup - Stop-SPAssignment + New-SPGroup - Repair-SPMigratedSite - Site Collections + Get-SPGroup + Groups - Repair a site collection that was created using the export of a web. This cmdlet is the equivalent to the SharePoint 2010 Repair-SPSite cmdlet - it was renamed because SharePoint 2013 introduced a Repair-SPSite cmdlet which does different things. + Retrieve a SharePoint Group from a Site. Copyright 2016 Falchion Consulting, LLC @@ -16057,12 +16840,12 @@ PS C:\> Clear-SPHttpContext > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Repair - SPMigratedSite + Get + SPGroup 1.0.0.0 - Repair a site collection that was created using the export of a web. This cmdlet is the equivalent to the SharePoint 2010 Repair-SPSite cmdlet - it was renamed because SharePoint 2013 introduced a Repair-SPSite cmdlet which does different things. + Retrieve a SharePoint Group from a Site. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -16072,14 +16855,14 @@ PS C:\> Clear-SPHttpContext - Repair-SPMigratedSite - - TargetSite - SPSitePipeBind + Get-SPGroup + + Web + SPWebPipeBind - - SourceSite - SPSitePipeBind + + Identity + SPGroupPipeBind[] AssignmentCollection @@ -16088,32 +16871,32 @@ PS C:\> Clear-SPHttpContext - - TargetSite + + Web - The site to repair. + Specifies the URL or GUID of the Web containing the group to be retrieved. - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. - SPSitePipeBind + SPWebPipeBind - SPSitePipeBind + SPWebPipeBind - - SourceSite + + Identity - The model or source site collection to use as the basis for the repairs. + Specifies the Name or ID of the Group to be retrieved. - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. + The type must be a valid integer, or a valid group name (for example, Approvers); or an instance of a valid SPGroup object. If not an SPGroup object then the -Web parameter is required. - SPSitePipeBind + SPGroupPipeBind[] - SPSitePipeBind + SPGroupPipeBind[] @@ -16164,47 +16947,35 @@ PS C:\> Clear-SPHttpContext - For more information, type "Get-Help Repair-SPMigratedSite -detailed". For technical information, type "Get-Help Repair-SPMigratedSite -full". + For more information, type "Get-Help Get-SPGroup -detailed". For technical information, type "Get-Help Get-SPGroup -full". ------------------EXAMPLE------------------ - PS C:\> Get-SPSite http://portal/sites/newsitecoll | Repair-SPMigratedSite -SourceSite "http://portal/" + PS C:\> $group = Get-SPGroup -Web "http://demo" -Identity "Approvers" - This example repairs the site collection located at http://portal/sites/newsitecoll using the site collection http://portal as the model site for the repairs. + This example retrieves the Approvers group from the http://demo site. - ConvertTo-SPSite - - - - Export-SPWeb2 - - - - Import-SPWeb2 - - - - Export-SPWeb + New-SPGroup - Import-SPWeb + Remove-SPGroup - Set-SPHttpContext - Site Collections + New-SPGroup + Groups - Sets the HTTP Context for a given Site and returns a new SPWeb object associated with the new context. When done with a given Site be sure to run Clear-SPHttpContext in order to remove the context. + Creates a SharePoint Group in a Site. Copyright 2016 Falchion Consulting, LLC @@ -16213,18 +16984,12 @@ PS C:\> Clear-SPHttpContext > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Set - SPHttpContext + New + SPGroup 1.0.0.0 - Many native SharePoint objects, such as Web Parts, require a valid HTTP Context in order for certain properties to be available. When working within PowerShell there is no HTTP Context so it is necessary to create one. This is accomplished by setting the System.Web.HttpContext.Current static property to a valid object instantiated using the provided SPWeb object. Once created there are SharePoint specific properties that must be set on this object. This cmdlet sets the following (where $context is the HttpContext object): - 1. $context.Items["FormDigestValidated"] = true; - 2. $context.User = System.Threading.Thread.CurrentPrincipal; - 3. $context.Items["Microsoft.SharePoint.SPServiceContext"] = Microsoft.SharePoint.SPServiceContext.GetContext($web.Site); - 4. Microsoft.SharePoint.Web.Controls.SPControl.SetContextSite($context, $web.Site); - 5. Microsoft.SharePoint.Web.Controls.SPControl.SetContextWeb($context, $web); - When you are finished working with a given Site run Clear-SPHttpContext to set the HttpContext object back to null. + Creates a SharePoint Group in a Site. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -16234,11 +16999,27 @@ PS C:\> Clear-SPHttpContext - Set-SPHttpContext + New-SPGroup - Identity + Web SPWebPipeBind + + Name + String + + + Owner + SPUserPipeBind + + + DefaultUser + SPUserPipeBind + + + Description + String + AssignmentCollection SPAssignmentCollection @@ -16246,16 +17027,72 @@ PS C:\> Clear-SPHttpContext - - Identity + + Web + + Specifies the URL or GUID of the Web containing the group to be created. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. + + SPWebPipeBind + + SPWebPipeBind + + + + + + + + Name + + Specifies the name of the group to create. + + String + + String + + + + + + + + Owner + + Specifies the owner of the new group. + + SPUserPipeBind + + SPUserPipeBind + + + + + + + + DefaultUser - The web to set the HTTP Context to. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. + Specifies the default user to add to the new group. If not specified then the Owner will be used. - SPWebPipeBind + SPUserPipeBind - SPWebPipeBind + SPUserPipeBind + + + + + + + + Description + + Specifies the description of the group to create. + + String + + String @@ -16306,37 +17143,35 @@ PS C:\> Clear-SPHttpContext - For more information, type "Get-Help Set-SPHttpContext -detailed". For technical information, type "Get-Help Set-SPHttpContext -full". + For more information, type "Get-Help New-SPGroup -detailed". For technical information, type "Get-Help New-SPGroup -full". ------------------EXAMPLE------------------ - PS C:\> $web = Set-SPHttpContext "http://demo/" -PS C:\> Write-Host "do something with the web" -PS C:\> Clear-SPHttpContext + PS C:\> $group = New-SPGroup -Web "http://demo" -Name "My Group" -Owner "domain\user" -Member "domain\user" - This example sets the HttpContext to http://demo. + This example creates the "My Group" group in the http://demo site. - Clear-SPHttpContext + Get-SPGroup - Get-SPWeb + Remove-SPGroup - Reset-SPTheme - Themes + Remove-SPGroup + Groups - Resets a theme by applying all user specified theme configuration settings to the original source files. This is particularly helpful when the original source files have changed to a Feature upgrade. + Removes a SharePoint Group from a Site. Copyright 2016 Falchion Consulting, LLC @@ -16345,12 +17180,12 @@ PS C:\> Clear-SPHttpContext > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Reset - SPTheme + Remove + SPGroup 1.0.0.0 - Resets a theme by applying all user specified theme configuration settings to the original source files. This is particularly helpful when the original source files have changed to a Feature upgrade. + Removes a SharePoint Group from a Site. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -16360,37 +17195,30 @@ PS C:\> Clear-SPHttpContext - Reset-SPTheme - + Remove-SPGroup + Web SPWebPipeBind - - Site - SPSitePipeBind - - - - Reset-SPTheme - - Site - SPSitePipeBind + + Identity + SPGroupPipeBind - - Site - SPSitePipeBind + + AssignmentCollection + SPAssignmentCollection - + Web - Specifies the URL or GUID of the Web containing the theme to reset. + Specifies the URL or GUID of the Web containing the group to be removed. The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. - SPWebPipeBind + SPWebPipeBind SPWebPipeBind @@ -16399,30 +17227,16 @@ PS C:\> Clear-SPHttpContext - - Site + + Identity - The site containing the theme(s) to reset. If specified, all webs that have a unique theme will be reset. + Specifies the Name or ID of the Group to be removed. - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - - SPSitePipeBind - - SPSitePipeBind - - - - - - - - SetSubWebsToInherit - - If specified, all child webs will be reset to inherit the theme of the specified web or root web. + The type must be a valid integer, or a valid group name (for example, Approvers); or an instance of a valid SPGroup object. If not an SPGroup object then the -Web parameter is required. - SwitchParameter + SPGroupPipeBind - SwitchParameter + SPGroupPipeBind @@ -16473,42 +17287,35 @@ PS C:\> Clear-SPHttpContext - For more information, type "Get-Help Reset-SPTheme -detailed". For technical information, type "Get-Help Reset-SPTheme -full". + For more information, type "Get-Help Remove-SPGroup -detailed". For technical information, type "Get-Help Remove-SPGroup -full". - ------------------EXAMPLE 1----------------------- - PS C:\> Get-SPWeb http://server_name/sub-web | Reset-SPTheme - - This example resets the theme for the web http://server_name/sub-web. - - - - ------------------EXAMPLE 2----------------------- - PS C:\> Get-SPSite http://server_name | Reset-SPTheme -SetSubWebsToInherit + ------------------EXAMPLE------------------ + PS C:\> Remove-SPGroup -Web "http://demo" -Identity "Approvers" - This example resets the theme for the site collection http://server_name and resets all child webs to inherit from the root web. + This example removes the Approvers group from the http://demo site. - Get-SPWeb + New-SPGroup - Get-SPSite + Get-SPGroup - Get-SPRunningTimerJobs - Timer Jobs + Remove-SPGroupPermission + Groups - + Removes a permission from a SharePoint Group. Copyright 2016 Falchion Consulting, LLC @@ -16517,12 +17324,12 @@ PS C:\> Clear-SPHttpContext > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Get - SPRunningTimerJobs + Remove + SPGroupPermission 1.0.0.0 - + Removes a permission from a SharePoint Group. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -16532,10 +17339,18 @@ PS C:\> Clear-SPHttpContext - Get-SPRunningTimerJobs + Remove-SPGroupPermission + Web + SPWebPipeBind + + Identity - SPTimerJobPipeBind + SPGroupPipeBind + + + Permission + String[] AssignmentCollection @@ -16545,13 +17360,45 @@ PS C:\> Clear-SPHttpContext + Web + + Specifies the URL or GUID of the Web containing the group to be created. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. + + SPWebPipeBind + + SPWebPipeBind + + + + + + + Identity + Specifies the Name or ID of the Group to add the permission to. + The type must be a valid integer, or a valid group name (for example, Approvers); or an instance of a valid SPGroup object. If not an SPGroup object then the -Web parameter is required. - SPTimerJobPipeBind + SPGroupPipeBind - SPTimerJobPipeBind + SPGroupPipeBind + + + + + + + + Permission + + The permissions to assign to the group + + String[] + + String[] @@ -16602,38 +17449,35 @@ PS C:\> Clear-SPHttpContext - For more information, type "Get-Help Get-SPRunningTimerJobs -detailed". For technical information, type "Get-Help Get-SPRunningTimerJobs -full". + For more information, type "Get-Help Remove-SPGroupPermission -detailed". For technical information, type "Get-Help Remove-SPGroupPermission -full". - ------------------EXAMPLE 1----------------------- - PS C:\> Get-SPRunningTimerJobs | ? {((Get-Date).ToUniversalTime() - $_.StartTime).TotalHours -gt 4} - - This example returns back all running timer jobs and filters to the results to show only those that have been running for more than four hours. - - - - ------------------EXAMPLE 2----------------------- - PS C:\> Get-SPTimerJob | ?{$_.Name -like {"*User Profile*"} | Get-SPRunningTimerJobs + ------------------EXAMPLE------------------ + PS C:\> Remove-SPGroupPermission -Web "http://demo" -Group "My Group" -Permission "Approve","Contribute" - This example returns back all running user profile timer jobs. + This example removes the Approve and Contribute permissions from the My Group group from the http://demo site. - Get-SPTimerJob + New-SPGroup + + + + Get-SPGroup - Start-SPAdminJob2 - Timer Jobs + Disable-SPFeature2 + Features - Immediately starts any waiting administrative job on the local computer and triggers the jobs to run on all other servers in the farm if applicable. + Deactivates a feature or features at a given scope. Copyright 2016 Falchion Consulting, LLC @@ -16642,16 +17486,12 @@ PS C:\> Clear-SPHttpContext > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Start - SPAdminJob2 + Disable + SPFeature2 1.0.0.0 - Use the Start-SPAdminJob2 cmdlet to execute all administrative timer jobs immediately rather than waiting for the timer job to run. - - When the process account for the SharePoint 2010 Administration service (SPAdminV4)) is disabled (necessary in some installations for security reasons), the Start-SPAdminJob2 cmdlet triggers all administrative tasks to run immediately on all servers to allow provisioning and other administrative tasks that SPAdmin ordinarily handles. - - When you run this cmdlet in person (not in script), use the Verbose parameter to see the individual administrative operations that are run. + Deactivates a feature or features at a given scope. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -16661,11 +17501,31 @@ PS C:\> Clear-SPHttpContext - Start-SPAdminJob2 + Disable-SPFeature2 - Local + PassThru + SwitchParameter + + + Identity + SPFeatureDefinitionPipeBind + + + Url + String + + + Force SwitchParameter + + IgnoreNonActive + SwitchParameter + + + DeactivateAtScope + Farm | WebApplication | Site | Web | Feature + AssignmentCollection SPAssignmentCollection @@ -16674,9 +17534,69 @@ PS C:\> Clear-SPHttpContext - Local + PassThru + + If provided, the cmdlet outputs the Feature definition object after disabling. + + SwitchParameter + + SwitchParameter + + + + + + + + Identity + + Specifies the name of the Feature or GUID to uninstall. + + The type must be the name of the Feature folder located in the 14\Template\Features folder or GUID, in the form 21d186e1-7036-4092-a825-0eb6709e9281. + + SPFeatureDefinitionPipeBind + + SPFeatureDefinitionPipeBind + + + + + + + + Url - Providing this parameter causes the cmdlet to behave just like the built-in Start-SPAdminJob cmdlet. + Specifies the URL of the Web application, site collection, or Web site for which the Feature is being deactivated. + + The type must be a valid URL; for example, http://server_name. + + String + + String + + + + + + + + Force + + Forces the deactivation of a Feature. This causes any custom code associated with the Feature to rerun. + + SwitchParameter + + SwitchParameter + + + + + + + + IgnoreNonActive + + Ignore scopes where the feature is not already activated. SwitchParameter @@ -16687,6 +17607,20 @@ PS C:\> Clear-SPHttpContext + + DeactivateAtScope + + Deactivate features at the specified scope only. Valid values are Farm, WebApplication, Site, Web, and Feature + + Nullable`1 + + Nullable`1 + + + + + + AssignmentCollection @@ -16731,31 +17665,43 @@ PS C:\> Clear-SPHttpContext - For more information, type "Get-Help Start-SPAdminJob2 -detailed". For technical information, type "Get-Help Start-SPAdminJob2 -full". + For more information, type "Get-Help Disable-SPFeature2 -detailed". For technical information, type "Get-Help Disable-SPFeature2 -full". ------------------EXAMPLE------------------ - PS C:\> Start-SPAdminJob2 -Verbose + PS C:\> Get-SPFeature MyFeature | Disable-SPFeature2 -Url "http://server_name" -IgnoreNonActive -DeactivateAtScope WebApplication - This example runs all waiting administrative jobs on all servers and shows verbose output to the administrator. + This example deactivates all occurences of MyFeature in the http://server_name web application. - Start-SPAdminJob + Enable-SPFeature2 + + + + Disable-SPFeature + + + + Enable-SPFeature + + + + Get-SPFeature - Get-SPUserProfileChanges - User Profiles + Enable-SPFeature2 + Features - Retrieves user profile property changes for the given interval and context. + Activates a feature or features at a given scope. Copyright 2016 Falchion Consulting, LLC @@ -16764,12 +17710,12 @@ PS C:\> Clear-SPHttpContext > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Get - SPUserProfileChanges + Enable + SPFeature2 1.0.0.0 - Retrieves user profile property changes for the given interval and context. + Activates a feature or features at a given scope. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -16779,57 +17725,62 @@ PS C:\> Clear-SPHttpContext - Get-SPUserProfileChanges + Enable-SPFeature2 + + PassThru + SwitchParameter + - UserProfileServiceApplication - SPServiceApplicationPipeBind + Identity + SPFeatureDefinitionPipeBind - SiteSubscription - SPSiteSubscriptionPipeBind + Url + String - - ContextSite - SPSitePipeBind + + Force + SwitchParameter - - - Get-SPUserProfileChanges - - ContextSite - SPSitePipeBind + + IgnoreNonActive + SwitchParameter - - ContextSite - SPSitePipeBind + + ActivateAtScope + Farm | WebApplication | Site | Web | Feature + + + AssignmentCollection + SPAssignmentCollection - Interval + PassThru - The interval, in minutes, to retrieve changes from. + If provided, the cmdlet outputs the Feature definition object after enabling. - Int32 + SwitchParameter - Int32 + SwitchParameter - - UserProfileServiceApplication + + Identity - Specifies the service application that contains the user profile manager to retrieve. + Specifies the name of the Feature or GUID to activate. - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a service application (for example, ServiceApp1); or an instance of a valid SPServiceApplication object. + The type must be the name of the Feature folder located in the 14\Template\Features folder or GUID, in the form 21d186e1-7036-4092-a825-0eb6709e9281. - SPServiceApplicationPipeBind + SPFeatureDefinitionPipeBind - SPServiceApplicationPipeBind + SPFeatureDefinitionPipeBind @@ -16837,31 +17788,29 @@ PS C:\> Clear-SPHttpContext - SiteSubscription + Url - Specifies the site subscription containing the user profile manager to retrieve. + Specifies the URL of the Web application, Site Collection, or Site for which the Feature is being activated. - The type must be a valid URL, in the form http://server_name; a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a site subscription (for example, SiteSubscription1); or an instance of a valid SiteSubscription object. + The type must be a valid URL; for example, http://server_name. - SPSiteSubscriptionPipeBind + String - SPSiteSubscriptionPipeBind + String - - ContextSite + + Force - Specifies the URL or GUID of the Site to use for retrieving the service context. Use this parameter when the service application is not associated with the default proxy group or more than one custom proxy groups. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. + Forces the activation of a Feature. This causes any custom code associated with the Feature to rerun. - SPSitePipeBind + SwitchParameter - SPSitePipeBind + SwitchParameter @@ -16869,9 +17818,9 @@ PS C:\> Clear-SPHttpContext - IncludeSingleValuePropertyChanges + IgnoreNonActive - Include single-value property changes. + Ignore scopes where the feature is not already activated. SwitchParameter @@ -16883,93 +17832,197 @@ PS C:\> Clear-SPHttpContext - IncludeMultiValuePropertyChanges + ActivateAtScope - Include multi-value property changes. + Activate features at the specified scope only. Valid values are Farm, WebApplication, Site, Web, and Feature - SwitchParameter + Nullable`1 - SwitchParameter + Nullable`1 - - IncludeAnniversaryChanges + + AssignmentCollection - Include anniversary property changes. + Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used. + + When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur. - SwitchParameter + SPAssignmentCollection - SwitchParameter + SPAssignmentCollection - - IncludeColleagueChanges - - Include colleague property changes. - - SwitchParameter + + + - SwitchParameter + - - - IncludeOrganizationMembershipChanges - - Include organization membership property changes. - - SwitchParameter + + + + - SwitchParameter + - - - IncludeDistributionListMembershipChanges + + + + + + + + For more information, type "Get-Help Enable-SPFeature2 -detailed". For technical information, type "Get-Help Enable-SPFeature2 -full". + + + + + ------------------EXAMPLE 1----------------------- + PS C:\> Get-SPFeature MyFeature | Enable-SPFeature2 -Url "http://server_name" -ActivateAtScope WebApplication + + This example activates MyFeature in the http://server_name web application. If the Feature is scoped to a site collection or web then it will activate at all sites or webs. + + + + ------------------EXAMPLE 2----------------------- + PS C:\> Get-SPFeature MyFeature | Enable-SPFeature2 -Url "http://server_name" -IgnoreNonActive -ActivateAtScope WebApplication + + This example activates MyFeature in the http://server_name web application where it is already active thus causing any feature activation code to rerun. + + + + + + Disable-SPFeature2 + + + + Disable-SPFeature + + + + Enable-SPFeature + + + + Get-SPFeature + + + + + + + Get-SPFeatureActivations + Features + + Retrieves all publishing pages from the specified source. + + + Copyright 2016 Falchion Consulting, LLC + > For more information on this cmdlet and others: + > http://blog.falchionconsulting.com/ + > Use of this cmdlet is at your own risk. + > Gary Lapointe assumes no liability. + + Get + SPFeatureActivations + 1.0.0.0 + + + Retrieves all publishing pages from the specified source. + + Copyright 2016 Falchion Consulting, LLC + > For more information on this cmdlet and others: + > http://blog.falchionconsulting.com/ + > Use of this cmdlet is at your own risk. + > Gary Lapointe assumes no liability. + + + + Get-SPFeatureActivations + + Identity + SPFeatureDefinitionPipeBind[] + + + NeedsUpgrade + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection + + + + Get-SPFeatureActivations + + Solution + SPSolutionPipeBind[] + + + NeedsUpgrade + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection + + + + + + Identity - Include distribution list membership property changes. + Specifies the name of the Feature or GUID to activate. + + The type must be the name of the Feature folder located in the 14\Template\Features folder or GUID, in the form 21d186e1-7036-4092-a825-0eb6709e9281. - SwitchParameter + SPFeatureDefinitionPipeBind[] - SwitchParameter + SPFeatureDefinitionPipeBind[] - - IncludePersonalizationSiteChanges + + Solution - Include personalization site property changes. + Specifies the SharePoint Slution Package containing the Features whose activations will be retrieved. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a SharePoint Solution (for example, SPSolution1); or an instance of a valid SPSolution object. - SwitchParameter + SPSolutionPipeBind[] - SwitchParameter + SPSolutionPipeBind[] - - IncludeSiteMembershipChanges + + NeedsUpgrade - Include site membership property changes. + SwitchParameter @@ -17024,31 +18077,56 @@ PS C:\> Clear-SPHttpContext - For more information, type "Get-Help Get-SPUserProfileChanges -detailed". For technical information, type "Get-Help Get-SPUserProfileChanges -full". + For more information, type "Get-Help Get-SPFeatureActivations -detailed". For technical information, type "Get-Help Get-SPFeatureActivations -full". - ------------------EXAMPLE------------------ - PS C:\> Get-SPUserProfileChanges -Site "http://site/" -IncludeSingleValueProperty -IncludeMultiValueProperty + ------------------EXAMPLE 1----------------------- + PS C:\> $features = Get-SPFeatureActivations -Identity "TeamCollab" | select @{Expression={$_.Parent.Url}} - This example retrieves all single and multi-value property changes for the User Profile Application associated with the "http://site/" context. + This example returns back all Feature activations for the Site-scoped Feature TeamCollab and displays the URL of the Site where the Feature is activated. + + + + ------------------EXAMPLE 2----------------------- + PS C:\> $features = Get-SPFeatureActivations -Solution "MyCustomSolution.wsp" + + This example returns back all Feature activations for all Features defined by the MyCustomSolution.wsp Solution Package. - Get-SPProfileServiceApplication + Enable-SPFeature2 + + + + Disable-SPFeature2 + + + + Get-SPFeature + + + + Enable-SPFeature + + + + Disable-SPFeature - Set-SPProfilePictureUrl - User Profiles + Backup-SPSite2 + Farm - Sets the picture URL path for user profiles. The following variables may be used for dynamic replacement: "@(username)", "@(domain)", "@(email)", "@(firstname)", "@(lastname)", "@(employeeid)". + The Backup-SPSite cmdlet performs a backup of the site collection when the Identity parameter is used. + + By default, the site collection will be set to read-only for the duration of the backup to reduce the potential for user activity during the backup operation which could corrupt the backup. If you have SQL Server Enterprise Edition, we recommend that UseSqlSnapshot parameter be used because this ensures a valid backup while it allows users to continue reading and writing to the site collection during the backup. Copyright 2016 Falchion Consulting, LLC @@ -17057,12 +18135,14 @@ PS C:\> Clear-SPHttpContext > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Set - SPProfilePictureUrl + Backup + SPSite2 1.0.0.0 - Sets the picture URL path for user profiles. The following variables may be used for dynamic replacement: "@(username)", "@(domain)", "@(email)", "@(firstname)", "@(lastname)", "@(employeeid)". + The Backup-SPSite cmdlet performs a backup of the site collection when the Identity parameter is used. + + By default, the site collection will be set to read-only for the duration of the backup to reduce the potential for user activity during the backup operation which could corrupt the backup. If you have SQL Server Enterprise Edition, we recommend that UseSqlSnapshot parameter be used because this ensures a valid backup while it allows users to continue reading and writing to the site collection during the backup. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -17072,33 +18152,29 @@ PS C:\> Clear-SPHttpContext - Set-SPProfilePictureUrl - - UserProfileServiceApplication - SPServiceApplicationPipeBind + Backup-SPSite2 + + Identity + SPSitePipeBind[] - SiteSubscription - SPSiteSubscriptionPipeBind + IncludeIis + SwitchParameter - Username - String + Overwrite + SwitchParameter - + Path String - Overwrite - SwitchParameter - - - IgnoreMissingData + NoSiteLock SwitchParameter - ValidateUrl + UseSqlSnapshot SwitchParameter @@ -17107,29 +18183,29 @@ PS C:\> Clear-SPHttpContext - Set-SPProfilePictureUrl + Backup-SPSite2 - ContextSite - SPSitePipeBind + WebApplication + SPWebApplicationPipeBind[] - Username - String - - - Path - String + IncludeIis + SwitchParameter Overwrite SwitchParameter - IgnoreMissingData + Path + String + + + NoSiteLock SwitchParameter - ValidateUrl + UseSqlSnapshot SwitchParameter @@ -17138,25 +18214,29 @@ PS C:\> Clear-SPHttpContext - Set-SPProfilePictureUrl - - UserProfile - UserProfile + Backup-SPSite2 + + Farm + SPFarmPipeBind - - Path - String + + IncludeIis + SwitchParameter Overwrite SwitchParameter - IgnoreMissingData + Path + String + + + NoSiteLock SwitchParameter - ValidateUrl + UseSqlSnapshot SwitchParameter @@ -17166,90 +18246,74 @@ PS C:\> Clear-SPHttpContext - - UserProfileServiceApplication - - Specifies the service application that contains the user profiles to update. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a service application (for example, ServiceApp1); or an instance of a valid SPServiceApplication object. - - SPServiceApplicationPipeBind - - SPServiceApplicationPipeBind - - - - - - - - SiteSubscription + + Identity - Specifies the site subscription containing the user profiles to update. + The site to backup. - The type must be a valid URL, in the form http://server_name; a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a site subscription (for example, SiteSubscription1); or an instance of a valid SiteSubscription object. + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - SPSiteSubscriptionPipeBind + SPSitePipeBind[] - SPSiteSubscriptionPipeBind + SPSitePipeBind[] - - ContextSite + + WebApplication - Specifies the URL or GUID of the Site to use for retrieving the service context. Use this parameter when the service application is not associated with the default proxy group or more than one custom proxy groups. + The web application to backup. - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. + The type must be a valid URL, in the form http://server_name; or an instance of a valid SPWebApplication object. - SPSitePipeBind + SPWebApplicationPipeBind[] - SPSitePipeBind + SPWebApplicationPipeBind[] - - Username + + Farm - The username corresponding to the user profile to update in the form domain\username. + A valid SPFarm object. - String + SPFarmPipeBind - String + SPFarmPipeBind - - UserProfile + + IncludeIis - The user profile to update. + Include IIS settings in the backup. - UserProfile + SwitchParameter - UserProfile + SwitchParameter - - Path + + Overwrite - Path to new photo (i.e., "http://intranet/hr/EmployeePictures/@(username).jpg") - leave blank to clear.The path to the images. To substitute dynamic data use the following strings variables within the path: @(username), @(domain), @(email), @(firstname), @(lastname), @(employeeid). The variable names are case sensitive. + Overwrite existing backups. - String + SwitchParameter - String + SwitchParameter @@ -17257,13 +18321,13 @@ PS C:\> Clear-SPHttpContext - Overwrite + Path - If provided then existing data values will be overwritten. If omitted then any profile objects with existing data will be ignored. + Specifies the full path to the backup file (that is, C:\Backup\site_name.bak). - SwitchParameter + String - SwitchParameter + String @@ -17271,9 +18335,13 @@ PS C:\> Clear-SPHttpContext - IgnoreMissingData + NoSiteLock - If specified then do not error if a specified variable value cannot be found. Note that if the value is not found then the property value will not be set. + Specifies the site collection to remain read and write during the backup. + + If the NoSiteLock parameter is not specified, then a site collection that has a site collection lock setting of "none" or "no additions" will be temporarily set to "read only" while the site collection backup is performed. Once the backup has completed, the site collection lock will return to its original state. The backup package will record the original site collection lock state so that it is restored to that state. + + If users are writing to the site collection while the site collection is being backed up, then the NoSiteLock parameter is not recommended for potential impact to backup integrity SwitchParameter @@ -17285,9 +18353,11 @@ PS C:\> Clear-SPHttpContext - ValidateUrl + UseSqlSnapshot - If specified then perform a web request to see if the resultant URL is valid. If the result is not valid then the property value will be set to an empty string. + Specifies a SQL Database Snapshot will be created when the backup begins, and all site collection data will be retrieved directly from the database snapshot. This snapshot will be deleted automatically when the backup completes. + + The UseSqlSnapshot parameter is recommended if the database server hosting your content database supports database snapshots such as such as SQL Server Enterprise Edition and SQL Server Developer Edition. This is because it will ensure a valid backup while allowing users to continue reading and writing to the site collection during the backup. It is not necessary to specify the NoSiteLock parameter when specifying the UseSqlSnapshot parameter. SwitchParameter @@ -17342,31 +18412,42 @@ PS C:\> Clear-SPHttpContext - For more information, type "Get-Help Set-SPProfilePictureUrl -detailed". For technical information, type "Get-Help Set-SPProfilePictureUrl -full". + For more information, type "Get-Help Backup-SPSite2 -detailed". For technical information, type "Get-Help Backup-SPSite2 -full". - ------------------EXAMPLE------------------ - PS C:\> Set-SPProfilePictureUrl -UserProfileServiceApplication "30daa535-b0fe-4d10-84b0-fb04029d161a" -Username "domain\username" -Path "http://intranet/hr/EmployeePictures/@(username).jpg" -Overwrite -ValidateUrl + ------------------EXAMPLE 1----------------------- + PS C:\> Get-SPSite "http://server_name" | Backup-SPSite2 -IncludeIis - This example sets the picture url of a user in the user profile service application with ID "30daa535-b0fe-4d10-84b0-fb04029d161a". + This example backs up the site located at http://server_name along with the IIS settings for the host web application. + + + + ------------------EXAMPLE 2----------------------- + PS C:\> Get-SPWebApplication "http://server_name" | Backup-SPSite2 -IncludeIis + + This example backs up the web application located at http://server_name along with the IIS settings for the web application. - Get-SPServiceApplication + Get-SPSite + + + + Backup-SPSite - Remove-SPAllUsers - Users + Get-SPDeveloperDashboard + Farm - Deletes all Site Collection users. Will not delete site administrators. + Retrieves the Developer Dashboard Settings object. Copyright 2016 Falchion Consulting, LLC @@ -17375,12 +18456,12 @@ PS C:\> Clear-SPHttpContext > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Remove - SPAllUsers + Get + SPDeveloperDashboard 1.0.0.0 - Deletes all Site Collection users. Will not delete site administrators. + Retrieves the Developer Dashboard Settings object. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -17390,30 +18471,14 @@ PS C:\> Clear-SPHttpContext - Remove-SPAllUsers - - Site - SPSitePipeBind + Get-SPDeveloperDashboard + + AssignmentCollection + SPAssignmentCollection - - Site - - Specifies the URL or GUID of the Site whose users will be deleted. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - - SPSitePipeBind - - SPSitePipeBind - - - - - - AssignmentCollection @@ -17458,26 +18523,31 @@ PS C:\> Clear-SPHttpContext - For more information, type "Get-Help Remove-SPAllUsers -detailed". For technical information, type "Get-Help Remove-SPAllUsers -full". + For more information, type "Get-Help Get-SPDeveloperDashboard -detailed". For technical information, type "Get-Help Get-SPDeveloperDashboard -full". ------------------EXAMPLE------------------ - PS C:\> Remove-SPAllUsers -Site "http://demo" + PS C:\> $dash = Get-SPDeveloperDashboard - This example removes all site users from the http://demo site. + This example returns back the developer dashboard settings object. - + + + Set-SPDeveloperDashboard + + + - Add-SPWebApplicationUserPolicy - Web Applications + Set-SPDeveloperDashboard + Farm - Adds a new user policy to the specified web application. + Sets the Developer Dashboard Settings. Copyright 2016 Falchion Consulting, LLC @@ -17486,12 +18556,12 @@ PS C:\> Clear-SPHttpContext > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Add - SPWebApplicationUserPolicy + Set + SPDeveloperDashboard 1.0.0.0 - Adds a new user policy to the specified web application. + Sets the Developer Dashboard Settings. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -17501,48 +18571,33 @@ PS C:\> Clear-SPHttpContext - Add-SPWebApplicationUserPolicy - - User - SPUserPipeBind - + Set-SPDeveloperDashboard - Web - SPWebPipeBind - - - WebApplication - SPWebApplicationPipeBind + AutoLaunchEnabled + Boolean - Zone - SPUrlZone[] - - - RoleName - String[] + DisplayLevel + Off | OnDemand | On - AssignmentCollection - SPAssignmentCollection + MaximumCriticalEventsToTrack + Int32 - - - Add-SPWebApplicationUserPolicy - - UserLogin - String + + MaximumSQLQueriesToTrack + Int32 - - WebApplication - SPWebApplicationPipeBind + + RequiredPermissions + EmptyMask | ViewListItems | AddListItems | EditListItems | DeleteListItems | ApproveItems | OpenItems | ViewVersions | DeleteVersions | CancelCheckout | ManagePersonalViews | ManageLists | ViewFormPages | AnonymousSearchAccessList | Open | ViewPages | AddAndCustomizePages | ApplyThemeAndBorder | ApplyStyleSheets | ViewUsageData | CreateSSCSite | ManageSubwebs | CreateGroups | ManagePermissions | BrowseDirectories | BrowseUserInfo | AddDelPrivateWebParts | UpdatePersonalWebParts | ManageWeb | AnonymousSearchAccessWebLists | UseClientIntegration | UseRemoteAPIs | ManageAlerts | CreateAlerts | EditMyUserInfo | EnumeratePermissions | FullMask - Zone - SPUrlZone[] + TraceEnabled + Boolean - - RoleName + + AdditionalEventsToTrack String[] @@ -17552,14 +18607,14 @@ PS C:\> Clear-SPHttpContext - - User + + AutoLaunchEnabled - + Indicates whether the developer dashboard can be auto launched. - SPUserPipeBind + Boolean - SPUserPipeBind + Boolean @@ -17567,71 +18622,81 @@ PS C:\> Clear-SPHttpContext - Web + DisplayLevel - Specifies the URL or GUID of the Web to which the user belongs. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. + Indicates whether the developer dashboard is set to Off, On, or On Demand. - SPWebPipeBind + SPDeveloperDashboardLevel - SPWebPipeBind + SPDeveloperDashboardLevel - - UserLogin + + MaximumCriticalEventsToTrack - The user login in the form domain\user. + The maximum number of critical events and asserts that will be recorded in a single transaction (i.e. one request or timer job). If a single transaction has more than this number of asserts the remainder will be ignored. This can be set to 0 to disable assert tracking. - String + Int32 - String + Int32 - - WebApplication + + MaximumSQLQueriesToTrack - The web application to which the user policy will be added. - - The type must be a valid URL, in the form http://server_name; or an instance of a valid SPWebApplication object. + The maximum number of SQL queries that will be recorded in a single transaction (i.e. one request or timer job). If a single transaction executes more than this number of requests the query will be counted but the query call stack and text will not be kept. - SPWebApplicationPipeBind + Int32 - SPWebApplicationPipeBind + Int32 - - Zone + + RequiredPermissions - The zone to add the policy to. To add to all zones to not set this parameter. Valid values are "Custom", "Default", "Intranet", "Internet", "Extranet". + A permission mask defining the permissions required to see the developer dashboard. This defaults to SPBasePermissions.AddAndCustomizePages. + + SPBasePermissions + + SPBasePermissions + + + + + + + + TraceEnabled + + Whether a link to display full verbose trace will be available at the bottom of the page when the developer dashboard is launched or not. - SPUrlZone[] + Boolean - SPUrlZone[] + Boolean - - RoleName + + AdditionalEventsToTrack - The roles name(s) to assign the user to. Default values are "Full Control", "Full Read","Deny Write", and "Deny All". + A list of URL tags to track in addition to events with severity above High. - String[] + String[] String[] @@ -17684,39 +18749,38 @@ PS C:\> Clear-SPHttpContext - For more information, type "Get-Help Add-SPWebApplicationUserPolicy -detailed". For technical information, type "Get-Help Add-SPWebApplicationUserPolicy -full". + For more information, type "Get-Help Set-SPDeveloperDashboard -detailed". For technical information, type "Get-Help Set-SPDeveloperDashboard -full". - ------------------EXAMPLE------------------ - PS C:\> Add-SPWebApplicationUserPolicy -WebApplication http://portal -UserLogin "user\domain" -RoleName "Full Read","Deny Write" + ------------------EXAMPLE 1----------------------- + PS C:\> Set-SPDeveloperDashboard -DisplayLevel OnDemand -TraceEnabled $true - This example grants user\domain full read and deny write access to http://portal. + This example enables the developer dashboard. + + + + ------------------EXAMPLE 2----------------------- + PS C:\> Set-SPDeveloperDashboard -RequiredPermissions "ManageWeb,ManageSubwebs" + + This example sets the required permissions to view the developer dashboard. - Get-SPWebApplication - - - - Get-SPWeb - - - - Get-SPUser + Get-SPDeveloperDashboard - Set-SPBackConnectionHostNames - Web Applications + Copy-SPContentType + Content Types - Sets the back connection host names on the local server or all servers in the farm. An IIS reset will be necessary after the cmdlet completes. + Copies all Content Types from one gallery to another. Copyright 2016 Falchion Consulting, LLC @@ -17725,12 +18789,12 @@ PS C:\> Clear-SPHttpContext > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Set - SPBackConnectionHostNames + Copy + SPContentType 1.0.0.0 - Sets the back connection host names on the local server or all servers in the farm. An IIS reset will be necessary after the cmdlet completes. + Copies all Content Types from one gallery to another. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -17740,75 +18804,174 @@ PS C:\> Clear-SPHttpContext - Set-SPBackConnectionHostNames - - UpdateFarm + Copy-SPContentType + + SourceContentType + SPContentTypePipeBind + + + SourceWeb + SPWebPipeBind + + + TargetWeb + SPWebPipeBind + + + NoWorkflows SwitchParameter - - FarmCredentials - PSCredential + + NoDocTemplate + SwitchParameter - - WebApplication - SPWebApplicationPipeBind + + NoPolicies + SwitchParameter - - WebApplication - SPWebApplicationPipeBind + + NoDocInfoPanel + SwitchParameter - - - Set-SPBackConnectionHostNames - - WebApplication - SPWebApplicationPipeBind + + NoDocConversions + SwitchParameter - - WebApplication - SPWebApplicationPipeBind + + NoColumns + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection - - UpdateFarm + + SourceContentType - Update all servers in the farm. + The content type to copy. The type must be a valid content type name; a valid content type ID, in the form 0x0123...; or an instance of an SPContentType object. - SwitchParameter + SPContentTypePipeBind - SwitchParameter + SPContentTypePipeBind - - FarmCredentials + + SourceWeb - The credentials to use on the remote servers to perform the update. + The source web containing the content type to copy. + + The value must be a valid URL in the form http://server_name - PSCredential + SPWebPipeBind - PSCredential + SPWebPipeBind - - WebApplication + + TargetWeb - The web application whose URLs will be added to the set of back connection host names. + The target web containing to copy the content type to. - The type must be a valid URL, in the form http://server_name; or an instance of a valid SPWebApplication object. + The value must be a valid URL in the form http://server_name - SPWebApplicationPipeBind + SPWebPipeBind - SPWebApplicationPipeBind + SPWebPipeBind + + + + + + + + NoWorkflows + + Do not copy any workflow associations. + + SwitchParameter + + SwitchParameter + + + + + + + + NoDocTemplate + + Do not copy the document template. + + SwitchParameter + + SwitchParameter + + + + + + + + NoPolicies + + Do not copy the information rights policies. + + SwitchParameter + + SwitchParameter + + + + + + + + NoDocInfoPanel + + Do not copy the document information panel. + + SwitchParameter + + SwitchParameter + + + + + + + + NoDocConversions + + Do not copy the document conversion settings. + + SwitchParameter + + SwitchParameter + + + + + + + + NoColumns + + Do not copy fields associated with the content type. + + SwitchParameter + + SwitchParameter @@ -17859,38 +19022,43 @@ PS C:\> Clear-SPHttpContext - For more information, type "Get-Help Set-SPBackConnectionHostNames -detailed". For technical information, type "Get-Help Set-SPBackConnectionHostNames -full". + For more information, type "Get-Help Copy-SPContentType -detailed". For technical information, type "Get-Help Copy-SPContentType -full". - ------------------EXAMPLE 1----------------------- - PS C:\> Set-SPBackConnectionHostNames -UpdateFarm -FarmCredentials (Get-Credential) - - This example sets the back connection host names for all web applications in the farm on all servers in the farm using the provided credentials. - - - - ------------------EXAMPLE 2----------------------- - PS C:\> Set-SPBackConnectionHostNames + ------------------EXAMPLE------------------ + PS C:\> Copy-SPContentType -SourceContentType ContentType1 -SourceWeb "http://server_name/sites/site1" -TargetWeb "http://server_name/sites/site2" - This example sets the back connection host names for all web applications in the farm on the local server only. + This example copies the ContentType1 content type from site1 to site2. - Get-SPWebApplication + Export-SPContentType + + + + Get-SPContentType + + + + Propagate-SPContentType + + + + Get-SPWeb - Add-SPListViewWebPart - Web Parts + Export-SPContentType + Content Types - Adds an XSLT List View Web Part to the specified web part page. + Exports a Content Types to an XML file or the pipeline. Copyright 2016 Falchion Consulting, LLC @@ -17899,12 +19067,12 @@ PS C:\> Clear-SPHttpContext > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Add - SPListViewWebPart + Export + SPContentType 1.0.0.0 - Adds an XSLT List View Web Part to the specified web part page. + Exports a Content Types to an XML file or the pipeline. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -17914,50 +19082,46 @@ PS C:\> Clear-SPHttpContext - Add-SPListViewWebPart - - Manager - SPLimitedWebPartManagerPipeBind + Export-SPContentType + + Web + SPWebPipeBind[] - - Zone + + ContentType String - - ZoneIndex - Int32 - - - List - SPListPipeBind - - - Web - SPWebPipeBind - - - WebPartTitle + + Group String - - ViewTitle + + ListName String - - Publish + + ExcludeParentFields SwitchParameter - - LinkTitle + + IncludeFieldDefinitions SwitchParameter - - JSLink - String + + IncludeListBindings + SwitchParameter - ChromeType - Default | TitleAndBorder | None | TitleOnly | BorderOnly + RemoveEncodedSpaces + SwitchParameter + + + FeatureSafe + SwitchParameter + + + OutputFile + String AssignmentCollection @@ -17965,54 +19129,38 @@ PS C:\> Clear-SPHttpContext - Add-SPListViewWebPart - - Manager - SPLimitedWebPartManagerPipeBind - - - Row - Int32 + Export-SPContentType + + Web + SPWebPipeBind[] - - Column - Int32 + + Identity + SPContentTypePipeBind - - AddSpace + + ExcludeParentFields SwitchParameter - - List - SPListPipeBind - - - Web - SPWebPipeBind - - - WebPartTitle - String - - - ViewTitle - String + + IncludeFieldDefinitions + SwitchParameter - - Publish + + IncludeListBindings SwitchParameter - - LinkTitle + + RemoveEncodedSpaces SwitchParameter - - JSLink - String + + FeatureSafe + SwitchParameter - ChromeType - Default | TitleAndBorder | None | TitleOnly | BorderOnly + OutputFile + String AssignmentCollection @@ -18020,54 +19168,38 @@ PS C:\> Clear-SPHttpContext - Add-SPListViewWebPart - - File - SPFilePipeBind - - - Row - Int32 - - - Column - Int32 - - - AddSpace - SwitchParameter - - + Export-SPContentType + List - SPListPipeBind - - - Web - SPWebPipeBind + SPListPipeBind[] - - WebPartTitle + + ContentType String - - ViewTitle - String + + ExcludeParentFields + SwitchParameter - - Publish + + IncludeFieldDefinitions SwitchParameter - - LinkTitle + + IncludeListBindings SwitchParameter - - JSLink - String + + RemoveEncodedSpaces + SwitchParameter - ChromeType - Default | TitleAndBorder | None | TitleOnly | BorderOnly + FeatureSafe + SwitchParameter + + + OutputFile + String AssignmentCollection @@ -18075,50 +19207,38 @@ PS C:\> Clear-SPHttpContext - Add-SPListViewWebPart - - File - SPFilePipeBind - - - Zone - String - - - ZoneIndex - Int32 - - + Export-SPContentType + List - SPListPipeBind + SPListPipeBind[] - - Web - SPWebPipeBind + + Identity + SPContentTypePipeBind - - WebPartTitle - String + + ExcludeParentFields + SwitchParameter - - ViewTitle - String + + IncludeFieldDefinitions + SwitchParameter - - Publish + + IncludeListBindings SwitchParameter - - LinkTitle + + RemoveEncodedSpaces SwitchParameter - - JSLink - String + + FeatureSafe + SwitchParameter - ChromeType - Default | TitleAndBorder | None | TitleOnly | BorderOnly + OutputFile + String AssignmentCollection @@ -18127,86 +19247,58 @@ PS C:\> Clear-SPHttpContext - - Manager - - The URL to a web part page or an instance of an SPLimitedWebPartManager object. - - SPLimitedWebPartManagerPipeBind - - SPLimitedWebPartManagerPipeBind - - - - - - - - File - - The URL to a web part page or an instance of an SPFile object. - - SPFilePipeBind - - SPFilePipeBind - - - - - - - - List + + Web - The list to whose view will be added to the page. + The source web containing the content type to export. - The value must be a valid URL in the form http://server_name/lists/listname or /lists/listname. If a server relative URL is provided then the Web parameter must be provided. + The value must be a valid URL in the form http://server_name - SPListPipeBind + SPWebPipeBind[] - SPListPipeBind + SPWebPipeBind[] - - Web + + List - Specifies the URL or GUID of the Web containing the list whose view will be added to the page. + The source list containing the content type to export. - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. + The value must be a valid URL in the form http://server_name - SPWebPipeBind + SPListPipeBind[] - SPWebPipeBind + SPListPipeBind[] - - WebPartTitle + + Identity - The title to set the web part to. The list title will be used if not provided. + The name of the content type to export. The type must be a valid content type name; a valid content type ID, in the form 0x0123...; or an instance of an SPContentType object. - String + SPContentTypePipeBind - String + SPContentTypePipeBind - - Zone + + ContentType - The name of the web part zone to add the list view web part to. + The name of the content type to export. - String + String String @@ -18215,24 +19307,26 @@ PS C:\> Clear-SPHttpContext - - ZoneIndex + + Group - The index within the web part zone to add the list view web part to. + The content type group to export. Specifying this will filter the exported content types to just those items in the group. - Int32 + String - Int32 + String - - ViewTitle + + ListName - The name of the view to use for the list view web part. + The list name to filter by. + + Specifying this along with the Web parameter will export content types from the list with the specified name only. String @@ -18243,10 +19337,10 @@ PS C:\> Clear-SPHttpContext - - Publish + + ExcludeParentFields - If specified, the page will be published after adding the list view web part. + Exclude all fields defined in parent content types. SwitchParameter @@ -18257,10 +19351,10 @@ PS C:\> Clear-SPHttpContext - - LinkTitle + + IncludeFieldDefinitions - If specified, the web part title will link back to the default view for the list. + Include the field definitions in the exported XML. SwitchParameter @@ -18271,38 +19365,38 @@ PS C:\> Clear-SPHttpContext - - Row + + IncludeListBindings - The zone to add the web part to. + Include the list bindings in the exported XML. - Int32 + SwitchParameter - Int32 + SwitchParameter - - Column + + RemoveEncodedSpaces - The zone index to add the web part to. + Remove encoded spaces (_x0020_) in all field and content type names. - Int32 + SwitchParameter - Int32 + SwitchParameter - - AddSpace + + FeatureSafe - Add some space before the web part. + Remove any elements/attributes which are invalid in a SharePoint Solution Package Feature manifest file. SwitchParameter @@ -18313,10 +19407,12 @@ PS C:\> Clear-SPHttpContext - - JSLink + + OutputFile - Set a specific JSLink file. + The path to the output file where the exported XML will be saved. + + If omitted the output will be dumped to the pipeline. String @@ -18327,20 +19423,6 @@ PS C:\> Clear-SPHttpContext - - ChromeType - - The chrome settings for the web part. - - PartChromeType - - PartChromeType - - - - - - AssignmentCollection @@ -18385,46 +19467,75 @@ PS C:\> Clear-SPHttpContext - For more information, type "Get-Help Add-SPListViewWebPart -detailed". For technical information, type "Get-Help Add-SPListViewWebPart -full". + For more information, type "Get-Help Export-SPContentType -detailed". For technical information, type "Get-Help Export-SPContentType -full". ------------------EXAMPLE 1----------------------- - PS C:\> Add-SPListViewWebPart -File "http://portal/pages/default.aspx" -List http://portal/Lists/News -WebPartTitle "News" -ViewTitle "All Items" -Zone "Left" -ZoneIndex 0 -Publish + PS C:\> Export-SPContentType -ContentType "ContentType1" -Web "http://server_name/" -OutputFile "c:\contentTypes.xml" - This example adds a news list view web part to the page http://portal/pages/default.aspx. + This example exports the ContentType1 content type from http://server_name and saves it to contentTypes.xml. ------------------EXAMPLE 2----------------------- - PS C:\> Add-SPListViewWebPart -File "http://portal/sitepages/home.aspx" -List http://portal/Lists/News -WebPartTitle "News" -ViewTitle "All Items" -Row "1" -Column 1 -AddSpace -Publish + PS C:\> Export-SPContentType -ContentType "ContentType1" -List "http://server_name/lists/mylist" -OutputFile "c:\contentTypes.xml" - This example adds a news list view web part to the wiki page http://portal/sitepages/home.aspx. + This example exports the ContentType1 content type from the list located at http://server_name/lists/mylist and saves it to contentTypes.xml. + + + + ------------------EXAMPLE 3----------------------- + PS C:\> Get-SPWeb "http://server_name" | Export-SPContentType -Identity "ContentType1" -OutputFile "c:\contentTypes.xml" + + This example exports ContentType1 from http://server_name and saves it to contentTypes.xml. + + + + ------------------EXAMPLE 4----------------------- + PS C:\> Get-SPList "http://server_name/lists/mylist/" | Export-SPContentType -Identity "ContentType1" -OutputFile "c:\contentTypes.xml" + + This example exports ContentType1 from the list located at http://server_name/lists/mylist and saves them to contentTypes.xml. + + + + ------------------EXAMPLE 5----------------------- + PS C:\> Get-SPWeb "http://server_name/*" | Export-SPContentType -List "Documents" -OutputFile "c:\contentTypes.xml" + + This example exports all content types from all lists named Documents in all webs at http://server_name/* and saves them to contentTypes.xml. - Get-SPLimitedWebPartManager + Copy-SPContentType - Get-SPPublishingPage + Get-SPContentType - Get-SPFile + Propagate-SPContentType + + + + Get-SPList + + + + Get-SPWeb - Copy-SPWebPart - Web Parts + Get-SPContentType + Content Types - Copies a web part from one file to another file. + Retrieve an SPContentType object. Copyright 2016 Falchion Consulting, LLC @@ -18433,12 +19544,12 @@ PS C:\> Clear-SPHttpContext > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Copy - SPWebPart + Get + SPContentType 1.0.0.0 - Copies a web part from one file to another file. + Retrieve an SPContentType object. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -18448,121 +19559,77 @@ PS C:\> Clear-SPHttpContext - Copy-SPWebPart + Get-SPContentType - WebPartId - String + Web + SPWebPipeBind[] - - WebPartTitle - String + + Identity + SPContentTypePipeBind + + + AssignmentCollection + SPAssignmentCollection - Copy-SPWebPart + Get-SPContentType - WebPartTitle - String + List + SPListPipeBind[] - - WebPartTitle - String + + Identity + SPContentTypePipeBind - - - - - WebPartId - - The ID of the Web Part to copy. - - String - - String - - - - - - - - WebPartTitle - - The title of the Web Part to copy. - - String - - String - - - - - - - - SourceFile - - The URL to a web part page or an instance of an SPFile object. - - SPFilePipeBind - - SPFilePipeBind - - - - - - - - TargetFile - - The URL to a web part page or an instance of an SPFile object. - - SPFilePipeBind - - SPFilePipeBind - - - - - - - - Publish + + AssignmentCollection + SPAssignmentCollection + + + + + + Web - If specified the target page will be published after copying the Web Part. + The source web containing the content type to retrieve. + + The value must be a valid URL in the form http://server_name - SwitchParameter + SPWebPipeBind[] - SwitchParameter + SPWebPipeBind[] - - Zone + + List - The name of the web part zone to copy the web part to. + The source list containing the content type to retrieve. + + The value must be a valid URL in the form http://server_name - String + SPListPipeBind[] - String + SPListPipeBind[] - - ZoneIndex + + Identity - The index within the web part zone to copy the web part to. + The name of the content type to return. The type must be a valid content type name; a valid content type ID, in the form 0x0123...; or an instance of an SPContentType object. - Nullable`1 + SPContentTypePipeBind - Nullable`1 + SPContentTypePipeBind @@ -18613,31 +19680,61 @@ PS C:\> Clear-SPHttpContext - For more information, type "Get-Help Copy-SPWebPart -detailed". For technical information, type "Get-Help Copy-SPWebPart -full". + For more information, type "Get-Help Get-SPContentType -detailed". For technical information, type "Get-Help Get-SPContentType -full". - ------------------EXAMPLE------------------ - PS C:\> Copy-SPWebPart -SourceFile "http://server_name/pages/default.aspx" -TargetFile "http://server_name/pages/test.aspx" -WebPartTitle "My Web Part" -Publish + ------------------EXAMPLE 1----------------------- + PS C:\> $ct = Get-SPWeb "http://server_name" | Get-SPContentType -Identity "ContentType1" - This example replaces all instances of the web part who's class name is ContentByQueryWebPart with the web part who's class name is MyContentByQueryWebPart. + This example retrieves ContentType1 from http://server_name. + + + + ------------------EXAMPLE 2----------------------- + PS C:\> $ct = Get-SPWeb "http://server_name" | Get-SPContentType + + This example retrieves all content types from http://server_name. + + + + ------------------EXAMPLE 3----------------------- + PS C:\> $ct = Get-SPList "http://server_name/lists/mylist" | Get-SPContentType + + This example retrieves all content types from http://server_name. - Get-SPFile + Copy-SPContentType + + + + Export-SPContentType + + + + Propagate-SPContentType + + + + Get-SPList + + + + Get-SPWeb - Get-SPLimitedWebPartManager - Web Parts + Get-SPContentTypeUsage + Content Types - Retrieves an SPLimitedWebPartManager object used for managing web parts on a page. + Retrieve an SPContentTypeUsage object corresponding to the List or Site where a Content Type is utilized. Copyright 2016 Falchion Consulting, LLC @@ -18647,11 +19744,11 @@ PS C:\> Clear-SPHttpContext > Gary Lapointe assumes no liability. Get - SPLimitedWebPartManager + SPContentTypeUsage 1.0.0.0 - Retrieves an SPLimitedWebPartManager object used for managing web parts on a page. + Retrieve an SPContentTypeUsage object corresponding to the List or Site where a Content Type is utilized. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -18661,10 +19758,18 @@ PS C:\> Clear-SPHttpContext - Get-SPLimitedWebPartManager + Get-SPContentTypeUsage + + Web + SPWebPipeBind[] + Identity - SPLimitedWebPartManagerPipeBind + SPContentTypePipeBind + + + ListScopeOnly + SwitchParameter AssignmentCollection @@ -18673,14 +19778,44 @@ PS C:\> Clear-SPHttpContext - + + Web + + The source web containing the content type usages to retrieve. + + The value must be a valid URL in the form http://server_name + + SPWebPipeBind[] + + SPWebPipeBind[] + + + + + + + Identity - The URL to a web part page or an instance of an SPLimitedWebPartManager object. + The name or ID of the Content Type to return associated usages. - SPLimitedWebPartManagerPipeBind + SPContentTypePipeBind - SPLimitedWebPartManagerPipeBind + SPContentTypePipeBind + + + + + + + + ListScopeOnly + + Specify to return only Content Type usages scoped to a list. + + SwitchParameter + + SwitchParameter @@ -18731,37 +19866,39 @@ PS C:\> Clear-SPHttpContext - For more information, type "Get-Help Get-SPLimitedWebPartManager -detailed". For technical information, type "Get-Help Get-SPLimitedWebPartManager -full". + For more information, type "Get-Help Get-SPContentTypeUsage -detailed". For technical information, type "Get-Help Get-SPContentTypeUsage -full". ------------------EXAMPLE------------------ - PS C:\> Start-SPAssignment -Global -PS C:\> $mgr = Get-SPLimitedWebPartManager "http://portal/pages/default.aspx" -PS C:\> Stop-SPAssignment -Global + PS C:\> $ct = Get-SPWeb "http://server_name" | Get-SPContentTypeUsage -Identity "ContentType1" - This exmple retrieves the SPLimitedWebPartManager associated with http://portal/pages/default.aspx. + This example retrieves SPContentTypeUsage objects for all the Lists and Webs where ContentType1 is used. - Get-SPPublishingPage + Get-SPContentType - Get-SPFile + Get-SPList + + + + Get-SPWeb - Get-SPWebPartList - Web Parts + Propagate-SPContentType + Content Types - Retrieves a listing of web parts on a page in XML format. + Propagates changes to a parent content type to all child content types. Copyright 2016 Falchion Consulting, LLC @@ -18770,12 +19907,12 @@ PS C:\> Stop-SPAssignment -Global > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Get - SPWebPartList + Propagate + SPContentType 1.0.0.0 - Retrieves a listing of web parts on a page in XML format. + Propagates changes to a parent content type to all child content types. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -18785,51 +19922,54 @@ PS C:\> Stop-SPAssignment -Global - Get-SPWebPartList - - Manager - SPLimitedWebPartManagerPipeBind + Propagate-SPContentType + + Site + SPSitePipeBind - File - SPFilePipeBind + Identity + SPContentTypePipeBind - - - Get-SPWebPartList - - File - SPFilePipeBind + + UpdateFields + SwitchParameter - - File - SPFilePipeBind + + RemoveFields + SwitchParameter + + + AssignmentCollection + SPAssignmentCollection - - Manager + + Site - The URL to a web part page or an instance of an SPLimitedWebPartManager object. + The source site containing the content types to propagate. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - SPLimitedWebPartManagerPipeBind + SPSitePipeBind - SPLimitedWebPartManagerPipeBind + SPSitePipeBind - - File + + Identity - The URL to a web part page or an instance of an SPFile object. + The content type to propagate changes. The type must be a valid content type name; a valid content type ID, in the form 0x0123...; or an instance of an SPContentType object. - SPFilePipeBind + SPContentTypePipeBind - SPFilePipeBind + SPContentTypePipeBind @@ -18837,9 +19977,23 @@ PS C:\> Stop-SPAssignment -Global - Minimal + UpdateFields - Retrieves a minimal XML listing of the web parts on the page. + Propagate changes to all fields. + + SwitchParameter + + SwitchParameter + + + + + + + + RemoveFields + + Remove fields defined in child content types which do not exist in the source content type. SwitchParameter @@ -18894,46 +20048,43 @@ PS C:\> Stop-SPAssignment -Global - For more information, type "Get-Help Get-SPWebPartList -detailed". For technical information, type "Get-Help Get-SPWebPartList -full". + For more information, type "Get-Help Propagate-SPContentType -detailed". For technical information, type "Get-Help Propagate-SPContentType -full". - ------------------EXAMPLE 1----------------------- - PS C:\> $xml = Get-SPLimitedWebPartManager "http://portal/pages/default.aspx" | Get-SPWebPartList - - This example retrieves a listing of web parts associated with the page http://portal/pages/default.aspx. - - - - ------------------EXAMPLE 2----------------------- - PS C:\> $xml = Get-SPWebPartList -File "http://portal/pages/default.aspx" + ------------------EXAMPLE------------------ + PS C:\> Get-SPSite "http://server_name" | Propagate-SPContentType -Identity "ContentType1" -UpdateFields - This example retrieves a listing of web parts associated with the page http://portal/pages/default.aspx. + This example propgates changes to ContentType1 found in http://server_name to all child content types. - Get-SPLimitedWebPartManager + Copy-SPContentType + + + + Export-SPContentType - Get-SPPublishingPage + Get-SPContentType - Get-SPFile + Get-SPSite - Import-SPWebPart - Web Parts + Export-SPAudienceRules + Audiences - Imports a web part to a page. + Exports the rules for an audience. Copyright 2016 Falchion Consulting, LLC @@ -18942,367 +20093,283 @@ PS C:\> Stop-SPAssignment -Global > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Import - SPWebPart + Export + SPAudienceRules 1.0.0.0 - Imports a web part to a page. + Exports the rules for an audience. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: > http://blog.falchionconsulting.com/ > Use of this cmdlet is at your own risk. - > Gary Lapointe assumes no liability. - - - - Import-SPWebPart - - Manager - SPLimitedWebPartManagerPipeBind - - - Zone - String - - - ZoneIndex - Int32 - - - DeleteExisting - SwitchParameter - - - CustomReplaceText - PropertiesPipeBind - - - Identity - XmlDocumentPipeBind - - - WebPartTitle - String - - - Publish - SwitchParameter - - - ChromeType - Default | TitleAndBorder | None | TitleOnly | BorderOnly - - - AssignmentCollection - SPAssignmentCollection - - - - Import-SPWebPart - - Manager - SPLimitedWebPartManagerPipeBind - - - Row - Int32 - - - Column - Int32 - - - AddSpace - SwitchParameter - - - CustomReplaceText - PropertiesPipeBind - - - Identity - XmlDocumentPipeBind - - - WebPartTitle - String - - - Publish - SwitchParameter - - - ChromeType - Default | TitleAndBorder | None | TitleOnly | BorderOnly - - - AssignmentCollection - SPAssignmentCollection - - - - Import-SPWebPart - - Manager - SPLimitedWebPartManagerPipeBind - - - Row - Int32 - - - Column - Int32 - - - AddSpace - SwitchParameter - - - Assembly - String - - - TypeName - String - - - WebPartTitle - String - - - Publish - SwitchParameter - - - ChromeType - Default | TitleAndBorder | None | TitleOnly | BorderOnly - - - AssignmentCollection - SPAssignmentCollection - - - - Import-SPWebPart - - Manager - SPLimitedWebPartManagerPipeBind - - - Zone - String - - - ZoneIndex - Int32 - - - DeleteExisting - SwitchParameter - - - CustomReplaceText - PropertiesPipeBind - - - Assembly - String - - - TypeName - String - - - WebPartTitle - String - - - Publish - SwitchParameter - - - ChromeType - Default | TitleAndBorder | None | TitleOnly | BorderOnly - - - AssignmentCollection - SPAssignmentCollection - - - - Import-SPWebPart - - File - SPFilePipeBind - - - Row - Int32 - - - Column - Int32 - - - AddSpace - SwitchParameter - - - Assembly - String - - - TypeName - String - - - WebPartTitle - String - - - Publish - SwitchParameter - - - ChromeType - Default | TitleAndBorder | None | TitleOnly | BorderOnly - - - AssignmentCollection - SPAssignmentCollection - - - - Import-SPWebPart - - File - SPFilePipeBind - - - Zone - String - - - ZoneIndex - Int32 - - - DeleteExisting - SwitchParameter + > Gary Lapointe assumes no liability. + + + + Export-SPAudienceRules + + UserProfileServiceApplication + SPServiceApplicationPipeBind - CustomReplaceText - PropertiesPipeBind + SiteSubscription + SPSiteSubscriptionPipeBind Identity - XmlDocumentPipeBind - - - WebPartTitle String - Publish + Explicit SwitchParameter - - ChromeType - Default | TitleAndBorder | None | TitleOnly | BorderOnly - AssignmentCollection SPAssignmentCollection - Import-SPWebPart + Export-SPAudienceRules - File - SPFilePipeBind + ContextSite + SPSitePipeBind - Zone - String - - - ZoneIndex - Int32 - - - DeleteExisting - SwitchParameter - - - CustomReplaceText - PropertiesPipeBind - - - Assembly - String - - - TypeName - String - - - WebPartTitle + Identity String - Publish + Explicit SwitchParameter - - ChromeType - Default | TitleAndBorder | None | TitleOnly | BorderOnly - AssignmentCollection SPAssignmentCollection + + + + UserProfileServiceApplication + + Specifies the service application that contains the audience rules to export. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a service application (for example, ServiceApp1); or an instance of a valid SPServiceApplication object. + + SPServiceApplicationPipeBind + + SPServiceApplicationPipeBind + + + + + + + + SiteSubscription + + Specifies the site subscription containing the audience rules to export. + + The type must be a valid URL, in the form http://server_name; a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a site subscription (for example, SiteSubscription1); or an instance of a valid SiteSubscription object. + + SPSiteSubscriptionPipeBind + + SPSiteSubscriptionPipeBind + + + + + + + + ContextSite + + Specifies the URL or GUID of the Site to use for retrieving the service context. Use this parameter when the service application is not associated with the default proxy group or more than one custom proxy groups. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. + + SPSitePipeBind + + SPSitePipeBind + + + + + + + + Identity + + The name of the audience to export. + + String + + String + + + + + + + + Explicit + + Shows field and value attributes for every rule. + + SwitchParameter + + SwitchParameter + + + + + + + + AssignmentCollection + + Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used. + + When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur. + + SPAssignmentCollection + + SPAssignmentCollection + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + For more information, type "Get-Help Export-SPAudienceRules -detailed". For technical information, type "Get-Help Export-SPAudienceRules -full". + + + + + ------------------EXAMPLE 1----------------------- + PS C:\> $xml = Export-SPAudienceRules -UserProfileServiceApplication "30daa535-b0fe-4d10-84b0-fb04029d161a" -Name "Human Resources" + + This example gets the rules for the "Human Resources" audience from the user profile service application with ID "30daa535-b0fe-4d10-84b0-fb04029d161a". + + + + ------------------EXAMPLE 2----------------------- + PS C:\> $xml = Get-SPServiceApplication | where {$_.TypeName -eq "User Profile Service Application"} | Export-SPAudienceRules -Name "Human Resources" + + This example gets the rules for the "Human Resources" audience(s) from all configured user profile service applications. + + + + + + Export-SPAudiences + + + + Import-SPAudiences + + + + Get-SPServiceApplication + + + + + + + Export-SPAudiences + Audiences + + Exports the audience and corresponding rules to XML. + + + Copyright 2016 Falchion Consulting, LLC + > For more information on this cmdlet and others: + > http://blog.falchionconsulting.com/ + > Use of this cmdlet is at your own risk. + > Gary Lapointe assumes no liability. + + Export + SPAudiences + 1.0.0.0 + + + Exports the audience and corresponding rules to XML. + + Copyright 2016 Falchion Consulting, LLC + > For more information on this cmdlet and others: + > http://blog.falchionconsulting.com/ + > Use of this cmdlet is at your own risk. + > Gary Lapointe assumes no liability. + + - Import-SPWebPart - - File - SPFilePipeBind - + Export-SPAudiences - Row - Int32 + UserProfileServiceApplication + SPServiceApplicationPipeBind + + + SiteSubscription + SPSiteSubscriptionPipeBind - - Column - Int32 + + Identity + String - AddSpace + Explicit SwitchParameter - CustomReplaceText - PropertiesPipeBind + AssignmentCollection + SPAssignmentCollection - - Identity - XmlDocumentPipeBind + + + Export-SPAudiences + + ContextSite + SPSitePipeBind - WebPartTitle + Identity String - Publish + Explicit SwitchParameter - - ChromeType - Default | TitleAndBorder | None | TitleOnly | BorderOnly - AssignmentCollection SPAssignmentCollection @@ -19310,28 +20377,16 @@ PS C:\> Stop-SPAssignment -Global - - Manager - - The URL to a web part page or an instance of an SPLimitedWebPartManager object. - - SPLimitedWebPartManagerPipeBind - - SPLimitedWebPartManagerPipeBind - - - - - - - - File + + UserProfileServiceApplication - The URL to a web part page or an instance of an SPFile object. + Specifies the service application that contains the audience to export. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a service application (for example, ServiceApp1); or an instance of a valid SPServiceApplication object. - SPFilePipeBind + SPServiceApplicationPipeBind - SPFilePipeBind + SPServiceApplicationPipeBind @@ -19339,27 +20394,31 @@ PS C:\> Stop-SPAssignment -Global - WebPartTitle + SiteSubscription - The title to set the web part to. + Specifies the site subscription containing the audiences to export. + + The type must be a valid URL, in the form http://server_name; a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a site subscription (for example, SiteSubscription1); or an instance of a valid SiteSubscription object. - String + SPSiteSubscriptionPipeBind - String + SPSiteSubscriptionPipeBind - - Zone + + ContextSite - The name of the web part zone to add the web part to. + Specifies the URL or GUID of the Site to use for retrieving the service context. Use this parameter when the service application is not associated with the default proxy group or more than one custom proxy groups. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - String + SPSitePipeBind - String + SPSitePipeBind @@ -19367,125 +20426,217 @@ PS C:\> Stop-SPAssignment -Global - ZoneIndex - - The index within the web part zone to add the web part to. - - Int32 - - Int32 - - - - - - - - Row + Identity - The zone to add the web part to. + The name of the audience to export. - Int32 + String - Int32 + String - - Column + + Explicit - The zone index to add the web part to. + Shows field and value attributes for every rule. - Int32 + SwitchParameter - Int32 + SwitchParameter - - AddSpace + + AssignmentCollection - Add some space before the web part. + Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used. + + When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur. - SwitchParameter + SPAssignmentCollection - SwitchParameter + SPAssignmentCollection - - Publish - - If specified, the page will be published after importing the web part. - - SwitchParameter + + + - SwitchParameter + - - - DeleteExisting - - If specified, any existing web parts with the same name as the imported one will be deleted. - - SwitchParameter + + + + - SwitchParameter + - - - CustomReplaceText + + + + + + + + For more information, type "Get-Help Export-SPAudiences -detailed". For technical information, type "Get-Help Export-SPAudiences -full". + + + + + ------------------EXAMPLE 1----------------------- + PS C:\> Export-SPAudiences -UserProfileServiceApplication "30daa535-b0fe-4d10-84b0-fb04029d161a" -Name "Human Resources" | Set-Content c:\audiences.xml + + This example exports the audience definitions and rules for the "Human Resources" audience from the user profile service application with ID "30daa535-b0fe-4d10-84b0-fb04029d161a" to the audiences.xml file. + + + + ------------------EXAMPLE 2----------------------- + PS C:\> Export-SPAudiences -UserProfileServiceApplication "30daa535-b0fe-4d10-84b0-fb04029d161a" | Set-Content c:\audiences.xml + + This example exports all audience definitions and rules from the user profile service application with ID "30daa535-b0fe-4d10-84b0-fb04029d161a" to the audiences.xml file. + + + + + + Export-SPAudienceRules + + + + Import-SPAudiences + + + + Get-SPServiceApplication + + + + + + + Get-SPAudience + Audiences + + The Get-SPAudience cmdlet returns back one or more audiences for a given User Profile Service Application. + + + Copyright 2016 Falchion Consulting, LLC + > For more information on this cmdlet and others: + > http://blog.falchionconsulting.com/ + > Use of this cmdlet is at your own risk. + > Gary Lapointe assumes no liability. + + Get + SPAudience + 1.0.0.0 + + + The Get-SPAudience cmdlet returns back one or more audiences for a given User Profile Service Application. + + Copyright 2016 Falchion Consulting, LLC + > For more information on this cmdlet and others: + > http://blog.falchionconsulting.com/ + > Use of this cmdlet is at your own risk. + > Gary Lapointe assumes no liability. + + + + Get-SPAudience + + UserProfileServiceApplication + SPServiceApplicationPipeBind + + + SiteSubscription + SPSiteSubscriptionPipeBind + + + Identity + String + + + AssignmentCollection + SPAssignmentCollection + + + + Get-SPAudience + + ContextSite + SPSitePipeBind + + + Identity + String + + + AssignmentCollection + SPAssignmentCollection + + + + + + UserProfileServiceApplication - Each key represents the name of a string to replace with the specified value. + Specifies the service application that contains the audience to retrieve. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a service application (for example, ServiceApp1); or an instance of a valid SPServiceApplication object. - PropertiesPipeBind + SPServiceApplicationPipeBind - PropertiesPipeBind + SPServiceApplicationPipeBind - - Identity + + SiteSubscription - The path to the web part file or a valid web part file in the form of an XmlDocument object. + Specifies the site subscription containing the audiences to retrieve. + + The type must be a valid URL, in the form http://server_name; a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a site subscription (for example, SiteSubscription1); or an instance of a valid SiteSubscription object. - XmlDocumentPipeBind + SPSiteSubscriptionPipeBind - XmlDocumentPipeBind + SPSiteSubscriptionPipeBind - - Assembly + + ContextSite - Specify the full name of the assembly containing the web part class to add. + Specifies the URL or GUID of the Site to use for retrieving the service context. Use this parameter when the service application is not associated with the default proxy group or more than one custom proxy groups. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - String + SPSitePipeBind - String + SPSitePipeBind @@ -19493,9 +20644,9 @@ PS C:\> Stop-SPAssignment -Global - TypeName + Identity - Specify the full name of the web part class to add. + The name of the audience to retrieve. String @@ -19506,20 +20657,6 @@ PS C:\> Stop-SPAssignment -Global - - ChromeType - - The chrome settings for the web part. - - PartChromeType - - PartChromeType - - - - - - AssignmentCollection @@ -19564,39 +20701,73 @@ PS C:\> Stop-SPAssignment -Global - For more information, type "Get-Help Import-SPWebPart -detailed". For technical information, type "Get-Help Import-SPWebPart -full". + For more information, type "Get-Help Get-SPAudience -detailed". For technical information, type "Get-Help Get-SPAudience -full". - ------------------EXAMPLE------------------ - PS C:\> Import-SPWebPart -File "http://portal/pages/default.aspx" -Identity "c:\my.webpart" -WebPartTitle "My Web part" -Zone "Left" -ZoneIndex 0 -DeleteExisting -Publish + ------------------EXAMPLE 1----------------------- + PS C:\> Get-SPAudience -UserProfileServiceApplication "30daa535-b0fe-4d10-84b0-fb04029d161a" -Name "Human Resources" - This example adds a web part to the page http://portal/pages/default.aspx. + This example gets the "Human Resources" audience from the user profile service application with ID "30daa535-b0fe-4d10-84b0-fb04029d161a". + + + + ------------------EXAMPLE 2----------------------- + PS C:\> Get-SPServiceApplication | where {$_.TypeName -eq "User Profile Service Application"} | Get-SPAudience -Name "Human Resources" + + This example gets the "Human Resources" audience(s) from all configured user profile service applications. + + + + ------------------EXAMPLE 3----------------------- + PS C:\> Get-SPServiceApplication | where {$_.TypeName -eq "User Profile Service Application"} | Get-SPAudience + + This example gets all audiences from all configured user profile service applications. - Get-SPLimitedWebPartManager + Export-SPAudienceRules - Get-SPPublishingPage + Export-SPAudiences - Get-SPFile + Import-SPAudiences + + + + New-SPAudience + + + + New-SPAudienceRule + + + + Remove-SPAudience + + + + Set-SPAudience + + + + Get-SPServiceApplication - Move-SPWebPart - Web Parts + Get-SPAudienceManager + Audiences - Moves a web part on a page. + Gets the AudienceManager object which can be used to manage audiences and rules. Copyright 2016 Falchion Consulting, LLC @@ -19605,12 +20776,12 @@ PS C:\> Stop-SPAssignment -Global > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Move - SPWebPart + Get + SPAudienceManager 1.0.0.0 - Moves a web part on a page. + Gets the AudienceManager object which can be used to manage audiences and rules. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -19620,79 +20791,43 @@ PS C:\> Stop-SPAssignment -Global - Move-SPWebPart + Get-SPAudienceManager - WebPartId - String + UserProfileServiceApplication + SPServiceApplicationPipeBind - - WebPartTitle - String + + SiteSubscription + SPSiteSubscriptionPipeBind + + + AssignmentCollection + SPAssignmentCollection - Move-SPWebPart - - WebPartTitle - String + Get-SPAudienceManager + + ContextSite + SPSitePipeBind - - WebPartTitle - String + + AssignmentCollection + SPAssignmentCollection - - File - - The URL to a web part page or an instance of an SPFile object. - - SPFilePipeBind - - SPFilePipeBind - - - - - - - - WebPartId - - The ID of the Web Part to move. - - String - - String - - - - - - - - WebPartTitle - - The title of the Web Part to move. - - String - - String - - - - - - - - Zone + + UserProfileServiceApplication - The name of the web part zone to move the web part to. + Specifies the service application that contains the audience manager to retrieve. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a service application (for example, ServiceApp1); or an instance of a valid SPServiceApplication object. - String + SPServiceApplicationPipeBind - String + SPServiceApplicationPipeBind @@ -19700,27 +20835,31 @@ PS C:\> Stop-SPAssignment -Global - ZoneIndex + SiteSubscription - The index within the web part zone to move the web part to. + Specifies the site subscription containing the audience manager to retrieve. + + The type must be a valid URL, in the form http://server_name; a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a site subscription (for example, SiteSubscription1); or an instance of a valid SiteSubscription object. - Nullable`1 + SPSiteSubscriptionPipeBind - Nullable`1 + SPSiteSubscriptionPipeBind - - Publish + + ContextSite - If specified, the page will be published after moving the web part. + Specifies the URL or GUID of the Site to use for retrieving the service context. Use this parameter when the service application is not associated with the default proxy group or more than one custom proxy groups. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - SwitchParameter + SPSitePipeBind - SwitchParameter + SPSitePipeBind @@ -19771,47 +20910,59 @@ PS C:\> Stop-SPAssignment -Global - For more information, type "Get-Help Move-SPWebPart -detailed". For technical information, type "Get-Help Move-SPWebPart -full". + For more information, type "Get-Help Get-SPAudienceManager -detailed". For technical information, type "Get-Help Get-SPAudienceManager -full". ------------------EXAMPLE------------------ - PS C:\> Move-SPWebPart -File "http://server_name/pages/default.aspx" -WebPartTitle "My CQWP" -Zone "LeftZone" -ZoneIndex 0 -Publish + PS C:\> Get-SPAudienceManager -UserProfileServiceApplication "30daa535-b0fe-4d10-84b0-fb04029d161a" - This example moves the web part My CQWP to the top of the LeftZone. + This example gets the audience manager for the user profile service application with ID "30daa535-b0fe-4d10-84b0-fb04029d161a". - Get-SPList + Export-SPAudienceRules - Get-SPFile + Export-SPAudiences - Get-SPWebPartList + Import-SPAudiences - Get-SPWeb + New-SPAudience - Get-SPSite + New-SPAudienceRule + + + + Remove-SPAudience + + + + Set-SPAudience + + + + Get-SPServiceApplication - Replace-SPWebPartContent - Web Parts + Import-SPAudiences + Audiences - Replaces all occurances of the search string with the replacement string. Supports the use of regular expressions. Use -WhatIf to verify your replacements before executing. + Imports the audience and corresponding rules from an XML file to the specified user profile service application. Copyright 2016 Falchion Consulting, LLC @@ -19820,12 +20971,12 @@ PS C:\> Stop-SPAssignment -Global > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Replace - SPWebPartContent + Import + SPAudiences 1.0.0.0 - Replaces all occurances of the search string with the replacement string. Supports the use of regular expressions. Use -WhatIf to verify your replacements before executing. + Imports the audience and corresponding rules from an XML file to the specified user profile service application. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -19835,98 +20986,107 @@ PS C:\> Stop-SPAssignment -Global - Replace-SPWebPartContent - - Page - SPFilePipeBind + Import-SPAudiences + + UserProfileServiceApplication + SPServiceApplicationPipeBind - - Site - SPSitePipeBind + + SiteSubscription + SPSiteSubscriptionPipeBind - - - Replace-SPWebPartContent - - Web - SPWebPipeBind + + DeleteExisting + SwitchParameter - - Site - SPSitePipeBind + + Compile + SwitchParameter + + + InputFile + String + + + MapFile + String + + + AssignmentCollection + SPAssignmentCollection - Replace-SPWebPartContent + Import-SPAudiences - Site + ContextSite SPSitePipeBind - - Site - SPSitePipeBind + + DeleteExisting + SwitchParameter - - - Replace-SPWebPartContent - - WebApplication - SPWebApplicationPipeBind + + Compile + SwitchParameter - - Site - SPSitePipeBind + + InputFile + String - - - Replace-SPWebPartContent - - Farm - SPFarmPipeBind + + MapFile + String - - Site - SPSitePipeBind + + AssignmentCollection + SPAssignmentCollection - - SearchString + + UserProfileServiceApplication - A regular expression search string. + Specifies the service application that contains the audiences to import. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a service application (for example, ServiceApp1); or an instance of a valid SPServiceApplication object. - String + SPServiceApplicationPipeBind - String + SPServiceApplicationPipeBind - - ReplaceString + + SiteSubscription - The string to replace the match with. + Specifies the site subscription containing the audiences to update. + + The type must be a valid URL, in the form http://server_name; a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a site subscription (for example, SiteSubscription1); or an instance of a valid SiteSubscription object. - String + SPSiteSubscriptionPipeBind - String + SPSiteSubscriptionPipeBind - - WebPartName + + ContextSite - The name of the web part to update within the scope. + Specifies the URL or GUID of the Site to use for retrieving the service context. Use this parameter when the service application is not associated with the default proxy group or more than one custom proxy groups. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - String + SPSitePipeBind - String + SPSitePipeBind @@ -19934,9 +21094,9 @@ PS C:\> Stop-SPAssignment -Global - Publish + DeleteExisting - Publish or check-in the file after updating the contents. + Delete existing audiences prior to import. SwitchParameter @@ -19948,9 +21108,9 @@ PS C:\> Stop-SPAssignment -Global - UnsafeXml + Compile - Perform a replace on XML fields without iterating through the elements of the XML (do a straight search and replace on the XML string without going through the DOM) + Compile the audiences after import. SwitchParameter @@ -19961,12 +21121,12 @@ PS C:\> Stop-SPAssignment -Global - - LogFile + + InputFile - The log file to store all change records to. + XML file containing all audiences to import. The file can be generated using Export-SPAudiences. - String + String String @@ -19975,76 +21135,14 @@ PS C:\> Stop-SPAssignment -Global - - Page - - The URL to the page containing the web parts whose content will be replaced. - - SPFilePipeBind - - SPFilePipeBind - - - - - - - - Web - - Specifies the URL or GUID of the Web containing the web parts whose content will be replaced. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of Microsoft SharePoint Foundation 2010 Web site (for example, MySPSite1); or an instance of a valid SPWeb object. - - SPWebPipeBind - - SPWebPipeBind - - - - - - - - Site - - The site containing the web parts whose content will be replaced. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - - SPSitePipeBind - - SPSitePipeBind - - - - - - - - WebApplication - - The web application containing the web parts whose content will be replaced. - - The type must be a valid URL, in the form http://server_name; or an instance of a valid SPWebApplication object. - - SPWebApplicationPipeBind - - SPWebApplicationPipeBind - - - - - - - - Farm + + MapFile - Provide the SPFarm object to replace matching content in all web parts throughout the farm. + Generate a map file to use for search and replace of Audience IDs. Must be a valid filename. - SPFarmPipeBind + String - SPFarmPipeBind + String @@ -20095,59 +21193,39 @@ PS C:\> Stop-SPAssignment -Global - For more information, type "Get-Help Replace-SPWebPartContent -detailed". For technical information, type "Get-Help Replace-SPWebPartContent -full". + For more information, type "Get-Help Import-SPAudiences -detailed". For technical information, type "Get-Help Import-SPAudiences -full". ------------------EXAMPLE------------------ - PS C:\> Get-SPWeb http://portal | Replace-SPWebPartContent -SearchString "(?i:old product name)" -ReplaceString "New Product Name" -Publish + PS C:\> Import-SPAudiences -UserProfileServiceApplication "30daa535-b0fe-4d10-84b0-fb04029d161a" -DeleteExisting -Compile -InputFile c:\audiences.xml - This example does a case-insensitive search for "old product name" and replaces with "New Product Name" and publishes the changes after completion. + This example imports the audience definitions and rules from the audiences.xml file to the user profile service application with ID "30daa535-b0fe-4d10-84b0-fb04029d161a". - Get-SPLimitedWebPartManager - - - - Get-SPWebPartList - - - - Get-SPPublishingPage - - - - Get-SPFile - - - - Get-SPFarm - - - - Get-SPWebApplication + Export-SPAudienceRules - Get-SPSite + Export-SPAudiences - Get-SPWeb + Get-SPServiceApplication - Replace-SPWebPartType - Web Parts + New-SPAudience + Audiences - Replaces instances of one web part type with another web part type. + Create a new audience in the specified user profile service application. Copyright 2016 Falchion Consulting, LLC @@ -20156,12 +21234,12 @@ PS C:\> Stop-SPAssignment -Global > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Replace - SPWebPartType + New + SPAudience 1.0.0.0 - Replaces instances of one web part type with another web part type. + Create a new audience in the specified user profile service application. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -20170,31 +21248,58 @@ PS C:\> Stop-SPAssignment -Global > Gary Lapointe assumes no liability. - - Replace-SPWebPartType - - File - SPFilePipeBind - + + New-SPAudience - OldType - TypePipeBind + UserProfileServiceApplication + SPServiceApplicationPipeBind + + + SiteSubscription + SPSiteSubscriptionPipeBind - NewType - TypePipeBind + Identity + String - Title + Membership + None | Any | All | Mix + + + Owner String - Properties - Hashtable + Description + String - Publish - SwitchParameter + AssignmentCollection + SPAssignmentCollection + + + + New-SPAudience + + ContextSite + SPSitePipeBind + + + Identity + String + + + Membership + None | Any | All | Mix + + + Owner + String + + + Description + String AssignmentCollection @@ -20203,28 +21308,48 @@ PS C:\> Stop-SPAssignment -Global - - File + + UserProfileServiceApplication - The URL to a web part page or an instance of an SPFile object. + Specifies the service application where the new audience will be created. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a service application (for example, ServiceApp1); or an instance of a valid SPServiceApplication object. - SPFilePipeBind + SPServiceApplicationPipeBind - SPFilePipeBind + SPServiceApplicationPipeBind - - OldType + + SiteSubscription - The web part type to replace. + Specifies the site subscription containing the audiences to update. + + The type must be a valid URL, in the form http://server_name; a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a site subscription (for example, SiteSubscription1); or an instance of a valid SiteSubscription object. - TypePipeBind + SPSiteSubscriptionPipeBind - TypePipeBind + SPSiteSubscriptionPipeBind + + + + + + + + ContextSite + + Specifies the URL or GUID of the Site to use for retrieving the service context. Use this parameter when the service application is not associated with the default proxy group or more than one custom proxy groups. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. + + SPSitePipeBind + + SPSitePipeBind @@ -20232,13 +21357,13 @@ PS C:\> Stop-SPAssignment -Global - NewType + Identity - The web part type to replace the old type with. + The name of the audience to create. - TypePipeBind + String - TypePipeBind + String @@ -20246,13 +21371,13 @@ PS C:\> Stop-SPAssignment -Global - Title + Membership - The web part title to restrict the replacement to. + The condition under which membership is met. Valid values are None, Any, All, Mix (default is Any) - String + RuleEnum - String + RuleEnum @@ -20260,13 +21385,13 @@ PS C:\> Stop-SPAssignment -Global - Properties + Owner - Additional properties to set or override after copying the old web part properties. + The audience owner in the form domain\user - Hashtable + String - Hashtable + String @@ -20274,13 +21399,13 @@ PS C:\> Stop-SPAssignment -Global - Publish + Description - If specified the page will be published after adjusting the Web Part. + The audience description - SwitchParameter + String - SwitchParameter + String @@ -20331,31 +21456,39 @@ PS C:\> Stop-SPAssignment -Global - For more information, type "Get-Help Replace-SPWebPartType -detailed". For technical information, type "Get-Help Replace-SPWebPartType -full". + For more information, type "Get-Help New-SPAudience -detailed". For technical information, type "Get-Help New-SPAudience -full". ------------------EXAMPLE------------------ - PS C:\> Replace-SPWebPartType -File "http://server_name/pages/default.aspx" -OldType "Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart, Microsoft.SharePoint.Publishing, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" -NewType "MyContentByQueryWebPart, MyCompany.SharePoint.WebParts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4ec4b9177b831752" -Publish + PS C:\> New-SPAudience -UserProfileServiceApplication "30daa535-b0fe-4d10-84b0-fb04029d161a" -Identity "Human Resources" -Membership Any -Owner domain\user -Description "All members of the Human Resources department." - This example replaces all instances of the web part who's class name is ContentByQueryWebPart with the web part who's class name is MyContentByQueryWebPart. + This example creates a new audience named "Human Resources" in the user profile service application with ID "30daa535-b0fe-4d10-84b0-fb04029d161a". - Get-SPFile + New-SPAudienceRule + + + + Set-SPAudience + + + + Get-SPServiceApplication - Set-SPContentQueryWebPartTarget - Web Parts + New-SPAudienceRule + Audiences - Retargets a Content Query web part (do not provide list or site if you wish to show items from all sites in the containing site collection). + Create a new audience in the specified user profile service application. Copyright 2016 Falchion Consulting, LLC @@ -20364,12 +21497,12 @@ PS C:\> Stop-SPAssignment -Global > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Set - SPContentQueryWebPartTarget + New + SPAudienceRule 1.0.0.0 - Retargets a Content Query web part (do not provide list or site if you wish to show items from all sites in the containing site collection). + Create a new audience in the specified user profile service application. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -20379,151 +21512,123 @@ PS C:\> Stop-SPAssignment -Global - Set-SPContentQueryWebPartTarget + New-SPAudienceRule - WebPartId - String - - - List - SPListPipeBind + UserProfileServiceApplication + SPServiceApplicationPipeBind - Web - SPWebPipeBind + SiteSubscription + SPSiteSubscriptionPipeBind - WebPartTitle + Identity String - - AllMatching + + Clear SwitchParameter - - Site - SPSitePipeBind - - - - Set-SPContentQueryWebPartTarget - - WebPartId - String + + GroupExisting + SwitchParameter - - Site - SPSitePipeBind + + Compile + SwitchParameter - WebPartTitle - String + Rules + XmlDocument - - AllMatching - SwitchParameter + + AppendOperator + AND | OR - - Site - SPSitePipeBind + + AssignmentCollection + SPAssignmentCollection - Set-SPContentQueryWebPartTarget - - WebPartTitle - String - - - AllMatching - SwitchParameter - + New-SPAudienceRule - Site + ContextSite SPSitePipeBind - WebPartTitle + Identity String - - AllMatching + + Clear SwitchParameter - - Site - SPSitePipeBind - - - - Set-SPContentQueryWebPartTarget - - WebPartTitle - String - - - AllMatching + + GroupExisting SwitchParameter - - List - SPListPipeBind - - Web - SPWebPipeBind + Compile + SwitchParameter - WebPartTitle - String + Rules + XmlDocument - - AllMatching - SwitchParameter + + AppendOperator + AND | OR - - Site - SPSitePipeBind + + AssignmentCollection + SPAssignmentCollection - - File + + UserProfileServiceApplication - The URL to a web part page or an instance of an SPFile object. + Specifies the service application that contains the audience to update. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a service application (for example, ServiceApp1); or an instance of a valid SPServiceApplication object. - SPFilePipeBind + SPServiceApplicationPipeBind - SPFilePipeBind + SPServiceApplicationPipeBind - - WebPartId + + SiteSubscription - The ID of the Web Part to update. + Specifies the site subscription containing the audiences to update. + + The type must be a valid URL, in the form http://server_name; a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a site subscription (for example, SiteSubscription1); or an instance of a valid SiteSubscription object. - String + SPSiteSubscriptionPipeBind - String + SPSiteSubscriptionPipeBind - - WebPartTitle + + ContextSite - The title of the Web Part to update. + Specifies the URL or GUID of the Site to use for retrieving the service context. Use this parameter when the service application is not associated with the default proxy group or more than one custom proxy groups. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - String + SPSitePipeBind - String + SPSitePipeBind @@ -20531,71 +21636,79 @@ PS C:\> Stop-SPAssignment -Global - AllMatching + Identity - If more than one Content Query Web Part is found matching the title then update all matches. If not specified then an exception is thrown. + The name of the audience to update. - SwitchParameter + String - SwitchParameter + String - - Site + + Clear - Specifies the URL or GUID of the Site to show items from. - - The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. + Clear existing rules. - SPSitePipeBind + SwitchParameter - SPSitePipeBind + SwitchParameter - - List + + GroupExisting - The list to point the CQWP to. + Wraps any existing rules in parantheses. - SPListPipeBind + SwitchParameter - SPListPipeBind + SwitchParameter - - Web + + Compile - The web containing the list. This parameter is required if the List parameter is a relative URL to a list. + Compile the audiences after update. - SPWebPipeBind + SwitchParameter - SPWebPipeBind + SwitchParameter - - ListType + + Rules - The list type, or template, to show items from. + The rules XML should be in the following format: <rules><rule op='' field='' value='' /></rules> + + Values for the "op" attribute can be any of "=,>,>=,<,<=,<>,Contains,Not contains,Reports Under,Member Of,AND,OR,(,)" + + The "field" attribute is not required if "op" is any of "Reports Under,Member Of,AND,OR,(,)" + + The "value" attribute is not required if "op" is any of "AND,OR,(,)" + + Note that if your rules contain any grouping or mixed logic then you will not be able to manage the rule via the browser. + + Example: <rules><rule op='Member of' value='sales department' /><rule op='AND' /><rule op='Contains' field='Department' value='Sales' /></rules> - String + XmlDocument - String + XmlDocument @@ -20603,13 +21716,13 @@ PS C:\> Stop-SPAssignment -Global - Publish + AppendOperator - If specified the page will be published after adjusting the Web Part. + Operator used to append to existing rules. Valid values are AND or OR. Default is AND - SwitchParameter + Nullable`1 - SwitchParameter + Nullable`1 @@ -20660,47 +21773,40 @@ PS C:\> Stop-SPAssignment -Global - For more information, type "Get-Help Set-SPContentQueryWebPartTarget -detailed". For technical information, type "Get-Help Set-SPContentQueryWebPartTarget -full". + For more information, type "Get-Help New-SPAudienceRule -detailed". For technical information, type "Get-Help New-SPAudienceRule -full". ------------------EXAMPLE------------------ - PS C:\> Set-SPContentQueryWebPartTarget -List "http://server_name/lists/mylist" -File "http://server_name/pages/default.aspx" -WebPartTitle "My CQWP" -AllMatching -Publish + PS C:\> [xml]$rules = "<rules><rule op='Member of' value='sales department' /><rule op='AND' /><rule op='Contains' field='Department' value='Human Resources' /></rules>" +PS C:\> New-SPAudienceRule -UserProfileServiceApplication "30daa535-b0fe-4d10-84b0-fb04029d161a" -Identity "Human Resources" -Clear -Compile" -Rules $rules - This example targets the web part My CQWP to the list mylist. + This example adds a new rule to the audience named "Human Resources" in the user profile service application with ID "30daa535-b0fe-4d10-84b0-fb04029d161a". - Get-SPList - - - - Get-SPFile - - - - Get-SPWebPartList + New-SPAudience - Get-SPWeb + Set-SPAudience - Get-SPSite + Get-SPServiceApplication - Set-SPWebPart - Web Parts + Remove-SPAudience + Audiences - Sets the state of the web part including adding, moving, opening, closing, deleting, or updating web part properties. + The Remove-SPAudience cmdlet deletes the specified audience from the given User Profile Service Application. Copyright 2016 Falchion Consulting, LLC @@ -20709,12 +21815,12 @@ PS C:\> Stop-SPAssignment -Global > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - Set - SPWebPart + Remove + SPAudience 1.0.0.0 - Sets the state of the web part including adding, moving, opening, closing, deleting, or updating web part properties. + The Remove-SPAudience cmdlet deletes the specified audience from the given User Profile Service Application. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -20724,33 +21830,21 @@ PS C:\> Stop-SPAssignment -Global - Set-SPWebPart + Remove-SPAudience - WebPartId - String - - - File - SPFilePipeBind + UserProfileServiceApplication + SPServiceApplicationPipeBind - Properties - PropertiesPipeBind + SiteSubscription + SPSiteSubscriptionPipeBind - Action - Delete | Open | Close | Update - - - Zone + Identity String - ZoneIndex - Int32 - - - Publish + DeleteRulesOnly SwitchParameter @@ -20759,33 +21853,17 @@ PS C:\> Stop-SPAssignment -Global - Set-SPWebPart - - WebPartTitle - String - + Remove-SPAudience - File - SPFilePipeBind - - - Properties - PropertiesPipeBind + ContextSite + SPSitePipeBind - Action - Delete | Open | Close | Update - - - Zone + Identity String - ZoneIndex - Int32 - - - Publish + DeleteRulesOnly SwitchParameter @@ -20795,42 +21873,16 @@ PS C:\> Stop-SPAssignment -Global - - File - - The URL to a web part page or an instance of an SPFile object. - - SPFilePipeBind - - SPFilePipeBind - - - - - - - - WebPartId - - The ID of the Web Part to update. - - String - - String - - - - - - - - WebPartTitle + + UserProfileServiceApplication - The title of the Web Part to update. + Specifies the service application that contains the audience to remove. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a service application (for example, ServiceApp1); or an instance of a valid SPServiceApplication object. - String + SPServiceApplicationPipeBind - String + SPServiceApplicationPipeBind @@ -20838,55 +21890,45 @@ PS C:\> Stop-SPAssignment -Global - Properties - - A hash table where each key represents the name of a property whose value should be set to the corresponding key value. Alternatively, provide the path to a file with XML property settings (<Properties><Property Name="Name1">Value1</Property><Property Name="Name2">Value2</Property></Properties>). - - PropertiesPipeBind - - PropertiesPipeBind - - - - - - - - Action + SiteSubscription - Specify whether to add, close, open, delete, or update the web part. + Specifies the site subscription containing the audiences to update. + + The type must be a valid URL, in the form http://server_name; a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a site subscription (for example, SiteSubscription1); or an instance of a valid SiteSubscription object. - SetWebPartStateAction + SPSiteSubscriptionPipeBind - SetWebPartStateAction + SPSiteSubscriptionPipeBind - - Zone + + ContextSite - The name of the web part zone to move the web part to. + Specifies the URL or GUID of the Site to use for retrieving the service context. Use this parameter when the service application is not associated with the default proxy group or more than one custom proxy groups. + + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - String + SPSitePipeBind - String + SPSitePipeBind - - ZoneIndex + + Identity - The index within the web part zone to move the web part to. + The name of the audience to remove. - Nullable`1 + String - Nullable`1 + String @@ -20894,9 +21936,9 @@ PS C:\> Stop-SPAssignment -Global - Publish + DeleteRulesOnly - If specified the page will be published after adjusting the Web Part. + Delete only the rules associated with the audience. SwitchParameter @@ -20951,166 +21993,62 @@ PS C:\> Stop-SPAssignment -Global - For more information, type "Get-Help Set-SPWebPart -detailed". For technical information, type "Get-Help Set-SPWebPart -full". + For more information, type "Get-Help Remove-SPAudience -detailed". For technical information, type "Get-Help Remove-SPAudience -full". - ------------------EXAMPLE------------------ - PS C:\> Set-SPWebPart -File "http://server_name/pages/default.aspx" -WebPartTitle "My CQWP" -Action Update -Properties @{"ItemXslLink"="/Style Library/MyXsl/ItemStyle.xsl"} -Publish + ------------------EXAMPLE 1----------------------- + PS C:\> Remove-SPAudience -UserProfileServiceApplication "30daa535-b0fe-4d10-84b0-fb04029d161a" -Name "Human Resources" - This sets the ItemXslLink property of a content query web part to point to a custom XSL file. + This example deletes the "Human Resources" audience from the user profile service application with ID "30daa535-b0fe-4d10-84b0-fb04029d161a". + + + + ------------------EXAMPLE 2----------------------- + PS C:\> Remove-SPAudience -UserProfileServiceApplication "30daa535-b0fe-4d10-84b0-fb04029d161a" -Name "Human Resources" -DeleteRulesOnly + + This example deletes only the rules from the "Human Resources" audience located in the user profile service application with ID "30daa535-b0fe-4d10-84b0-fb04029d161a". - Get-SPList + Export-SPAudienceRules - Get-SPFile + Export-SPAudiences - Get-SPWebPartList + Import-SPAudiences - Get-SPWeb + New-SPAudience - Get-SPSite + New-SPAudienceRule - - - - - Get-SPWordConversionJobStatus - Word Automation - - Retrieves the conversion job status details. - - - Copyright 2016 Falchion Consulting, LLC - > For more information on this cmdlet and others: - > http://blog.falchionconsulting.com/ - > Use of this cmdlet is at your own risk. - > Gary Lapointe assumes no liability. - - Get - SPWordConversionJobStatus - 1.0.0.0 - - - Retrieves the conversion job status details. - - Copyright 2016 Falchion Consulting, LLC - > For more information on this cmdlet and others: - > http://blog.falchionconsulting.com/ - > Use of this cmdlet is at your own risk. - > Gary Lapointe assumes no liability. - - - - Get-SPWordConversionJobStatus - - Job - SPWordConversionJobPipeBind - - - AssignmentCollection - SPAssignmentCollection - - - - - - Job - - The conversion job whose status should be retrieved. - - SPWordConversionJobPipeBind - - SPWordConversionJobPipeBind - - - - - - - - AssignmentCollection - - Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used. - - When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur. - - SPAssignmentCollection - - SPAssignmentCollection - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - For more information, type "Get-Help Get-SPWordConversionJobStatus -detailed". For technical information, type "Get-Help Get-SPWordConversionJobStatus -full". - - - - - ------------------EXAMPLE------------------ - PS C:\> $job = New-SPWordConversionJob -InputList "http://server_name/WordDocs" -OutputList "http://server_name/PDFDocs" -OutputFormt PDF -OutputSaveBehavior AppendIfPossible -PS C:\> Get-SPWordConversionJobStatus $job - - This example converts the documents located in http://server_name/WordDocs and stores the converted items in http://server_name/PDFDocs and then outputs the jobs status. - - - - - New-SPWordConversionJob + Set-SPAudience + + + + Get-SPServiceApplication - New-SPWordConversionJob - Word Automation + Set-SPAudience + Audiences - Creates a new conversion job to convert one or more documents from one format to another. + Create a new audience in the specified user profile service application. Copyright 2016 Falchion Consulting, LLC @@ -21119,12 +22057,12 @@ PS C:\> Get-SPWordConversionJobStatus $job > Use of this cmdlet is at your own risk. > Gary Lapointe assumes no liability. - New - SPWordConversionJob + Set + SPAudience 1.0.0.0 - Creates a new conversion job to convert one or more documents from one format to another. This cmdlet leverages the Word Automation Service to do the conversion. Using Word Automation Services, you can convert from Open XML WordprocessingML to other document formats. For example, you may want to convert many documents to the PDF format and spool them to a printer or send them by e-mail to your customers. Or, you can convert from other document formats (such as HTML or Word 97-2003 binary documents) to Open XML word-processing documents. By default the timer job that does the conversions is schedule to run every 15 minutes - you can change this by editing the "Word Automation Services Timer Job" timer job (or manually tell it to run immediately). If you specified the Wait parameter then it may take up to 15 minutes to respond if you have not changed this default. + Create a new audience in the specified user profile service application. Copyright 2016 Falchion Consulting, LLC > For more information on this cmdlet and others: @@ -21134,94 +22072,91 @@ PS C:\> Get-SPWordConversionJobStatus $job - New-SPWordConversionJob - - InputList - SPListPipeBind - - - OutputList - SPListPipeBind + Set-SPAudience + + UserProfileServiceApplication + SPServiceApplicationPipeBind - - InputList - SPListPipeBind + + SiteSubscription + SPSiteSubscriptionPipeBind - - OutputList - SPListPipeBind + + Identity + String - - - New-SPWordConversionJob - - InputFile - SPFilePipeBind + + Membership + None | Any | All | Mix - - OutputFile + + Owner String - - InputList - SPListPipeBind + + Description + String - - OutputList - SPListPipeBind + + AssignmentCollection + SPAssignmentCollection - New-SPWordConversionJob + Set-SPAudience - InputFolder - SPFolderPipeBind + ContextSite + SPSitePipeBind - - OutputFolder - SPFolderPipeBind + + Identity + String - Recurse - SwitchParameter + Membership + None | Any | All | Mix + + + Owner + String - - InputList - SPListPipeBind + + Description + String - - OutputList - SPListPipeBind + + AssignmentCollection + SPAssignmentCollection - - InputList + + UserProfileServiceApplication - The input library whose items will be converted and copied to the output list. + Specifies the service application that contains the audience to update. - The value must be a valid URL in the form http://server_name + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a service application (for example, ServiceApp1); or an instance of a valid SPServiceApplication object. - SPListPipeBind + SPServiceApplicationPipeBind - SPListPipeBind + SPServiceApplicationPipeBind - - OutputList + + SiteSubscription - The output library where the converted items will be stored. + Specifies the site subscription containing the audiences to update. - The value must be a valid URL in the form http://server_name + The type must be a valid URL, in the form http://server_name; a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a site subscription (for example, SiteSubscription1); or an instance of a valid SiteSubscription object. - SPListPipeBind + SPSiteSubscriptionPipeBind - SPListPipeBind + SPSiteSubscriptionPipeBind @@ -21229,27 +22164,25 @@ PS C:\> Get-SPWordConversionJobStatus $job - InputFile + ContextSite - The input file that will be converted and copied to the output file. + Specifies the URL or GUID of the Site to use for retrieving the service context. Use this parameter when the service application is not associated with the default proxy group or more than one custom proxy groups. - The value must be a valid URL in the form http://server_name + The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object. - SPFilePipeBind + SPSitePipeBind - SPFilePipeBind + SPSitePipeBind - - OutputFile + + Identity - The output file where the converted item will be copied to. - - The value must be a valid URL in the form http://server_name + The name of the audience to update. String @@ -21260,161 +22193,14 @@ PS C:\> Get-SPWordConversionJobStatus $job - - InputFolder - - The input library folder whose items will be converted and copied to the output list. - - The value must be a valid URL in the form http://server_name - - SPFolderPipeBind - - SPFolderPipeBind - - - - - - - - OutputFolder - - The output library folder where the converted items will be stored. - - The value must be a valid URL in the form http://server_name - - SPFolderPipeBind - - SPFolderPipeBind - - - - - - - - Recurse - - Recursively convert all items in the folder's sub-folders. - - SwitchParameter - - SwitchParameter - - - - - - - - OutputFormat - - Specifies the Save format for this conversion job. The extension associated with the Save format specified here is appended to the output file if the extension is not already present. For example, when converting to PDF, a document with the output file name http://contoso/output/output.pdf would remain unchanged; a document with the output file name http://contoso/output/output.docx would be changed to http://contoso/output/output.docx.pdf. - - SaveFormat - - SaveFormat - - - - - - - - OutputSaveBehavior - - Specifies the behavior that should be applied when saving converted files to existing file names. - - SaveBehavior - - SaveBehavior - - - - - - - - CompatibilityMode - - Specifies the appropriate compatibility mode for the output file. If the file is not an Open XML File format document, this setting is ignored. MaintainCurrentSetting specifies that files maintain their compatibility mode as follows: - • Binary files and files in Word 97-2003 compatibility mode stay in that mode. - • Word 2007 documents or documents in Word 2007 compatibility mode stay in that mode. - • Documents upgraded to Word 2010 stay upgraded. - - CompatibilityMode - - CompatibilityMode - - - - - - - - AddThumbnail - - Indicates whether the document is saved with an added thumbnail. Setting this property has the same effect as checking Save Thumbnail in the Save As dialog in Word. - - SwitchParameter - - SwitchParameter - - - - - - - - UpdateFields - - Indicates whether any fields in the document are automatically updated when the document is opened. - - SwitchParameter - - SwitchParameter - - - - - - - - EmbedFonts - - Indicates whether fonts used within the document are obfuscated and saved within the output. This setting uses the same obfuscation mechanisms as Word. - - SwitchParameter - - SwitchParameter - - - - - - - - MarkupView - - Specifies the type(s) of markup that should be shown in the document.The possible values for this property correspond to the options available on the ribbon (Tracking group, Show Markup dropdown). The default value for this property is @(Comments, Ink, Text, Formatting), which means all types of markup are shown. - - MarkupTypes - - MarkupTypes - - - - - - - RevisionState + Membership - Specifies the visibility of revisions in the document. + The condition under which membership is met. Valid values are None, Any, All, Mix (default is Any) - RevisionState + Nullable`1 - RevisionState + Nullable`1 @@ -21422,13 +22208,13 @@ PS C:\> Get-SPWordConversionJobStatus $job - SubsetEmbeddedFonts + Owner - Indicates whether to restrict the characters that are included in the embedded font to only those characters that are required by the current document. + The audience owner in the form domain\user - SwitchParameter + String - SwitchParameter + String @@ -21436,13 +22222,13 @@ PS C:\> Get-SPWordConversionJobStatus $job - Wait + Description - If specified then the cmdlet will block until the conversion completes. + The audience description - SwitchParameter + String - SwitchParameter + String @@ -21493,39 +22279,29 @@ PS C:\> Get-SPWordConversionJobStatus $job - For more information, type "Get-Help New-SPWordConversionJob -detailed". For technical information, type "Get-Help New-SPWordConversionJob -full". + For more information, type "Get-Help Set-SPAudience -detailed". For technical information, type "Get-Help Set-SPAudience -full". - ------------------EXAMPLE 1----------------------- - PS C:\> New-SPWordConversionJob -InputList "http://server_name/WordDocs" -OutputList "http://server_name/PDFDocs" -OutputFormt PDF -OutputSaveBehavior AppendIfPossible -Wait - - This example converts the documents located in http://server_name/WordDocs and stores the converted items in http://server_name/PDFDocs. - - - - ------------------EXAMPLE 2----------------------- - PS C:\> New-SPWordConversionJob -InputFile "http://server_name/WordDocs/report.docx" -OutputFile "http://server_name/PDFDocs/report.pdf" -OutputFormt PDF -OutputSaveBehavior AppendIfPossible -Wait - - This example converts the document located in http://server_name/WordDocs/report.docx and stores the converted item as http://server_name/PDFDocs/report.pdf. - - - - ------------------EXAMPLE 3----------------------- - PS C:\> New-SPWordConversionJob -InputFolder "http://server_name/WordDocs/Reports" -OutputFolder "http://server_name/PDFDocs/Reports" -OutputFormt PDF -OutputSaveBehavior AppendIfPossible -Wait + ------------------EXAMPLE------------------ + PS C:\> Set-SPAudience -UserProfileServiceApplication "30daa535-b0fe-4d10-84b0-fb04029d161a" -Identity "Human Resources" -Membership Any -Owner domain\user -Description "All members of the Human Resources department." - This example converts the document located in http://server_name/WordDocs/Reports and stores the converted items in http://server_name/PDFDocs/Reports. + This example updates the audience named "Human Resources" in the user profile service application with ID "30daa535-b0fe-4d10-84b0-fb04029d161a". - Get-SPList + New-SPAudienceRule - Get-SPWordConversionJobStatus + New-SPAudience + + + + Get-SPServiceApplication diff --git a/Lapointe.SharePoint2013.PowerShell/Package/Package.Template.xml b/Lapointe.SharePoint2013.PowerShell/Package/Package.Template.xml index eb50536..cd2ce67 100644 --- a/Lapointe.SharePoint2013.PowerShell/Package/Package.Template.xml +++ b/Lapointe.SharePoint2013.PowerShell/Package/Package.Template.xml @@ -1,5 +1,5 @@  - + diff --git a/Lapointe.SharePoint2013.PowerShell/ReferenceAssemblies/Lapointe.PowerShell.MamlGenerator.dll b/Lapointe.SharePoint2013.PowerShell/ReferenceAssemblies/Lapointe.PowerShell.MamlGenerator.dll index b6b0222b042fda06a9692fd74e0bdb4b062eaa8d..85cd2559fd4108bc52b9a2d5e9ac4558e200ba0a 100644 GIT binary patch literal 18944 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 F@E>D>IQjqp literal 18944 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