WinRM endless loop script/package sccm 2012

I'm trying to enable winrm in task sequence for sccm 2012 during installation of Windows 7 clients.
winrm quickconfig -quiet -force
or
cmd /c winrm quickconfig -quiet -force
I have tried variations of this but I always get an endless loop, doesn't matter if I do command line or a package with a bat file.
Anyone else having this issue?

What I mean with loop, is that it keeps rerunning the same command over and over again. In task manager I see multiple cmd processes running. If I manually run the command in cmd it configures it correctly.
Here is the essential part of execmgr.log:
<![LOG[Successfully prepared command line "C:\WINDOWS\system32\cmd.exe" /c winrm quickconfig -quiet -force]LOG]!><time="14:26:03.416-60" date="12-04-2014" component="execmgr" context="" type="1"
thread="2572" file="scriptexecution.cpp:650">
<![LOG[Command line = "C:\WINDOWS\system32\cmd.exe" /c winrm quickconfig -quiet -force, Working Directory = C:\Windows\ccmcache\13\]LOG]!><time="14:26:03.416-60" date="12-04-2014" component="execmgr" context=""
type="1" thread="2572" file="scriptexecution.cpp:352">
<![LOG[Created Process for the passed command line]LOG]!><time="14:26:03.427-60" date="12-04-2014" component="execmgr" context="" type="1" thread="2572" file="scriptexecution.cpp:513">
<![LOG[Raising event:
[SMS_CodePage(850), SMS_LocaleID(1053)]
instance of SoftDistProgramStartedEvent
 AdvertisementId = "S012000E";
 ClientID = "GUID:5b5d231d-116e-47f0-81d0-c93839a752e2";
 CommandLine = "\"C:\\WINDOWS\\system32\\cmd.exe\" /c winrm quickconfig -quiet -force";
 DateTime = "20141204132603.431000+000";
 MachineName = "SCCMTESTVMSTHLM";
 PackageName = "S010005C";
 ProcessID = 1344;
 ProgramName = "WinRM";
 SiteCode = "S01";
 ThreadID = 2572;
 UserContext = "NT instans\\SYSTEM";
 WorkingDirectory = "C:\\Windows\\ccmcache\\13\\";
]LOG]!><time="14:26:03.435-60" date="12-04-2014" component="execmgr" context="" type="1" thread="2572" file="event.cpp:715">
<![LOG[Raised Program Started Event for Ad:S012000E, Package:S010005C, Program: WinRM]LOG]!><time="14:26:03.437-60" date="12-04-2014" component="execmgr" context="" type="1" thread="2572"
file="executioncontext.cpp:459">
<![LOG[Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="S010005C",ProgramID="WinRM", actionType 1l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l]LOG]!><time="14:26:03.439-60"
date="12-04-2014" component="execmgr" context="" type="1" thread="2572" file="event.cpp:405">
<![LOG[Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="S010005C",ProgramID="WinRM", actionType 1l, value , user NULL, session 4294967295l, level 0l, verbosity 30l]LOG]!><time="14:26:03.478-60"
date="12-04-2014" component="execmgr" context="" type="1" thread="2572" file="event.cpp:405">
<![LOG[MTC task with id {4BC725EF-6456-4C9E-AEEA-F3639600D829}, changed state from 4 to 5]LOG]!><time="14:26:03.511-60" date="12-04-2014" component="execmgr" context="" type="1" thread="2912"
file="execreqmgr.cpp:6288">
<![LOG[Program exit code 1]LOG]!><time="14:28:40.165-60" date="12-04-2014" component="execmgr" context="" type="1" thread="296" file="scriptexecution.cpp:676">
<![LOG[Looking for MIF file to get program status]LOG]!><time="14:28:40.177-60" date="12-04-2014" component="execmgr" context="" type="1" thread="296" file="executionstatus.cpp:282">
<![LOG[Script for Package:S010005C, Program: WinRM failed with exit code 1]LOG]!><time="14:28:40.178-60" date="12-04-2014" component="execmgr" context="" type="3" thread="296" file="executionstatus.cpp:252">

