Sha256: 6c3d3e8312da4ecd3683da5fdd040ed19e14baaf24d459a5aa3d0c525f1c8659

Contents?: true

Size: 1.04 KB

Versions: 2

Compression:

Stored size: 1.04 KB

Contents

# fail on errors and include uplift helpers
$ErrorActionPreference = "Stop"

Import-Module Uplift.Core

Write-UpliftMessage "Running DSC Configure_Shortcuts..."

Configuration SOE_Shortcuts
{
    Import-DscResource -ModuleName DSCR_Shortcut -ModuleVersion '1.3.7'

    $desktopPath = [Environment]::GetFolderPath("Desktop")

    cShortcut IE_Desktop
    {
        Path      = "$desktopPath\IE.lnk"
        Target    = "C:\Program Files\Internet Explorer\iexplore.exe"
    
    }

    cShortcut PowerShell_ISE_Desktop
    {
        Path      = "$desktopPath\PowerShellISE.lnk"
        Target    = "%windir%\system32\WindowsPowerShell\v1.0\PowerShell_ISE.exe"
        WorkingDirectory = '%HOMEDRIVE%%HOMEPATH%'
    
    }

    cShortcut PowerShell_6_Desktop
    {
        Path      = "$desktopPath\PowerShell6.lnk"
        Target    = "C:\Program Files\PowerShell\6\pwsh.exe"
        Arguments = "-WorkingDirectory ~"
    
    }
}

$configuration = Get-Command SOE_Shortcuts
Start-UpliftDSCConfiguration $configuration $config -ExpectInDesiredState $True

exit 0

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vagrant-uplift-0.2.1902.19 lib/scripts/vagrant/uplift.vagrant.win12soe/soe.shortcuts.dsc.ps1
vagrant-uplift-0.2.1902.18 lib/scripts/vagrant/uplift.vagrant.win12soe/soe.shortcuts.dsc.ps1