Datasheet

WORK WITH OUTPUT 33
Getting Started with
Windows PowerShell
Basics
PART 1
e. If you use a relative path, you must specify the
Site parameter.
A valid URL in the form http://server_name or a relativ
e path in the form of /SubSites/MySubSite.
Required? false
Position? 1
Default value
Accept pipeline input? False
Accept wildcard characters? false
-AssignmentCollection <SPAssignmentCollection>
Manages objects for the purpose of proper disposal. Use
of objects, such as SPWeb or SPSite, can use large amo
unts of memory and use of these objects in Windows Powe
rShell scripts requires proper memory management. Using
the SPAssignment object, you can assign objects to a v
ariable and dispose of the objects after they are neede
d to free up memory. When SPWeb, SPSite, or SPSiteAdmin
istration objects are used, the objects are automatical
ly disposed of if an assignment collection or the Globa
l parameter is not used.
When the Global parameter is used, all objects are cont
ained in the global store. If objects are not immediate
ly used, or disposed of by using the Stop-SPAssignment
command, an out-of-memory scenario can occur.
Required? false
Position? Named
Default value
Accept pipeline input? True
Accept wildcard characters? false
-Site <SPSitePipeBind>
Specifies the URL or GUID of the site collection from w
hich to list subsites.
The type must be a valid URL, in the form of http://se
c01.indd 33c01.indd 33 5/16/2011 11:12:34 AM5/16/2011 11:12:34 AM