Similar Messages

  • Trying to deploy a VB Script via sccm 2012 R2

    Hello All
    This is my first attempt at deploying a script via SCCM 2012 R2 and I seem to be stuck. Essentially what this script does is map a printer. The script on its own works fine. Meaning it works when I double click it and also running it from the command
    line. Its  when I try to use in sccm things go down hill. I have tried the following from the command line in the package properties.
    \\my-sccm-server\Sources\Applications\VBSripts\cscript.exe Impact.vbs
    \\my-sccm-server\Sources\Applications\VBSripts\Impact.vbs 
    Phil Balderos

    looks good :)
    You can check execmgr.log on the client to monitor the install as it is running.
    Thank Richk,
    Still no luck. Here is the output from execmgr.log. Its saying that is completed but nothing ever happens. I am about ready to throw in the towel on this one but I just feel like that is should work because its such a simple script.
    Set WshNetwork = CreateObject("WScript.Network")
    WshNetwork.AddWindowsPrinterConnection "\\srv-gtt-papercut\followme"
    WshNetwork.SetDefaultPrinter "\\srv-gtt-papercut\followme"
    Phil Balderos
    Is the script running as an Admin ,if so then you likely set the printer up for the local system user account and not anyone else.
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • Running WMI repair script on SCCM 2012 primary site server

    Hi,
    running WMI rebuilding repository script on SCCM 2012 primary site server. Any idea what kind of issue on SCCM environment it will cause.
    Regards,
    Gopi

    Gah!  did you already do so? I hope your resume is up to date.  As to what kind of issues:  it'll break everything, and nothing will ever work right ever again.  Ever. Again.
    Standardize. Simplify. Automate.

  • Uninstall App-v office 2013 package sccm 2012

    Hi ,
    how do we add uninstall command to office 2013 appv appliation in sccm 2012, i see no option were we can give command lines unlike normal msi apps.
    please confirm
    Thanks

    Please take a look at this previous thread:
    https://social.technet.microsoft.com/Forums/en-US/6663cb6e-23c1-48e6-a62e-85c447b88f3d/appv-application-uninstall-with-sccm-2012-integration?forum=mdopappv
    PLEASE MARK ANY ANSWERS TO HELP OTHERS Blog:
    rorymon.com Twitter: @Rorymon

  • Creating powershell scripts using SCCM 2012 device properties

    I am trying to create a PowerShell script that will create a MAB object based on SCCM device properties. This MAB object is needed to reimage over our network.
    My goal is to create a task sequence that will utilize these properties and create the MAB object in our AD. This will be the first step in my Task Sequence. This will have to use the SCCM device MAC Addresses property information to populate a
    sAMAccount property in my AD object.
    Any suggestions on how to start this process?

    I am still working on actually getting the full process completed here. I have a script that completes the necessary task of creating an MAB object in our Active Directory. This works from a command line opened on the client machine. When I deploy the script
    in a Task Sequence it does not complete. Here is what I am deploying in my task sequence.
    %winDir%\System32\windowsPowershell\v1.0\powershell.exe -noprofile -command Set-ExecutionPolicy Bypass LocalMachine -force
    %winDir%\System32\windowsPowershell\v1.0\powershell.exe -noexit -command import-module ActiveDirectory -force;MABCreation.ps1 -force;Set-ExecutionPolicy RemoteSigned LocalMachine -force
    This errors at the import step everytime. I have created a batch file and used the command line option in the task sequence. I have also tried to Disable 64 bit file redirection option on and off. Any further suggestions?

  • SCCM 2012 CU1: client patching needed?

    Hi,
    We installed SCCM 2012 R2 patch on the sccm server some time ago.
    Now I wonder:
    -do we need to take specific actions to update existing clients? -probably yes -deploying the package sccm 2012 client that the upgrade installed?-
    -new deployed clients take the CU1 update automatically in their deploy, correct (I noticed that somewhere in a log if I remember correct)
    -what would be the impact if we do not take actions (as for now no issues).
    J.
    Jan Hoedt

    Yes, you need to deploy CU1 to the clients -- it is in no way automatic (unfortunately).
    Here's the official guidance for deploying updates: http://technet.microsoft.com/en-us/library/jj553405.aspx
    There aren't any specific negative ramifications of not doing so, but anything added by CU1 -- like fixes -- won't affect the client if the client doesn't have the CU installed also.
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • SCCM 2012 R2 Configuration Manager Client Package - stuck "In Progress"

    Hi Team; I’m having 2 issues with SCCM 2012 R2:
    Issue 1: I'm having a strange issue with the default XXX00002 package - "Configuration Manager Client Package",
    it will not deploy to the Secondary Site DP. The console is saying "In Progress" - below is the output from the
    distmgr.log file.
    ~Package BDC00002 does not have a preferred sender. 
    $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 16:00:23.443+240><thread=6032 (0x1790)>
    ~CDistributionSrcSQL::UpdateAvailableVersion PackageID=BDC00002, Version=1, Status=2301 
    $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 16:00:23.444+240><thread=6032 (0x1790)>
    ~StoredPkgVersion (1) of package BDC00002. StoredPkgVersion in database is 1. 
    $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 16:00:23.462+240><thread=6032 (0x1790)>
    ~SourceVersion (1) of package BDC00002. SourceVersion in database is 1. 
    $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 16:00:23.462+240><thread=6032 (0x1790)>
    ~Package BDC00003 does not have a preferred sender. 
    $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 16:00:23.443+240><thread=6092 (0x17CC)>
    ~CDistributionSrcSQL::UpdateAvailableVersion PackageID=BDC00003, Version=1, Status=2301 
    $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 16:00:23.464+240><thread=6092 (0x17CC)>
    STATMSG: ID=2301 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=BBK-SCCM-PRI.bbk2310.com SITE=PRI PID=2768 TID=6032 GMTDATE=Mon Mar 17 20:00:23.476 2014
    ISTR0="Configuration Manager Client Package" ISTR1="BDC00002" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=1 AID0=400 AVAL0="BDC00002" 
    $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 16:00:23.477+240><thread=6032 (0x1790)>
    StateTable::CState::Handle - (2301:1 2014-03-17 20:00:23.476+00:00) >> (0:0 2014-02-28 16:33:45.383+00:00) 
    $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 16:00:23.484+240><thread=6032 (0x1790)>
    CStateMsgReporter::DeliverMessages - Queued message: TT=1401 TIDT=0 TID='8ACCAE01-5079-4FCD-A988-C1CD3004B698' SID=2301 MUF=0 PCNT=2, P1='PRI' P2='2014-03-17 20:00:23.476+00:00' P3='' P4=''
    P5=''  $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 16:00:23.495+240><thread=6032 (0x1790)>
    ~StoredPkgVersion (1) of package BDC00003. StoredPkgVersion in database is 1. 
    $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 16:00:23.496+240><thread=6092 (0x17CC)>
    ~SourceVersion (1) of package BDC00003. SourceVersion in database is 1. 
    $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 16:00:23.497+240><thread=6092 (0x17CC)>
    STATMSG: ID=2301 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=BBK-SCCM-PRI.bbk2310.com SITE=PRI PID=2768 TID=6092 GMTDATE=Mon Mar 17 20:00:23.510 2014
    ISTR0="Configuration Manager Client Upgrade Package" ISTR1="BDC00003" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=1 AID0=400
    AVAL0="BDC00003"  $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 16:00:23.510+240><thread=6092 (0x17CC)>
    StateTable::CState::Handle - (2301:1 2014-03-17 20:00:23.510+00:00) >> (0:0 2014-02-28 16:33:45.383+00:00)
     $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 16:00:23.515+240><thread=6092 (0x17CC)>
    CStateMsgReporter::DeliverMessages - Queued message: TT=1401 TIDT=0 TID='8ACCAE01-5079-4FCD-A988-C1CD3004B698' SID=2301 MUF=0 PCNT=2, P1='PRI' P2='2014-03-17 20:00:23.510+00:00' P3='' P4=''
    P5=''  $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 16:00:23.526+240><thread=6092 (0x17CC)>
    CStateMsgReporter::DeliverMessages - Created state message file: D:\Program Files\Microsoft Configuration Manager\inboxes\auth\statesys.box\incoming\1sfb1dbj.SMX  
    $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 16:00:23.571+240><thread=6032 (0x1790)>
    Successfully send state change notification 8ACCAE01-5079-4FCD-A988-C1CD3004B698 
    $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 16:00:23.572+240><thread=6032 (0x1790)>
    ~Exiting package processing thread. 
    $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 16:00:23.574+240><thread=6032 (0x1790)>
    CStateMsgReporter::DeliverMessages - Created state message file: D:\Program Files\Microsoft Configuration Manager\inboxes\auth\statesys.box\incoming\abaibh8y.SMX  
    $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 16:00:23.637+240><thread=6092 (0x17CC)>
    Successfully send state change notification 8ACCAE01-5079-4FCD-A988-C1CD3004B698 
    $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 16:00:23.683+240><thread=6092 (0x17CC)>
    ~Exiting package processing thread. 
    $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 16:00:23.685+240><thread=6092 (0x17CC)>
    Sleep 30 minutes... 
    $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 16:00:26.886+240><thread=2936 (0xB78)>
    ~Used 0 out of 3 allowed processing threads. 
    $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 16:00:27.948+240><thread=4900 (0x1324)>
    ~Sleep 3600 seconds... 
    $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 16:00:27.950+240><thread=4900 (0x1324)>
    Sleep 30 minutes... 
    $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 16:00:31.934+240><thread=2936 (0xB78)>
    ~Used 0 out of 3 allowed processing threads. 
    $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 16:00:33.021+240><thread=4900 (0x1324)>
    ~Sleep 3600 seconds... 
    $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 16:00:33.023+240><thread=4900 (0x1324)>
    ~Used 0 out of 3 allowed processing threads. 
    $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 16:00:38.108+240><thread=4900 (0x1324)>
    ~Sleep 3600 seconds... 
    $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 16:00:38.111+240><thread=4900 (0x1324)>
    Sleeping for 60 minutes before content cleanup task starts.~ 
    $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 16:06:28.094+240><thread=4968 (0x1368)>
    Sleep 30 minutes... 
    $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 16:30:52.271+240><thread=2936 (0xB78)>
    Sleep 30 minutes... 
    $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 17:01:10.002+240><thread=2936 (0xB78)>
    ~Used 0 out of 3 allowed processing threads. 
    $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 17:01:10.977+240><thread=4900 (0x1324)>
    ~Sleep 3600 seconds... 
    $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 17:01:10.979+240><thread=4900 (0x1324)>
    Sleeping for 60 minutes before content cleanup task starts.~ 
    $$<SMS_DISTRIBUTION_MANAGER><03-17-2014 17:06:55.337+240><thread=4968 (0x1368)>
    Issue 2: I'm trying to deploy a couple of Packages/Applications using SCCM 2012 R2 running on Win2K8 R2 with no luck, knowing that I could install the packages
    on a test VM “in the DataCenter site”, but when trying to deploy the packages to production PC “in the Office Site”,
     the status is packages deployment compliance stuck at 0%
    Infrastructure:
    3 SCCM servers: CAS, PRI & SEC. Both CAS and PRI are in the DataCenter site, and SEC is in the Office site. The office site has several IP subnets.
    Boundaries are configured through Forest Discovery “IP Ranges and AD Sites” since that the AD site should contain all the IP subnets that the AD site contains, Boundaries groups are also configured and a site reference
    server is configured for each group respectively.
    A OU based Collection has been configured that contains 13 PC "the collection contains the PCs that the packages should be installed.
    Packages/Applications are configured correctly since that I could successfully deploy the packages to the test VM which is on the same subnet as the CAS and the PRI servers "the DataCenter subnet". The issue
    is that I can't deploy the packages to production PCs in the Office subnet!
    Firewall rules are configured and applied via GP, and I even turned Windows Firewall off, and still nothing! I tried to manually initiate Computer Policy download via the SCCM GUI and via a script, still no luck!
    I tried configuring IP Subnet Boundaries, still no luck!!
    Here are the last 2 lines in the LocationServices.log of a client PC at the Office Site:
    <![LOG[MPLIST requests are throttled for 00:00:44]LOG]!><time="14:47:00.766+240" date="03-17-2014" component="LocationServices" context="" type="2" thread="5776"
    file="lssecurity.cpp:4528"> <![LOG[Current AD site of machine is Default-First-Site-Name]LOG]!><time="14:47:00.777+240" date="03-17-2014" component="LocationServices" context="" type="1"
    thread="4884" file="lsad.cpp:770">
    And here are the last 4 lines in the ClientLocation.log
    <![LOG[Rotating assigned management point, new management point [1] is: BBK-SCCM-PRI.bbk2310.com (7958) with capabilities: <Capabilities SchemaVersion="1.0"><Property Name="SSLState"
    Value="0"/></Capabilities>]LOG]!><time="14:49:04.880+240" date="03-17-2014" component="ClientLocation" context="" type="1" thread="3600" file="lsad.cpp:6311">
    <![LOG[Assigned MP changed from <BBK-SCCM-PRI.bbk2310.com> to <BBK-SCCM-PRI.bbk2310.com>.]LOG]!><time="14:49:04.891+240" date="03-17-2014" component="ClientLocation" context="" type="1"
    thread="3600" file="lsad.cpp:1532"> <![LOG[Rotating proxy management point, new management point [1] is: BBK-SCCM-SEC.bbk2310.com (7958) with capabilities: <Capabilities SchemaVersion="1.0"><Property Name="SSLState"
    Value="0"/></Capabilities>]LOG]!><time="14:49:05.345+240" date="03-17-2014" component="ClientLocation" context="" type="1" thread="3600" file="lsad.cpp:6374">
    <![LOG[Rotating local management point, new management point [1] is: BBK-SCCM-SEC.bbk2310.com (7958) with capabilities: <Capabilities SchemaVersion="1.0"><Property Name="SSLState" Value="0"/></Capabilities>]LOG]!><time="14:49:05.786+240"
    date="03-17-2014" component="ClientLocation" context="" type="1" thread="3600" file="lsad.cpp:6436">
    It looks like clients in the Office Site can’t connect to the DP/MP of the Secondary Site server which is also a DP.
    While on the PC that the application was installed on I see the folowing in the LocationService.log:
    <![LOG[Distribution Point='http://BBK-SCCM-PRI.bbk2310.com/SMS_DP_SMSPKG$/Content_69547d2a-339f-4ac4-9523-238c79ff8a52.1', Locality='LOCAL', DPType='SERVER', Version='7958', Capabilities='<Capabilities SchemaVersion="1.0"><Property
    Name="SSLState" Value="0"/></Capabilities>', Signature='http://BBK-SCCM-PRI.bbk2310.com/SMS_DP_SMSSIG$/Content_69547d2a-339f-4ac4-9523-238c79ff8a52.1.tar', ForestTrust='TRUE',]LOG]!><time="14:42:59.506+240"
    date="03-17-2014" component="LocationServices" context="" type="1" thread="224" file="lsutils.cpp:415"> <![LOG[Calling back with locations for location request {144620BC-4BF0-4878-9554-F67D305ECCF8}]LOG]!><time="14:42:59.522+240"
    date="03-17-2014" component="LocationServices" context="" type="1" thread="224" file="replylocationsendpoint.cpp:220">
    Is there something wrong with the Distribution point on the Secondary Site server?
    Please help…
    Thanks..

    Update:
    I fixed the issue with the default XXX00002 package - "Configuration Manager Client Package", it will not deploy to the Secondary Site DP. I did that through "Update Distribution Points" option, and after a while the status was 100%.
    However; the second issue is still unsolved...
    Please help..

  • Automate USER BASED PACKAGE installations in SCCM 2012

    Hi All,
    I want to automate the installation of software(in my case a user based package) from the Application Catalog.
    Here is just some general information:
    1. All software(Applications and Packages) deployed to Device Colllections will be published in Software Center
    2. All software(Applications and Packages) deployed to User Based Collections will be published in the Application Catalog
    3. Once software has been deployed from the Application Catalog, it is also available/visible in Software Centre .. this could be confusing for (scripted) test purposes!
    To Automate installations i tested the following (Powershell) methods:
    Methode 1 - Install Device Based Packages (This works)
    $SoftwareCenter = New-Object -ComObject UIResource.UIResourceMgr
    # to show applications
    $Application = $SoftwareCenter.GetAvailableApplications() | where {$_.name -like $APPNAME}
    # to install an application
    $SoftwareCenter.ExecuteProgram($Application.id, $Application.PackageId, $true)
    (once an User Based Package has been installed from the Application Catalog, it will be shown in the results of this method .. but initially it don't!!)
    Method 2 - Install Device based Applications (This works)
    Invoke-WmiMethod -Namespace root\ccm\clientsdk -Class CCM_Application -Name Install -ArgumentList 0,"xxAPP scope IDxx",$True,$False,1,1
    Method 3 - Install User based Applications
    Invoke-WmiMethod -Namespace root\ccm\clientsdk -Class CCM_Application -Name Install -ArgumentList 0,"xxAPP scope IDxx",$False,$False,1,1
    (once an User Based Application has been installed from the Application Catalog, this method can be used .. but initially it can't!!)
    Method 4 - Install User Based Packages (NOT WORKING)
    This solution is based on an (scripted) installation from the Application Catalog. Information can be found on the following sites:
    http://blogs.technet.com/b/configmgrteam/archive/2012/09/19/extending-the-application-catalog-in-system-center-2012-configuration-manager.aspx
    http://allthingsconfigmgr.wordpress.com/2012/10/02/application-catalog-uncovered/#more-284
    You can see the usable operations/methodes, by using the following URL in your SCCM 2012 environment:
    http://YOURSITE/CMApplicationCatalog/ApplicationViewService.asmx
    The method i tried for an installation part is 'installapplication', see example below:
    $service.Installapplication($appid, $deviceid, $null)
    This syntax is correct because it's giving a result that indicates the my command was correct(when i change the variables it produces an error), but that's it ... no application is installed.
    For the record: the operations/methods 'RequestApplicationForUser and GetApplications' are working fine.
    There is also log file 'ServicePortalWebService.log' on the Application Catalog Server in
    C:\Program Files\SMS_CCM\CMApplicationCatalogSvc\Logs, where i can see that Installation call is (correctly) be done.
    To be short:
    Is there anybody who can tell me how to automate (with Powershell) an USER BASED PACKAGE installation?
    With kind regards,
    Hayo Veenstra

    Thanks for your reaction.
    What i want is creating shortcuts in the startmenu of a user, that initiates a SCCM software installation. We also use this method for our SCCM 2007 environment by initating advertisments. I do not want a required user deployments, because when that user
    logs on on another machine (for a short time) .. all his/her software will be deployed. So i do not want to install unnescessary software .. only what a user initiates.
    Do you have other suggestions?
    I'm not sure about the shortcuts.  But, as for required deployments to users installing on all machines they log onto:  Not if you have User Device Affinity running for you.  You can set a requirement in the application to only install on a user's
    primary device.  Another option that we often deploy is to use App-V to deploy a virtual version of that app if the device they logged onto is not their primary.  When they log off, it goes away.  This is all done using User Device Affinity. 
    This is new in 2012. 

  • App v package distribution issue to sccm 2012 DP

    Hi,
    We are migrating app-v 4.6 packages to sccm 2012 , after importing the packages when we update DP its not copying the dependent scripts inside the appv package to Dp and hence when application launches it fails to launch the vb script.
    the script is made to run when shortcut is launched, but no vb script is copied to DP , but I have all files intact in source folder iyt just copies .sprj,xml,osd.
    Please suggest how to make all the files in package abcd.001 to get copied in DP.
    Does App-v package distribution is different from normal package.
    Thanks
    Shuaib

    Open up the app in the sequencer, add the file to your scripts folder. If the script requires to be run elevated, you'll want to use the Deployment config file and use Global publishing....
    If you don't need elevation you can use the User Config and won't need to publish globally.
    Fore more info and some examples, check this out:
    http://blogs.technet.com/b/appv/archive/2012/12/10/scripting-and-embedded-scripting-for-appv-5-0-dynamic-deployment-and-user-configuration-scripting.aspx
    PLEASE MARK ANY ANSWERS TO HELP OTHERS Blog:
    rorymon.com Twitter: @Rorymon

  • SCCM 2012 SP1 CU4 migrated DP shows package status "unknown"

    I have a SCCM 2012 SP1 CU4 environment and have shared SCCM 2007 distribution points.
    Today I migrated one of the DP's which seems to work well.
    However all my packages shows now the status "unknown" for this migrated DP.
    This is a problem which should be fixed in CU4 according to the CU4 description. But it is not :-(
    Any idea how to solve this ? R2 install ?

    Some additional information:
    I noticed that the package sources are still available at the "old" ditribution point share abd not on the new sccm 2012 distribution point share. When performing actions described in step 3 below the package becomes available on the distribution point
    share......then i guess i can remove the content from the "old" distribution point share ????
    I noticed that when a package got the status "unknown" for de migrated DP the following action fix the problem:
    --> i remove the DP from the package and immediately add it again, the package status becomes "Successful".....hummm....ok....maybe a script could be created for this
    I noticed that when a package got the status "unknown" and the package is also located on the "distribution point share" then following will fix the issue:
    --> edit the package and remove the migrated DP and remove the checkbox for string on the distribution point share. Then add the DP again, click Apply and then set the checkbox for storing on the distribution point share and Apply again. Then wait and package
    will become available Successful and the package will become available on the distribution point share
    But i have 800 packages and 50 to be migrated DP's.....this is not a solution....but what is ????
    Any help, ideas, tips, hints, recommendations ?
    My overal thoughts are that migrating of a SCCM 2007 DP is not really working at all !!!!!
    Or does someone has other experience with e.g. R2 installed ? If so then I will upgrade first...

  • Installing SCRIPT'S from SCCM 2012 R2

    Hello
    I am using SCCM 2012 R2 in my environment recently. I am able to install SCEP to most of my computers, but there are around 150 computers that are facing difficulty in installing SCEP because of old incompatible antivirus (Password Protected). The protected
    password cannot be removed silently and the old antivirus server is already down. I have made a script which will uninstall old antivirus and installs SCEP, and it is running perfectly when installed locally. When i package it and deploy to my collection,
    it is not installed on my clients. When i monitor my deployment the package appears in the error tab. I also searched some resources in the internet but of no use. Pls help
    Thanks
    Ashok

    What product is the old antivirus?
    All Configmgr is doing is running your script via command line using the local system account.
    Download pstools 
    https://technet.microsoft.com/en-gb/sysinternals/bb896649.aspx
    run psexec -i -s cmd.exe from a command line.
    This will open another window, check it's open with the system account by typing whoami.
    Then run your script from that command line window and see why it fails. 

  • OSD: scripted upgrade SCCM 2007 to SCCM 2012 not working (first attempt)

    Hi,
    We created a package in SCCM 2007 to upgrade the sccm 2007 client on a vista machine to SCCM 2012.
    What we did:
    1.uninstall 2007 client
    2.ccmclean.exe
    3.install sccm 2012 client
    4.trigger machine policy update
    All works fine but the install. If we run the script a second time, install DOES work fine.
    Error log of failed attempt, please advise:
    Failed to download client files by BITS. Error 0x800704dd    ccmsetup    16/05/2014 17:35:48    3872 (0x0F20)
    Sending Fallback Status Point message to 'sccmserver.ourdomain', STATEID='309'.    ccmsetup    16/05/2014 17:35:48    3872 (0x0F20)
    Failed to get client version for sending messages to FSP. Error 0x8004100e    ccmsetup    16/05/2014 17:35:48    3872 (0x0F20)
    Params to send FSP message '5.0.7958.1000 Deployment Error 0x800704dd. Path http://sccmserver.ourdomain/SMS_DP_SMSPKG$/FLSD00002'    ccmsetup    16/05/2014 17:35:48    3872 (0x0F20)
    State message with TopicType 800 and TopicId {87CA732B-9d2D-4CD1-BD93-CA2CCD20D691} has been sent to the FSP    FSPStateMessage    16/05/2014 17:35:48    3872 (0x0F20)
    Failed to download from DP 'http://sccmserver.ourdomain/SMS_DP_SMSPKG$/flsD00002', error 0x800704dd.    ccmsetup    16/05/2014 17:35:48    3872 (0x0F20)
    Enumerated all 1 local DP locations but none of them is good. Fallback to MP.    ccmsetup    16/05/2014 17:35:48    3872 (0x0F20)
    Using branch cache option.    ccmsetup    16/05/2014 17:35:48    3872 (0x0F20)
    Adding file 'HTTP://sccmserver.ourdomain:80/CCM_Client/i386/vcredist_x86.exe' to BITS job, saving as 'C:\Windows\ccmsetup\vcredist_x86.exe'.    ccmsetup    16/05/2014 17:35:48    3872 (0x0F20)
    Failed to download client files by BITS. Error 0x800704dd    ccmsetup    16/05/2014 17:35:48    3872 (0x0F20)
    Jan Hoedt

     Hi,
    "Error code 4dd (hex) = 1245 = "The operation being requested was not performed because the user has not logged
    on to the network. The specified service does not exist." This clearly implies some sort of account issue. Exactly how are you initiating the client agent setup?"
    For more information:
    http://social.technet.microsoft.com/Forums/en-US/2c80c8c4-06b5-431f-b732-470b7e531794/ccmsetup-failed-with-error-code-0x800704dd?forum=configmanagerdeployment
    Best Regards,
    Joyce
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Not able to push batch script for installing IIS all features using SCCM 2012 task sequence

    Hey Guys, I am working for this from a long time but not able to make it work, I am using following batch script for installing IIS  using SCCM 2012 task sequence:
    Dism.exe /online /Enable-Feature /FeatureName:IIS-WebServerRole /FeatureName:IIS-WebServerRole /FeatureName:IIS-WebServer /FeatureName:IIS-ApplicationDevelopment /FeatureName:IIS-Security /FeatureName:IIS RequestFiltering /FeatureName:IIS-NetFxExtensibility
    /FeatureName:WAS-WindowsActivationService /FeatureName:WAS-ProcessModel /FeatureName:WAS-NetFxEnvironment /FeatureName:WAS-ConfigurationAPI /FeatureName:NetFx3 /FeatureName:WCF-HTTP-Activation /FeatureName:WCF-NonHTTP-Activation /FeatureName:IIS-WebServerManagementTools
    /FeatureName:IIS-ManagementConsole /FeatureName:IIS-ManagementScriptingTools  /FeatureName:IISIIS6ManagementCompatibility /FeatureName:IIS-ManagementService /FeatureName:IIS-Metabase /FeatureName:IIS-WMICompatibility
    When I run this script as admin by right click on it and select "run as a administrator" the script works fine but when I pushed the script as a software package or a step in OSD task sequence, nothing happens. I also tried
    run command line option but no luck. Please help me with this.
    Thanks,
    VST

    1. When I used "run command line" option I found following errors in smsts.log:
    Remediation failed. Code 8027000C TSManager 1/2/2014 2:32:12 PM 2720 (0x0AA0)
    Remediation failed with error code 8027000C TSManager 1/2/2014 2:32:12 PM 2720 (0x0AA0)
    Remediation failed. Code 8027000C TSManager 1/2/2014 2:34:16 PM 2092 (0x082C)
    Remediation failed with error code 8027000C TSManager 1/2/2014 2:34:16 PM 2092 (0x082C)
    Failed to run the action: Run Command Line.
    Unknown error (Error: 800F080C; Source: Unknown) TSManager 1/2/2014 2:34:32 PM 2092 (0x082C)
    Failed to delete directory 'C:\_SMSTaskSequence' TSManager 1/2/2014 2:34:33 PM 2092 (0x082C)
    SetNamedSecurityInfo() failed. TSManager 1/2/2014 2:34:33 PM 2092 (0x082C)
    SetObjectOwner() failed. 0x80070005. TSManager 1/2/2014 2:34:33 PM 2092 (0x082C)
    RemoveFile() failed for C:\_SMSTaskSequence\TSEnv.dat. 0x80070005. TSManager 1/2/2014 2:34:33 PM 2092 (0x082C)
    RemoveDirectoryW failed (0x80070091) for C:\_SMSTaskSequence TSManager 1/2/2014 2:34:33 PM 2092 (0x082C)
    Failed to delete registry value HKLM\Software\Microsoft\SMS\Task Sequence\Package. Error code 0x80070002 TSManager 1/2/2014 2:34:33 PM 2092 (0x082C)
    RegQueryValueExW failed for Software\Microsoft\SMS\Task Sequence, SMSTSEndProgram TSManager 1/2/2014 2:34:34 PM 2092 (0x082C)
    GetTsRegValue() failed. 0x80070002. TSManager 1/2/2014 2:34:34 PM 2092 (0x082C)
    ReleaseRequest failed with error code 0x80004005 TSManager 1/2/2014 2:34:34 PM 2092 (0x082C)
    RegQueryValueExW failed for Software\Microsoft\SMS\Task Sequence, SMSTSEndProgram OSDSetupHook 1/2/2014 2:34:35 PM 360 (0x0168)
    GetTsRegValue() failed. 0x80070002. OSDSetupHook 1/2/2014 2:34:35 PM 360 (0x0168)
    2. We are not using MDT in our environment so I ant use add features and roles option.
    3. The script is running fine when we run it manually.

  • SCCM 2012 Deployment Packages and Applications deployment order

    Hello I have an application which deploys Office 2013 through SCCM 2012 I then want to copy some templates to two directories in Office. I have added a script the OFC tool which is suppose to run after the install. But the files don't appear. If I run the
    same script manually all the files are copied. I ended up creating a package just for the Office Template files, but I have to run this manually afterwards. Should I Persist with the script or is there a way to run the package automatically after the application
    deployed has run?

    Sounds like best solution is to create an MSI that can copy the template files and deploy as an application after Office Install. Is this something I can do in Install Shield?
    Seems weird that they would have an option in the MSP to run a script but it doesn't work.
    I wouldn't go to that trouble myself, but that's because I don't author MSIs as part of my role (we have a packaging team who do that task, and they seem to regard authoring an MSI as the solution for everything ;)
    the ConfigMgr AppModel happily caters for all kinds of payloads, despite referring to them as "applications" there is no requirement for the payload to be an MSI.
    MS have long documented that the "run scripts" and "chaining" features of the Office setup engine are "not robust" (i.e. not very tolerant, are a one-shot kind of thing). Some seem to work just fine, others have no joy with it. I don't use it myself, there
    are plenty of other methods, but I find it comes down to what you are comfortable/confident/familiar with. Everything has pros and cons, and above all else, I've found that it's my/our assumptions/understandings that tend to be why things go off-course.
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • SCCM 2012 R2: automatic uninstall App-V 5 packages

    Hi,
    We are using App-V 5.0 SP3 for computers (in test phase) as well as Terminal Servers (in production, App-V 4.6 and 5.0 on the same W2K8R2 servers). We were thinking about using a App-V management server since SCCM integrated App-V has downsides, most important
    one is no automatic uninstall. Then there is this comparison which shows that integrating in SCCM has much more options:
    http://virtualvibes.co.uk/app-v-management-server-or-configuration-manager-2012-a-feature-comparison
    So we're back at going for "SCCM App-V integrated" and the issue that uninstall doesn't happen automatically. Also there is this post which tells us "With App-V 5.0 SP2, App-V packages that are being used cannot be uninstalled."
    http://henkhoogendoorn.blogspot.be/2013/07/configmgr-2012-sp1-with-app-v-50.html
    So I'm still looking for the best approach to:
    *deploy App-V 5.0 packages to terminal servers via SCCM 2012 (user targetted): an uninstall won't happen for one user if another user has it in use? Then how can we enforce an uninstall/remove an application nicely?
    *deploy App-V 5.0 packages to W7 computers via SCCM 2012 (first phase, later we will deploy to users on the computers): deploy an App-V package to  certain collection with computers, deploy an uninstall to "all computers" so that if
    computerobject isn't member of the collection, it will uninstall? Won't every user then receive loads of uninstalls triggered (even not visible in the console)?
    Sound all quite messy for me.
    Please advise.
    J.
    Jan Hoedt

    >So the answer to your first question, yes, the installation will happen even though there's another user
    My question was "an UNinstall won't happen for one user if another user has it in use? Then how can we enforce an uninstall/remove an application nicely?"
    What I meant: an uninstall should remove the App-v package for all users (uninstalling for 1 user is not the goal) but it won't as long it 's in use. That means we need to force a removal somehow.
    >For the second one, I'd skip the first phase
    That's no option, so my question stays
    "deploy an App-V package to  certain collection with computers, deploy an uninstall to "all computers" so that if computerobject isn't member of the collection, it will uninstall? Won't every user/computer then receive loads of uninstalls
    triggered (even not visible in the console)?"
    Jan Hoedt
    If you want to remove the application from all users, just add all users to the collection and deploy the application as uninstall, it will be removed from every single user when the policies are applied.
    For the second question, create a collection that has all the computers that you want to have the application installed and deploy the installation of the application to that collection. Then create another collection that has all the computers as member,
    BUT exclude the collection you created for installation. Now all the computers that don't belong to the install collection, will have uninstall deployed against them.

Maybe you are looking for

  • Using MM-SUS create invoice can't change price

    Dear All,    We used MM-SUS create invoice,we want to change the item price,how to do it?

  • Escaping the pipe (|) character in java

    Hi, I am trying to run the following command in java ps -ef -o pid,args | grep init | grep -v grep The code is        try {                 Runtime rt = Runtime.getRuntime();                 Process pr = rt.exec("ps -ef -o pid,args \\| grep init \\|

  • 32-bit vs 64-bit JVM, JDK, DLL's

    I've got a project that has a couple dependencies: 1. My project interacts with an FTDI USB->Serial converter based device. Access to this device is via DLL(FTDI calls them D2XX drivers). FTDI offers both 32-bit and 64-bit drivers. Please see here .

  • Cisco UCS Blades and vSphere DPM

    I followed this guide: https://supportforums.cisco.com/docs/DOC-8582 And it worked, but I have 2 problems. 1) The blade being put into Standby starts back up immediately - almost like a reboot - and doesn't stay in Standby mode 2) The Blade being put

  • Can't find sound drivers for windows xp

    So I have a Satellite c655-s5061 which usually runs windows 7. I added a dual boot so now I have windows xp and windows 7. I did this because a game wasn't saving correctly in windows 7 and I figured I could play them better on xp anways with lower s