< Back
New-ODFolder
Post
NAME New-ODFolder
SYNOPSIS
SYNTAX
New-ODFolder [-AccessToken] <String> [[-ResourceId] <String>] [-FolderName] <String> [[-Path] <String>]
[[-ElementId] <String>] [[-DriveId] <String>] [<CommonParameters>]
DESCRIPTION
Create a new folder.
PARAMETERS
-AccessToken <String>
A valid access token for bearer authorization.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ResourceId <String>
Mandatory for OneDrive 4 Business access. Is the ressource URI: "https://<tenant>-my.sharepoint.com/".
Example: "https://sepagogmbh-my.sharepoint.com/"
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-FolderName <String>
Name of the new folder.
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Path <String>
Specifies the parent path for the new folder. If not given, the path is "/".
Required? false
Position? 4
Default value /
Accept pipeline input? false
Accept wildcard characters? false
-ElementId <String>
Specifies the element id for the new folder. If Path and ElementId are given, the ElementId is used with a
warning.
Required? false
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-DriveId <String>
Specifies the OneDrive drive id. If not set, the default drive is used.
Required? false
Position? 6
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
Author: Marcel Meurer, marcel.meurer@sepago.de, Twitter: MarcelMeurer
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>New-ODFolder -AccessToken $AuthToken -Path "/data/documents" -FolderName "2016"
Creates a new folder "2016" under "/data/documents"
RELATED LINKS
SYNOPSIS
SYNTAX
New-ODFolder [-AccessToken] <String> [[-ResourceId] <String>] [-FolderName] <String> [[-Path] <String>]
[[-ElementId] <String>] [[-DriveId] <String>] [<CommonParameters>]
DESCRIPTION
Create a new folder.
PARAMETERS
-AccessToken <String>
A valid access token for bearer authorization.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ResourceId <String>
Mandatory for OneDrive 4 Business access. Is the ressource URI: "https://<tenant>-my.sharepoint.com/".
Example: "https://sepagogmbh-my.sharepoint.com/"
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-FolderName <String>
Name of the new folder.
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Path <String>
Specifies the parent path for the new folder. If not given, the path is "/".
Required? false
Position? 4
Default value /
Accept pipeline input? false
Accept wildcard characters? false
-ElementId <String>
Specifies the element id for the new folder. If Path and ElementId are given, the ElementId is used with a
warning.
Required? false
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-DriveId <String>
Specifies the OneDrive drive id. If not set, the default drive is used.
Required? false
Position? 6
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
Author: Marcel Meurer, marcel.meurer@sepago.de, Twitter: MarcelMeurer
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>New-ODFolder -AccessToken $AuthToken -Path "/data/documents" -FolderName "2016"
Creates a new folder "2016" under "/data/documents"
RELATED LINKS