New-Link
PackageDeployment Module Help |
Package Deployment Module |
New-Link Cmdlet |
Version 4.0.0.5 |
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> |
||||||
By default, the PackageDeployment module assumes to run in a 64-bit PowerShell process on 64-bit systems, and therefore defaults to the 64-bit application location (if different from the 32-bit application location) for file and registry accesses. If you want to access the 32-bit counterparts (in the file system %WinDir%\SysWOW64 instead of %WinDir%\System32, in the registry HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node instead of HKEY_LOCAL_MACHINE\SOFTWARE), use the -Wow64 switch. |
||||||
|
<CommonParameters> |
For more information about common parameters, type "Get-Help about_CommonParameters". |