Deploy a Package and Shortcut it to Desktop

Comments

2 comments

  • Margus Potter

    Hi, its kinda PDQ basics > PDQ Deploy and PowerShell go together like eggs and bacon So I would use last step in deploy:

    #Create a 7-Zip Shortcut to Public Desktop with Powershell
    $TargetFile = "${Env:ProgramFiles(x86)}\7-Zip\7zFM.exe"
    $ShortcutFile = "$env:Public\Desktop\7-Zip File Manager.lnk"
    $WScriptShell = New-Object -ComObject WScript.Shell
    $Shortcut = $WScriptShell.CreateShortcut($ShortcutFile)
    $Shortcut.TargetPath = $TargetFile
    $Shortcut.Save()
    
    0
    Comment actions Permalink
  • xdakos

    thank you very much Maki

    0
    Comment actions Permalink

Please sign in to leave a comment.