New-Link
PackageDeployment Module Help |
Package Deployment Module (DSM eScript Commands) |
New-Link Cmdlet |
Version 1.0.0.3 |
New-Link
Synopsis
Create Shell Link
Syntax
New-Link [-Description] <String> [-CommandLine] <String> [[-WorkingDirectory] <String>] [-ComputerRelatedLink] [-ContinueOnError] [-ManageUserPortion] [-RunMinimized] [-Wow64] [[-Icon] <String>] [[-Folder] <String>] [[-Context] <String>] [<CommonParameters>]
Description
Use this command to create a link.
Parameters
-CommandLine <String> |
||||||
Displays the location and name (including the file name extension and required parameters) of the program file. |
||||||
|
-ComputerRelatedLink <SwitchParameter> |
||||||
Guarantees that the link is available to all users of a computer (e.g. by storing in the All Users profile). |
||||||
|
-Context <String> |
||||||
User: Execution under user account; logging in HKEY_CURRENT_USER, i.e. for the user. |
||||||
|
-ContinueOnError <SwitchParameter> |
||||||
Continues script execution in spite of errors in the respective command |
||||||
|
-Description <String> |
||||||
Describes the link; the text will appear below the link. |
||||||
|
-Folder <String> |
||||||
Specifies the location where you want to create the link. The actual paths are read from the registry key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders. |
||||||
|
-Icon <String> |
||||||
Displays the program icon. The name of the symbol file must not contain a comma. |
||||||
|
-ManageUserPortion <SwitchParameter> |
||||||
ensures that the software's computer portion is installed computer-related together with this link. The user portion will be post-installed as soon as the user clicks this link the first time. |
||||||
|
-RunMinimized <SwitchParameter> |
||||||
specifies how you want the window to display the item when you open the link: In a standard window, on a full screen (maximized), or as a button on the task bar (minimized). |
||||||
|
-WorkingDirectory <String> |
||||||
Specifies the path to the program's working directory. |
||||||
|
-Wow64 <SwitchParameter> |
||||||
For reasons of compatibilty, Ivanti DSM maps file and registry access to the default storage location for 32 bit applications (provided that the storage location differs from that of 64-bit applications). File access: whenever a 32-bit application attempts to access %windir%\System32, the access is redirected to %windir%\SysWOW64. Registry commands: when accessing HKEY_LOCAL_MACHINE\SOFTWARE the calls are redirected to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node. The x64-switch stops this redirection of file and registry accesses when running the script command on a x64 computer; the eScript command runs on the specified path. CallScript command: the script runs in a 64-bit process. |
||||||
|
<CommonParameters> |
For more information about common parameters, type "Get-Help about_CommonParameters". |