ps-scripts/Sharepoint/gui/spmover/Events.ps1

18 lines
1.1 KiB
PowerShell
Raw Normal View History

2024-03-07 08:19:15 +01:00
<EFBFBD><EFBFBD> #region Event ScriptBlocks
[String]$tURL= $($tbx_SiteURL.Text)
[String]$srcSP=$($tbx_SourceFolderURL.Text)
[String]$trgSP=$($tbx_TargetFolderURL.Text)
2024-03-07 08:19:15 +01:00
$eventSB = @{
'btn_Start' = @{
Click = {
Connect-PnPOnline -Url $tURL -Interactive
Move-PnPFile -SiteRelativeUrl $srcSP -TargetUrl $trgSP -Force -AllowSchemaMismatch
2024-03-07 08:19:15 +01:00
}
}
}
#endregion Event ScriptBlocks