I have been trying (unsuccessfully) to create a package within SCCM 2012 which deletes an icon from the C:\Users\All Users\Desktop\ area upon logging in.
I have tried via vbscript and cmd.
Const OverwriteExisting = TRUE
Set objNetwork = CreateObject("Wscript.Network")
Set oWS = WScript.CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
if objFSO.FileExists(userProfile & "\Desktop\icon.lnk") then
objFSO.DeleteFile userProfile & "\Desktop\icon.lnk"
if objFSO.FileExists("C:\Users\All Users\Desktop\icon.lnk") then
objFSO.DeleteFile "C:\Users\All Users\Desktop\icon.lnk"
I get an error regarding permissions as domain users are not local admins and do not have access to C:\Users\All Users\Desktop
del "C:\Users\All Users\Desktop\icon.lnk" /F /Q
Cannot find file specified as it does not have access to All Users Desktop folder running under current logged in user context.
I have set the SCCM package to run with administrator privileges but this hasn't helped.
Running as a domain admin works fine and the icon is correctly deleted from the All Users\Desktop area.
I am not really sure how SCCM executes commands or scripts under the local system account and how this does not have access to all areas locally.
Is there any other way I can simply create an SCCM package or program which deletes this icon when domain users with no local admin rights log into a machine. Ideally I would then deploy this package/program to a collection of devices.
With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.
As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)
Step 1: Make sur…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels.
Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…