SCCM 2012 Logon Package (always rerun) not working

Hi All,

I've got a question/problem regarding a Logon Package.

Problem:

I've a problem with a SCCM 2012 (R2) Package that's scheduled with a Logon Assignment Schedule (alway rerun).

My Goal:

What i want to create from SCCM 2012 (R2), is a script/job that will always run when a user logs on .. whatever the result of the script/job will be.  This is working in our SCCM 2007 environment, but it's not giving the same results with SCCM2012 (R2).

To to this with SCCM 2012 (R2), i'm using a package .. because you can't deploy an application with a Logon Assignment. So (for testing) i've created a Package in it's simplest form, that only runs a command to create a directory .. there's no content, so this cannot be an issue. I created the package with the following base configuration:


-- CONFIGURATION ------------------------------------------

[PACKAGE]
All default

[PROGRAM]

#General:
Command line: cmd /c md C:\TestDir
Run: Hidden

#Requirements:
Default

#Environment:
Program can run: Only when a user is logged on (also tested it with whether or not a user is logged on)
Run mode: Run with administrator rights (also tested it with user's rights)
                 Allow users to interact with this program (also tested it without)

Drive mode: Run with UNC name

#Advanced
When this program is assigned to a computer: Run once for every user who logs on (also tested it with run once for the computer)


[Deployment]

I tried the following with a User Collection and a Device Collection:

#Deployment Setting:
Required, Install

#Scheduling:
Assignment Schedule: Log On
Rerun behaviour: Always rerun program

# User Experience
Default

# Distribution points
Default

-------------------------------------------------------------------------------------------

Whatever (working) combination i use, the package will only run once for a user. These are my test steps when i change a configuration variable:

- Delete existing deployment
- Create new deployment

- Delete C:\TestDir if exist
- Reboot machine a wait a couple of minutes
- Logon .. at this moment the 'TestDir' directory is not created yet
- initiate all client actions and wait a couple of minutes
- Logoff
- Logon .. at this moment the Package will run and creates the 'TestDir'
- Delete C:\TestDir
- Logoff
- Logon .. No Package Run
- Initiate all client actions and wait a couple of minutes
- Reboot machine a wait a couple of minutes
- Logon .. No Package Run
- And so on ......

As said before ... in our SCCM 2007 environment our Logon Package is working well!

So my question is:
Is it possible with SCCM 2012 (R2) to create a Logon Package, that will always run when (whatever) user logs on. So it's actually a logon script we are using. The reason we are not using this logonscript from a GPO or a Scheduled Task is that we need administrative credentials and have user interaction with a message box(and of course because it works in SCCM2007 ;-)

With kind regards,

Hayo Veenstra (Haytec)


  • Edited by Haytec Thursday, May 28, 2015 11:57 AM
May 28th, 2015 11:56am

is there any valuable information in execmgr.log?

What exactly you want to achieve? it doesn't make sense just create and delete folders.

Free Windows Admin Tool Kit Click here and download it now
June 10th, 2015 1:11am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics