Installing an MSI from a mapped 365 SharePoint drive

Andy Johnstone 1 Reputation point
2021-07-01T18:31:29.877+00:00

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

----------------------------------------------------------------------------------

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Echo Du_MSFT 17,341 Reputation points
    2021-07-02T06:09:05.547+00:00

    Hello @Andy Johnstone ,

    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.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.