From a powershell command , I want to install a shortcut to the file on the network so the students can click the nctest.seb file to activate. Once the file activages, it will prompt the student for a yes or no question. However, the
script is failing. I have the file saved on the server. What do I have configure incorrectly?
# Create a Shortcut with Windows PowerShell
$TargetFile = "$env:\\en8v\Data\Appdeploy\NCTest\NCTEST2020\NCTest.seb"
$ShortcutFile = "$env:Public\Desktop\NCTESTSEB.lnk"
$WScriptShell = New-Object -ComObject WScript.Shell
$Shortcut = $WScriptShell.CreateShortcut($ShortcutFile)
$Shortcut.TargetPath = $TargetFile
$Shortcut.Save()
Changed typeBill_StewartTuesday, April 14, 2020 5:23 PM
Moved byBill_StewartTuesday, April 14, 2020 5:23 PMAbandoned