Quantcast
Channel: Configuration Manager 2012 - Application Management forum
Viewing all 4762 articles
Browse latest View live

Powershell script in package not working.

$
0
0

I'm trying to run a simple powershell script in a package. It works exactly as it should outside of the package but it will not run.
No errors in any logs and as far as I can tell sccm is running the correct command and everything It just sits at installing in software center.
This is the script:

$restartneeded = "False"
Remove-Item C:\programdata\Sophos\AutoUpdate\Logs\ALUpdate*.log -ErrorAction SilentlyContinue
Start-Process -FilePath setup.exe -ArgumentList '-crt R -s '
DO
    {
         $restartneeded = Select-String -path C:\programdata\Sophos\AutoUpdate\Logs\ALUpdate*.log -Pattern "<ErrorMessage><ID>AutoUpdate.RebootNeeded</ID>" -quiet
} Until ($restartneeded -eq "True")
Restart-Computer -ComputerName localhost -Force

I tried just using the script as the program in sccm and I got errors.

So I tried running it like "powershell.exe -File .\script.ps1" and that's where it's just sitting doing nothing until the package times out.

Anybody know what could be causing this?


Best practice in deleting Packages?

$
0
0

Good day guys

I have noticed I have made a mistake of creating a package instead of a application for Office 2013 deployment.

The question is there a best practice for deleting packages in SCCM 2012 SP1?

Or is it simply right click and delete the package in SCCM so it'll flow the change thru the distribution points with no problems? Thanks in advance

App-V Office and Proofing tools, connection group, Word shows "missing proofing tools"

$
0
0

Hi,

I have deployed Office and Office Proofing tools App-V package to a pc.
That works fine. Then I created a connection group which has both App-V packages.

When I open Word and try to check grammar, it says "missing proofing tools".

Please advise.
J.


Jan Hoedt

Applications deployed to User Collections are reinstalling automatically after I revert to a previous snapshot on a VM...

$
0
0
Hey guys,

I've been testing out the new Application Catalog feature in SCCM 2012 and I really like it! I just have one issue I can't seem to crack. My test environment consists of several Hyper-V Virtual Machines that I have snapshotted at various points in time. I've deployed a series of test applications to a collection that contains only my user account. To test the applications I've been logging into my VMs, running the install and then reverting to a previous snapshot when I'm done testing (to ensure a predictable test environment every time). To my surprise after I revert to an older snapshot I've found that SCCM will just reinstall the applications that I have been test deploying! This is actually a pretty neat trick and certainly has its uses, but for the my testing purposes its actually a bit of a problem.  Is there a setting I can change to tell SCCM to only deploy applications if the user specifically triggers it manually? 

config manager adding deadline on deployment.

$
0
0

hello all, ok so I have no maintenance windows, no scheduling set on the DP's either. every time I deploy an application (app model) a deadline keeps getting added, even though I select "as soon as possible". any idea's why this keeps happening?

thanks.

Deploying Microsoft Visual C++ Redistributable 2013

$
0
0

I have been asked to use SCCM 2012 R2 to deploy Microsoft Visual C++ Redistributable 2013 to all our workstation in the organization. Since this is only and exe file. I was hoping someone could provide the way to set this up.

I have look on the net and found a few solutions on how to do this but it keep getting fail errors when I try to deploy this to a test system.

Here is the error I receive: The software change returned error code 0x87D00607(-2016410105).

Any help would be appreciated.

Thank You

Failed to invoke EnforceApp on Application handler(0x87d01106).

$
0
0

Hi,

We are getting the " Failed to enforce app. Error 0x87d01106' error in multiple machines while deploying different applications.But the same application is working fine in other machines.Even the application is not available in CCMCACHE folder.

Software Distribution to disbaled user accounts

$
0
0

How does SCCM treat user accounts that were discovered by SCCM AD user discovery but were disabled after the discovery was complete. If these user accounts were still present in SCCM and the maintenance tasks to delete disabled objects has NOT been run, will software distribution work for these clients.


Define Requirements of an application via Powershell?

$
0
0

Hi,

I'd like to define a requirement of an application (it can only run on Windows 8.1) with Powershell, but don't find the command for it. There is this -addrequirement but do not find any examples howto use this.

Please advise.
J.


Jan Hoedt

Software Metering - Data Mismatch

$
0
0

Hello,

valid data is not coming out from software metering default reports, We've enabled software metering this year at 27th February for AutoCad application.

I do understand that Data report backs to server after every 7 days (by default) and there are many users who opens AutoCad application regularly but their information is not coming on Default Reports!! Some thing which doesn't make sense, am i missing anything here or what went wrong... Not sure?

Is there any other customize way (Like any SQL query) we can get the Data.

Need report of remote support

$
0
0

Hi ,

how can i get report of remote support thorugh SCCM 2012.

i.e how many hours i connected the system to support,start time,end time etc.

i know that from audit report we can take it,but it has only the start time ,not having the finished time.

any help to get this would highly appreciated.

regards,

Najim.

Troubleshoot App-V 5.0 packages deployed to users on a terminal server, which logfile?

$
0
0

Hi,

