external help file | Module Name | online version | schema |
---|---|---|---|
WindowsSandboxTools-help.xml |
WindowsSandboxTools |
2.0.0 |
Create a mapped folder object.
New-WsbMappedFolder [-HostFolder] <String> [-SandboxFolder] <String> [-ReadOnly] [<CommonParameters>]
You this folder to create a new mapped folder object. You can use this when creating a new Windows sandbox configuration. The sandbox will only have a C: drive.
PS C:\> $map = New-WsbMappedFolder -HostFolder c:\work -SandboxFolder c:\work
PS C:\> New-WsbConfiguration -Name work -MappedFolder $map -Description "Work sandbox"
Create a shared folder with write access and then use that object in a new configuration.
Specify the path to the local folder you want to map. This folder must already exist.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specify if you want the mapping to be Read-Only.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specify the mapped folder for the Windows Sandbox. It must start with C:\
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
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/