intune_storage.psm1
function uploadSW($uploadpath,$destinationpath) { "upload" $uploadpath $destinationpath new-AzStorageDirectory -Context $Context -ShareName 'software' -Path $destinationpath -verbose $0files=Get-ChildItem -Path $uploadpath -file foreach ($0file in $0files) { $0filename=$0file.name $0filename Set-AzStorageFileContent -Context $Context -ShareName 'software' -Path "$destinationpath/$0filename" -Source $0file.fullname -verbose } } function uploadSW2($uploadpath,$destinationpath) { "upload" $uploadpath $destinationpath new-AzStorageDirectory -Context $Context -ShareName 'software' -Path $destinationpath -verbose $0files=Get-ChildItem -Path $uploadpath -file foreach ($0file in $0files) { $0filename=$0file.name $0filename Set-AzStorageFileContent -Context $Context -ShareName 'software' -Path "$destinationpath/$0filename" -Source $0file.fullname -verbose } } |