We have deployed some App-V packages to users on terminal servers. 1 user claims he has not received it, though he is part of the usercollection.

SCCM monitoring doesn’t make me any wiser.

 Isn’t there a logfile per user which I can check what’s going on? Or should I check the general appenforce.log of the server? J.


Jan Hoedt


Note: an answer to the lastest question in this topic, could shed a light: https://social.technet.microsoft.com/Forums/en-US/1f1a27fa-1935-4b78-abbc-0d5a9b3f5148/query-appv-package-user?forum=configmanagerapps

Query App-V package user

$
0
0

Hi,

Please see https://social.technet.microsoft.com/Forums/en-US/a09a3c3f-221b-420a-9e2b-e4931fca9ce4/query-appv-package-on-pc?forum=configmanagerapps, the exact query I have is:

select SMS_R_USER.ResourceID,SMS_R_USER.ResourceType,SMS_R_USER.Name,SMS_R_USER.UniqueUserName,SMS_R_USER.WindowsNTDomain from SMS_R_User inner join SMS_G_System_AppClientState on SMS_R_USER.UniqueUserName = SMS_G_System_AppClientState.UserName  where SMS_G_System_AppClientState.AppName = "ourappvpackage"  and G_System_AppClientState.ComplianceState = 1

Querying App-v on machines does work for me but for user I do not get any result, then also when I try to edit the query then go to query design in order to see the values, it says:

Pls advise.
J.


Jan Hoedt

Note: my deploy is targetted to an AD group which has again an AD-group instead of directly users. Could that be any issue?

SCCM 2012 Logon Package (always rerun) not working

$
0
0

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)


1602 return code error

$
0
0

Hello,

We are deploying the internal application to our clients (win7)and when I created the package.

Package creationanddeploymentinSCCMLABEnvironmentis successful.
The packagehas been exportedenvironment"SCCMPROD"for deploymentinproduction.
Thedeploymentfailsreturning theerror"1602return code."
I havecompletely rebuiltthe package inthe SCCM,I still havethe problem.

Recap:

-In the SCCM LAB working fine

-In the SCCM PROD Env. NOT work
Can you help me?

Tanks a lot


Query

$
0
0

Hi,

Please see https://social.technet.microsoft.com/Forums/en-US/1f1a27fa-1935-4b78-abbc-0d5a9b3f5148/query-appv-package-user?forum=configmanagerapps

My question: I'm updating my usercollection every hour now but that makes no sense if the data gathered, being SMS_G_System_AppClientState.UserName (https://msdn.microsoft.com/en-us/library/hh949466.aspx?f=255&MSPPError=-2147217396) is only gathered once a week.

Is it the hardware inventory? That's collected every 2 days so my update of the collection needs to be 2 days then.

J.


Jan Hoedt

Can't delete application because of a (Non-existent) dependent Task sequence

$
0
0
I am running CM 2012 R2.  I have an application that I can not delete because it tells me that there are 5 task sequences dependent on it.  I am able to retire it though. 

I removed all revisions and even deleted the deployment type.

I have tried this script http://blogs.msdn.com/b/customer_reviews_of_stb_products/archive/2013/07/09/powershell-with-system-center-configuration-manager-2012-shortens-long-administrative-efforts-with-task-sequence-dependencies-by-dujon-walsham.aspx , but it does not find any dependent task sequences.

I have also utilized a console extension from David Obrien http://www.david-obrien.net/2014/05/configmgr-console-extension-find-referenced-task-sequences/ that does a check for dependencies, and it reported that there were none for that application. 

Attempting to remove via the Remove-CMApplication cmdlet displays the same dependency message.  Any one have any other ideas?

Machines exclude from Reboot ?

$
0
0

I have 5 machines which not yet all restart automatically after patch push what to do any one guide ? 

I did so few steps but it's not working out 


Best Regard's Krishna

Unpublish-AppvClientPackage : Operation cannot be completed because package is not published to the target of the operation. Please make sure that the package is published.

$
0
0

Hi,

We deploy a new version of an App-V package to several systems (version 2.0). Some machines have version 1.0 installed but some don't (because they were newly built/deployed). For those machines we see in the appenforce.log the error:

Unpublish-AppvClientPackage : Operation cannot be completed because package is
not published to the target of the operation. Please make sure that the package
 is published.
Operation attempted: Unpublish AppV Package.
AppV Error Code: 0200000509.

No worries for me, as long as the package  (version 2.0) would be correctly installed but it isn't. Status in Software Center shows "update failed" and nothing happens. I can't just republish version 1.0 just to make this work, right?

Please advise,

.


Jan Hoedt

Download failed for content Content under context error 0x80070005

$
0
0

Dear All,

I'm facing issue which is already known error, but here situation is little bit different after googling it came to know that this error is due to your NA account which might be not properly configured but i have double checked it its properly configured and as you can see the error log there SID is showing which should be of NA Account but it is actually showing SID my user with im logged in. 

I have also configured to DP to allow anonymously but didn't worked that

For Ref see snapshots


In below snapshot you can clearly see that its using SID of user with whom im logged in.



REGARDS DANISH DANIE

Viewing all 4762 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>