This article lists all commands available in the SPDocKit PowerShell Module and explains how to use them.
As explained in the create snapshot article there are two ways of creating a snapshot on your clients farm. Using either the SPDocKit Snapshot Wizard - Consultant or the SPDocKit PowerShell Module.
If you decided to use a PowerShell Module, here is a list of all the available commands. You can also view them in the PowerShell console it self, by running:
Get-HelpNew-SPDocKitSnapshot-full
General information on how to create a snapshot can be viewed [here]../how-to/create-snapshot.md).
If you need further assistance, please contact us.
Crawls the SharePoint farm, creating a snapshot file containing the current state of the farm's configuration at the specified location. The created file can then be used by SPDocKit Consultant to browse the configuration and document it. Note that this process might take a while, depending on the farm size and the settings selected.
By default, the New-SPDocKitSnapshot cmdlet does a full load of a SharePoint farm and creates the snapshot file in the current working directory. You can exclude the load of some settings by specifying the corresponding parameter.
Errors that occur will be logged in the Windows Event Log with the source SPDocKit PS.
Parameters:
-SiteCollectionsOffor-noSitesIfset,sitecollectionswillnotbeloaded.Loaddepthwillbesettowebapplications.Required?falsePosition?namedDefaultvalueAcceptpipelineinput?Acceptwildcardcharacters?-PersonalSitesOffor-noPersIfset,personalsiteswillbeskipped.Required?falsePosition?namedDefaultvalueAcceptpipelineinput?Acceptwildcardcharacters?-FeaturesAndSolutionsOffor-noFeatsIfset,featuresandsolutionswillnotbeloaded.Required?falsePosition?namedDefaultvalueAcceptpipelineinput?Acceptwildcardcharacters?-DatabasePermissionsOffor-noDbPermIfset,databasepermissionswillnotbeloaded.Required?falsePosition?namedDefaultvalueAcceptpipelineinput?Acceptwildcardcharacters?-ProgramsAndUpdatesOffor-noUpdatesIfset,programsandupdateswillnotbeloaded.Required?falsePosition?namedDefaultvalueAcceptpipelineinput?Acceptwildcardcharacters?-SQLServerConfigurationOffor-noSQLIfset,SQLServerconfigurationwillnotbeloaded.Required?falsePosition?namedDefaultvalueAcceptpipelineinput?Acceptwildcardcharacters?-IISSettingsOffor-noIISIfset,IISsettingswillnotbeloaded.Required?falsePosition?namedDefaultvalueAcceptpipelineinput?Acceptwildcardcharacters?-ProjectServerSettingsOffor-noPSSettingsIfset,ProjectServersettingsandProjectServerprojectswillnotbeloaded.Required?falsePosition?namedDefaultvalueAcceptpipelineinput?Acceptwildcardcharacters?-ProjectServerProjectsOffor-noPSProjIfset,ProjectServerprojectswillnotbeloaded.Required?falsePosition?namedDefaultvalueAcceptpipelineinput?Acceptwildcardcharacters?-Locationor-l<String>DefinesthelocationonthediskwheretheSPDocKitsnapshotfilewillbesaved.Required?falsePosition?namedDefaultvalueCurrentworkingdirectoryAcceptpipelineinput?Acceptwildcardcharacters?-NumberOfThreadsor-threads<UInt16>Definesthenumberofthreadsthatwillbeusedforparallelload.Maximumnumberis32.Required?falsePosition?namedDefaultvalue4Acceptpipelineinput?Acceptwildcardcharacters?-ServerLoadGlobalTimeoutor-globalTimeout<UInt16>Definesthetimeoutfortheentireserverloadprocessinseconds.Required?falsePosition?namedDefaultvalue1800Acceptpipelineinput?Acceptwildcardcharacters?-ServerLoadOperationTimeoutor-operationTimeout<UInt16>Definesthetimeoutforasingleserverloadinseconds.Required?falsePosition?namedDefaultvalue900Acceptpipelineinput?Acceptwildcardcharacters?-FarmAccessTimeoutor-accessTimeout<UInt16>DefinesthetimeoutforaccessingtheSharePointfarminseconds.Required?falsePosition?namedDefaultvalue120Acceptpipelineinput?Acceptwildcardcharacters?-VerboseIfset,alogfilewillbecreatedandsavedtothesamedirectoryasthesnapshotfile.Required?falsePosition?namedDefaultvalueAcceptpipelineinput?Acceptwildcardcharacters?<CommonParameters> This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters [here](http://go.microsoft.com/fwlink/?LinkID=113216).
Outputs:
————————EXAMPLE1————————New-SPDocKitSnapshotDoes a full load of the SharePoint farm and creates a snapshot file in the default location (current working directory).
————————EXAMPLE2————————New-SPDocKitSnapshot-PersonalSitesOff-DatabasePermissionsOff-threads8-location"C:\spdockit\" Skips personal sites and does not load database permissions, using 8 threads for parallel load. Saves the snapshot file to "C:\spdockit\" folder.
———————— EXAMPLE 3 ————————New-SPDocKitSnapshot -noFeats -noUpdates -noIIS -noSQL Excludes features and solutions, programs and updates, IIS settings and SQL Server configuration from a load, using aliases instead of full named parameters.
———————— EXAMPLE 4 ————————New-SPDocKitSnapshot -globalTimeout 3000 -FarmAccessTimeout 500Sets the server global timeout to 3000 seconds, farm access timeout to 500 seconds and does a full load of the SharePoint farm, saving the snapshot file to the default location (current working directory).