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
----------------------------------------------------------------------------------