{
NAME
New-SPInstallPackage

SYNOPSIS
Creates a SharePoint install package


SYNTAX
New-SPInstallPackage -packageName <String> [-DisplayLevel <String>] [-LoggingType <String>] [-LogPath <String>] [-L
ogTemplate <String>] [-CompletionNotice] [-UseUIInstallMode] [-AcceptEula] [-ShowModalDialogs] [-AllowCancel] [-noZ
ip] [-ServerRole <String>] [-SetupType <String>] -PIDKey <String> -os <String> -sourceISO <String> -packageFolder <
String> [<CommonParameters>]

New-SPInstallPackage -packageName <String> [-DisplayLevel <String>] [-LoggingType <String>] [-LogPath <String>] [-L
ogTemplate <String>] [-CompletionNotice] [-UseUIInstallMode] [-AcceptEula] [-ShowModalDialogs] [-AllowCancel] [-noZ
ip] [-ServerRole <String>] [-SetupType <String>] -PIDKey <String> -os <String> -sourceFolder <String> -packageFolde
r <String> [<CommonParameters>]


DESCRIPTION
Creates a new SharePoint install package either from an ISO or folder path where the SharePoint install files are s
tored.
This also downloads all the prerequisite files from the internet and copies them to the package. A config.XML file
will be
generated and copied to the package. Also, this will create a SP_Setup.bat at the root of the folder to install all
prerequisites
and SharePoint software at one click.


PARAMETERS
-packageName <String>
Name of the custom install package.

-DisplayLevel <String>
Display level for the install GUI. Valid values are "none", "basic", "full". Default is "none".

-LoggingType <String>
The logging level for the SharePoint install. Valid values are "off", "standard", "verbose". Verbose is the def
ault.

-LogPath <String>
Place where all the log files are stored.Default value is %temp%

-LogTemplate <String>
This defines the format of the filename of the log. Default value is "SharePoint Setup Log (*).log"

-CompletionNotice [<SwitchParameter>]
The completion notice will be shown if this switch parameter is specified

-UseUIInstallMode [<SwitchParameter>]
UI mode will be used for the install, if this switch parameter is specified

-AcceptEula [<SwitchParameter>]
If specified, eula is automatically accepted. By default, SharePoint install will stop at this screen

-ShowModalDialogs [<SwitchParameter>]
If specified, the modal dialog boxes are shown

-AllowCancel [<SwitchParameter>]
If specified, you will be able to cancel the SP install

-noZip [<SwitchParameter>]
If specified, prevents creation of ZIP file of the new install package.

-ServerRole <String>
Defines the type of SharePoint server installation. Default is "APPLICATION" and the valid values are "APPLICAT
ION", "WFE", "SINGLESERVER"

-SetupType <String>
This parameter specifies what type an install is being performed. At present, this module supports only "CLEAN_
INSTALL"

-PIDKey <String>
PID for the SharePoint product install

-os <String>
OS on which you are performing the SharePoint 2010 install. Valid values are "R2","SP2", and "WIN7"

-sourceFolder <String>
Path to either the SharePoint 2010 DVD drive contents and a folder with these contents

-sourceISO <String>
Path to the SharePoint 2010 ISO file. You will require 7zip installed on the local machine to use this option

-packageFolder <String>
Path to copy the customized SharePoint 2010 install zip package

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

-------------------------- EXAMPLE 1 --------------------------

C:\PS>New-SPInstallPackage -PackageName "SP2010-R2" -PIDKey "11111-22222-33333-44444-55555" -AcceptEula -OS "R2" -
sourceISO "C:\SharePoint\SharePointServer.ISO" -packagefolder C:\SharePoint

Description
-----------
The above command will extract the SharePoint ISO file, download pre-Req files for R2, copy the config.xml with spe
cified PID &
AcceptEula set to yes, and finally creates a zip package to specified folder.




-------------------------- EXAMPLE 2 --------------------------

C:\PS>New-SPInstallPackage -PackageName "SP2010-R2" -PIDKey "11111-22222-33333-44444-55555" -AcceptEula -OS "R2" -
sourceFolder "C:\SharePoint\SharePointInstallFiles" -PackageFolder C:\SharePoint

Description
-----------
The above command will use the extracted SharePoint install files, download pre-Req files for R2, copy the config.x
ml with specified PID &
AcceptEula set to yes, and finally creates a zip package to specified package folder.




-------------------------- EXAMPLE 3 --------------------------

C:\PS>New-SPInstallPackage -PackageName "SP2010-R2" -PIDKey "11111-22222-33333-44444-55555" -AcceptEula -OS "R2" -s
ourceFolder "C:\SharePoint\SharePointInstallFiles" -PackageFolder C:\SharePoint -noZip

Description
-----------
The above command will use the extracted SharePoint install files, download pre-Req files for R2, copy the config.x
ml with specified PID &
AcceptEula set to yes, and finally copy the customized folder to specified package folder.




REMARKS
To see the examples, type: "get-help New-SPInstallPackage -examples".
For more information, type: "get-help New-SPInstallPackage -detailed".
For technical information, type: "get-help New-SPInstallPackage -full".

}

Last edited May 3, 2010 at 5:51 PM by kanthrc, version 2

Comments

No comments yet.