question

AndyJohnstone-7281 avatar image
0 Votes"
AndyJohnstone-7281 asked EchoDu-MSFT commented

Installing an MSI from a mapped 365 SharePoint drive

Hello all,

I have a situation where a customer needs software deployed to all machines, which we have put a GPO in place for, and works well, however, a few years ago they moved the majority of their files to Office 365 Sharepoint, and have moved the rest a couple of months ago.

Due to the nature of most businesses these days, the majority of people are home working now, and because they have SharePoint files have no need to VPN in anymore, so GPO's don't work, or automated scripts to pick up the installed from the on prem DC.

They have the sharepoint site mapped by GPO which is persistant, and users will connect to the VPN if the mapping ever breaks, but only briefly, and getting them all to connect at a certain point to run a something else, well, "Customers....!"

I have tried to amend the script that I have to install from the mapped drive, but this fails, and I'm assuming because it's not the C: drive. The script I have is simple, but generally works, but I have put the script at the bottom that fails. (Normally I would have this running to a "\\SERVER\Share\xxx.msi")

Needless to say their SharePoint drive is mapped to the P: Drive. The other thought I was having is that it may be to do with the file not actually being on the machine, however te call for it should activate the retrieval?



@echo off

msiexec.exe /i "P:\deploy\XXXXXXXXX.msi" /qn /quiet /norestart

if %ERRORLEVEL% NEQ 0 GOTO :error
GOTO :end
:error
echo "This has failed"
exit 1
:end
echo "This has succeeded"
exit


office-sharepoint-online
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

EchoDu-MSFT avatar image
0 Votes"
EchoDu-MSFT answered EchoDu-MSFT commented

Hello @andyjohnstone-7281 ,

Welcome to Q&A Forum!

In my test, I can manually install the .mis from the mapped SharePoint network drive. This shows that there may be some problems with your script.

111251-1.png

111166-2.png

111225-3.png

According to my research, @echo off belongs to Batch Scripting Language. Currently, the Q&A Forum does not support this language. We suggest that you can go to the relevant programming language forum for professional help.

Thanks,
Echo Du
==================================
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.





1.png (81.9 KiB)
2.png (30.7 KiB)
3.png (100.4 KiB)
· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @andyjohnstone-7281 ,

Is there anything else I can help with regarding this issue?

You can comment us at any time and we will continue to follow up.

Thanks,
Echo Du

0 Votes 0 ·

Hi @andyjohnstone-7281 ,

Would you tell me whether your issue has been resolved or have any update ?
I am looking forward to your reply.

Have a nice day!

Thanks,
Echo Du

0 Votes 0 ·

In the end we have gone for a manual method. Unfortunately it would appear that for such a simple task the functionality is just not there.

0 Votes 0 ·

Hi @andyjohnstone-7281 ,

Thanks for your reply.

Function does not exist? Do you mean that the installed .msi application does not appear on the computer?

Thanks,
Echo Du

0 Votes 0 ·

Hi @andyjohnstone-7281 ,

Is there any procress on the problem?
I am looking forward to your reply.

Thanks,
Echo Du

0 Votes 0 ·

Hi @andyjohnstone-7281 ,

Would you tell me whether your issue has been resolved or have any update ?
I am looking forward to your reply.

Have a nice day!

Thanks,
Echo Du

0 Votes 0 ·