Deploying a simple Powershell script
I am trying to deploy and run a simple Powershell script to create a shortcut to the windows Calc app. PDQ says successful but NO icon;
I know the PS1 file works because I have run the script from my desktop and it created a shortcut to the calculator on my desktop
When I deploy to my own computer with the following settings I get successful but no icon
PS File is: MakeShortcut.ps1
# Create a Calculator Shortcut with Windows PowerShell
$WshShell = New-Object -ComObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut("$Home\Desktop\Calc.lnk")
$Shortcut.TargetPath = "Calc"
Install file = C:\MakeShortcut.ps1
Command line: powershell.exe -executionpolicy unrestricted -File "MakeShortcut.ps1"
email me at firstname.lastname@example.org