external help file | Module Name | online version | schema |
---|---|---|---|
WindowsSandboxTools-help.xml |
WindowsSandboxTools |
2.0.0 |
Create a new Windows Sandbox configuration.
New-WsbConfiguration [-vGPU <String>] [-MemoryInMB <String>] [-AudioInput <String>] [-VideoInput <String>] [-ClipboardRedirection <String>] [-PrinterRedirection <String>] [-Networking <String>] [-ProtectedClient <String>] [-LogonCommand <Object>] [-MappedFolder <wsbMappedFolder[]>] -Name <String> [-Description <String>] [-Author <String>] [<CommonParameters>]
New-WsbConfiguration [-vGPU <String>] [-MemoryInMB <String>] [-AudioInput <String>] [-VideoInput <String>] [-ClipboardRedirection <String>] [-PrinterRedirection <String>] [-Networking <String>] [-ProtectedClient <String>] [-LogonCommand <Object>] [-MappedFolder <wsbMappedFolder[]>]
[-Metadata <wsbMetadata>] [<CommonParameters>]
This command will create a new Wsbconfiguration object. Use Export-Wsbconfiguration to save it to disk.
PS C:\> $new = New-WsbConfiguration -Name demo -LogonCommand C:\scripts\wsbscripts\sandbox-basic.cmd -MemoryInMB (4096*2) -MappedFolder (New-WsbMappedFolder -HostFolder c:\scratch -SandboxFolder c:\junk) -description "My scratch configuration"
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: Default, Enable, Disable
Required: False
Position: Named
Default value: Default
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Who is the author?
Type: String
Parameter Sets: name
Aliases:
Required: False
Position: Named
Default value: current user
Accept pipeline input: False
Accept wildcard characters: False
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: Default, Disable
Required: False
Position: Named
Default value: Default
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Provide a description for this configuration.
Type: String
Parameter Sets: name
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The path and file are relative to the Windows Sandbox configuration.
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specify a mapped folder object.
Type: wsbMappedFolder[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 4096
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
A set of metadata values. This will typically be configured by default.
Type: wsbMetadata
Parameter Sets: meta
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Give the configuration a name
Type: String
Parameter Sets: name
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: Default, Disable
Required: False
Position: Named
Default value: Default
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: Default, Enable, Disable
Required: False
Position: Named
Default value: Default
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: Default, Enable, Disable
Required: False
Position: Named
Default value: Default
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: Default, Enable, Disable
Required: False
Position: Named
Default value: Default
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: Default, Enable, Disable
Required: False
Position: Named
Default value: Default
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Learn more about PowerShell: http://jdhitsolutions.com/blog/essential-powershell-resources/