18 lines
1.1 KiB
PowerShell
18 lines
1.1 KiB
PowerShell
#region Event ScriptBlocks
|
||
[String]$tURL= $($tbx_SiteURL.Text)
|
||
[String]$srcSP=$($tbx_SourceFolderURL.Text)
|
||
[String]$trgSP=$($tbx_TargetFolderURL.Text)
|
||
|
||
$eventSB = @{
|
||
'btn_Start' = @{
|
||
Click = {
|
||
|
||
Connect-PnPOnline -Url $tURL -Interactive
|
||
Move-PnPFile -SiteRelativeUrl $srcSP -TargetUrl $trgSP -Force -AllowSchemaMismatch
|
||
|
||
}
|
||
}
|
||
}
|
||
|
||
#endregion Event ScriptBlocks
|