Jump to content


tarinhtx

Established Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by tarinhtx

  1. I placed the command in the Installation Program line under the "Programs" tab. Deployed the application and as soon as it appeared in the Software it "Installed" but the batch file still failed to execute.
  2. Garth, would I include: psexec -i -s cmd.exe into my batch file somewhere and change it to psexec -i -s batchfilename.bat?
  3. If I copy the batch file to the user's desktop and double click to execute, it completes the shortcut "fix" which deletes the nonworking SFB start menu shortcut and pastes the functioning SFB shortcut. So after the application is deployed hidden and shows up on the client's System Center as "Installed" under status, the batch file fix never took place. I placed the filename.bat file you see above in my content location \\servername\d$\Installs. Sorry, I'm not quite sure what you mean in your second question. Thanks for helping out.
  4. I have a batch file that if I run locally on a test computer it will correct a Skype for Business 2016 shortcut problem in the start menu by replacing the shortcut with a functional one with no problem. However, I'm having trouble deploying the batch file using as an Application through SCCM 2012 R2. The application deploys and "Installs" but for some reason the batch file never runs and completes the fix. Is there something I need to change on the line for the Installation Program: "filename.bat" under the Programs tab or maybe modify the batch file? Thanks. @ECHO OFF set SCRIPT="%TEMP%\%RANDOM%-%RANDOM%-%RANDOM%-%RANDOM%.vbs" del "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Skype for Business 2016.lnk" echo Set oWS = WScript.CreateObject("WScript.Shell") >> %SCRIPT% echo sLinkFile = "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Skype for Business 2016.lnk" >> %SCRIPT% echo Set oLink = oWS.CreateShortcut(sLinkFile) >> %SCRIPT% echo oLink.TargetPath = "C:\Program Files\Microsoft Office\Office16\lync.exe" >> %SCRIPT% echo oLink.WorkingDirectory ="%SYSTEMDRIVE%\Program Files" >> %SCRIPT% echo oLink.Save >> %SCRIPT% cscript /nologo %SCRIPT% del %SCRIPT%
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.