Skip to content

Script Not Working When Deployed Via SCCM

Featured Replies

Here is script......

Copy-Item "\\fileserver\SCCM\Resources\Laserfiche\Laserfiche.url" -Destination "C:\Users\Public\Desktop"

Shortcut never appears.

 

That is because you are trying to copy the shortcut from a UNC. Since you are using PowerShell, create the shortcut or copy the shortcut from the local folder. 

  • Author

Ok, thanks.

 

Strange thing is this stuff has worked before and I ran the script in sccm to my own machine and it worked but not for any other collections or computers.

 

the script will work as you because you have access to the share. The script will not work from CM as the computer account generally don't have access to network shares.

  • Author

Understand but when running through CM to my machine, it works. I don't think my system has access to the share.

 

I added the computer account to the folder specified in the share....no go either.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.