Jump to content




    Adding Custom GlobalCondition to a DeploymentType - powershell

    Always
    By Always,
    Hi WN I trying to add a custom Global Condition to a deployment type. But cant figure out how it done. and a big error so ?? if (!(Get-CMGlobalCondition -Name "Is user is logged on"))
    {
        Remove-Item "$env:temp\Is_user_is_logged_on.ps1" -ea SilentlyContinue
        Add-Content -Encoding UTF8 "$env:temp\Is_user_is_logged_on.ps1" "[bool] (Get-Process explorer –ea 0)"
        New-CMGlobalCondition -Name "Is user is logged on" -Description "Check if an user is logged on" -DeviceType Windows -DataType Boolean -ScriptLanguage PowerShell -FilePath "$env:temp\Is_user_is_logged_on.ps1"
        Remove-Item "$env:temp\Is_user_is_logged_on.ps1" -ea SilentlyContinue
    } $ApplicationName = "Igor Pavlov 7-Zip 18.05 (x64 edition) 18.05.00.0 V1"
    $condition = Get-CMGlobalCondition -Name "Is user is logged on"
    Set-CMDeploymentType -ApplicationName "$ApplicationName" -DeploymentTypeName "_Silent" -AddRequirement "$condition.Rule" console return: Cannot convert value "[SecurityVerbs(-1)]
    instance of SMS_GlobalCondition ...... ref: https://configurationmanager.uservoice.com/forums/300492-ideas/suggestions/32636506-powershell-cmdlet-for-adding-global-conditions-as anyone done this before?

    "Invalid" content on a Distribution Point. Force a re-distribution?!

    Westy182
    By Westy182,
    Hi all, A problem that seems to be occurring more and more frequently in the environment I'm currently working in is content not successfully distributing to Distribution Points.  We have over 130 secondary site servers in the environment and it's common to find "Invalid" content when using the Content Library Explorer tool. If a piece of content is "Invalid" I normally can't successfully remove it via the SCCM console as it then goes into a orphaned state in the content library.  If left for any period of time and then re-distributed to the problem DP, the files never go through the despool.box yet the distribution status pie chart will show green and the content library explorer changes back to "Invalid".  If I try to "re-distribute" the content from the SCCM console it just evaluates to already be there and stays in an "Invalid" state.  Sometimes updating the content version number and redistributing can fix the issue but 9 times out of 10 it just changes the version number in the content library but the content remains "Invalid" I've been scouring the net trying to find a WMI/Powershell cmd to trigger a full resync of content for a specific package but I can't find anything.  Is there a way to do this either via WMI, Powershell, or directly in the SQL DB?  Even if the best solution is to delete the files directly from the content library I just need to find a reliable way to fully re-sync "Invalid" content. We're using SCCM 1802 but this isn't a new problem, it's been knocking around for a long time. I hope someone has a script or a trick that can help me sort this issue. Thanks in advance, Westy

    Collection uninstall

    kaiserclaw
    By kaiserclaw,
    Hello, I use AD-groups when deploying applications and I want to create an automatic uninstall when the computer object is not included in the AD group (removed from the group).
    I created a collection and query that checks if the application is installed but the computer object is not included in the group.

    This is what I got so far: select SMS_R_System.ResourceId, SMS_R_System.ResourceType, SMS_R_System.Name, SMS_R_System.SMSUniqueIdentifier, SMS_R_System.ResourceDomainORWorkgroup, SMS_R_System.Client from  SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.ProdID like "{34624CAC-1434-468E-56DC-2A7D44D5F49F}" and SMS_R_System.SecurityGroupName != "MGT\\App-install-Adapt"
      It does not work properly - some computers are listed even though they are in the install AD-group.   Thanks in advance
     

    Hardware inventory returns (80004005) InventoryAction does not exist on all clients after update to 1806

    supaFlaj
    By supaFlaj,
    Hi guys, 
    I've been struggling with this one for over a week. I updated SCCM from 1710 to 1806. Had some trouble with AV software, but all in all the update finished with success. All components seems to be working (OS deployment, Software updates, Application Installation...). But hardware inventory just won't work, neither on workstations and neither on servers. In InventoryAgent.log there always appears the same message:
    Inventory: *********************** Start of message processing. *********************** InventoryAgent 12.10.2018 8:50:14 5128 (0x1408)
    Inventory: Message type is InventoryAction InventoryAgent 12.10.2018 8:50:14 5128 (0x1408)
    Inventory: Temp directory = C:\Windows\CCM\Inventory\Temp\ InventoryAgent 12.10.2018 8:50:14 5128 (0x1408)
    Inventory: Clearing old collected files. InventoryAgent 12.10.2018 8:50:14 5128 (0x1408)
    Inventory: Opening store for action {00000000-0000-0000-0000-000000000001} ... InventoryAgent 12.10.2018 8:50:14 5128 (0x1408)
    CInvState::VerifyInventoryVersionNumber: Mismatch found for '{00000000-0000-0000-0000-000000000001}': 15.5 vs. 0.0 InventoryAgent 12.10.2018 8:50:16 5128 (0x1408)
    Inventory: Version number mismatch; will do a Full report. InventoryAgent 12.10.2018 8:50:16 5128 (0x1408)
    Inventory: (80004005) InventoryAction does not exist () InventoryAgent 12.10.2018 8:50:16 5128 (0x1408)
    Raising event:
    [SMS_CodePage(852), SMS_LocaleID(1060)]
    instance of CLIMSG_HINV_ERROR_COLLECTIONFAILURE
    {
    ClientID = "GUID:B18F2F08-D6C0-488B-B82E-F6E4FE5E9479";
    Data1 = "0";
    Data2 = "0";
    Data3 = "";
    DateTime = "20181012065016.877000+000";
    InventoryActionID = "{00000000-0000-0000-0000-000000000001}";
    MachineName = "PC328923";
    ProcessID = 5652;
    SiteCode = "PSM";
    ThreadID = 5128;
    };
    InventoryAgent 12.10.2018 8:50:16 5128 (0x1408)
    CInvState:Init: ReadInventoryActionPolicy() failed: 80004005 InventoryAgent 12.10.2018 8:50:165128 (0x1408)
    Inventory: Initialization completed in 2.152 seconds InventoryAgent 12.10.2018 8:50:16 5128 (0x1408)
    Inventory: Cycle completed in 2.277 seconds InventoryAgent 12.10.2018 8:50:16 5128 (0x1408)
    Inventory: Action completed. InventoryAgent 12.10.2018 8:50:16 5128 (0x1408)
    Inventory: ************************ End of message processing. ************************ InventoryAgent 12.10.2018 8:50:16 5128 (0x1408)

    steps I have tried so far:
    - Repair CM Client
    - Uninstall/install Client
    - Created custom HINV setting and deployed, but still same error
    - Forced a full HW inventori via WBEM https://blogs.technet.microsoft.com...p-forcing-a-full-hardware-inventory-for-sccm/
    I am managing arround 4000 clients, and HINV doesn't work on any of them. Also there is no SCCM Hardware inventory task in Task Scheduler. On the other hand, software inventory works fine.

    Previous to the upgrade, Hardware Inventory worked.

    Can anyone please point me in the right direction to solve this problem.

    SCCM 1806 PXE Responder Issues

    Selby
    By Selby,
    Hi, I've updated to 1806 with all the hot fixes applied and decided to turn on "Enable a PXE responder without Windows Deployment Service"  unfortunately it doesn't work and I've had to turn WDS back on which works.  Below is the lines from the SMSPXE log. We have IP Helpers rather than using DHCP Scope options.    PXE: BC:83:85:F5:0B:63: Parsed a discover/solicit packet.    17/10/2018 16:24:14
    PXE: BC:83:85:F5:0B:63: C76B7D02-EA50-B10F-5E89-8BEFAA6609C9: Client is 64-bit, UEFI, Firmware.    17/10/2018 16:24:14
    PXE: BC:83:85:F5:0B:63: Prioritizing local MP http://(our MP).    17/10/2018 16:24:14
    Not in SSL    17/10/2018 16:24:14
    Not in SSL    17/10/2018 16:24:14
    Client Boot Get ID Info reply: <ClientIDReply><Identification Unknown="0" DuplicateSMBIOS="0" DuplicateMACAddress="0" ItemKey="0" ServerName=""><Machine><ClientID/><NetbiosName/></Machine></Identification><ClientIDInfo ItemKey="15673" ClientID="GUID:8D9AD297-22DE-49F9-96B6-F5E04C18297E" DuplicateSMBIOS="0" DuplicateMACAddress="0" MatchType="1"/><ClientIDInfo ItemKey="16798564" ClientID="GUID:39A05B11-0A61-4CB5-8827-5052E9CD3191" DuplicateSMBIOS="0" DuplicateMACAddress="0" MatchType="2"/></ClientIDReply>
        17/10/2018 16:24:14
    PXE: BC:83:85:F5:0B:63: System records:    17/10/2018 16:24:14
    PXE: BC:83:85:F5:0B:63:   15673, GUID:8D9AD297-22DE-49F9-96B6-F5E04C18297E, SMBIOS ID is a match, MAC Address is NOT a match.    17/10/2018 16:24:14
    PXE: BC:83:85:F5:0B:63:   16798564, GUID:39A05B11-0A61-4CB5-8827-5052E9CD3191, SMBIOS ID is NOT a match, MAC Address is a match.    17/10/2018 16:24:14
    PXE: BC:83:85:F5:0B:63: Using system record 15673, GUID:8D9AD297-22DE-49F9-96B6-F5E04C18297E.    17/10/2018 16:24:14
    PXE: Sending reply to 255.255.255.255, DHCP.    17/10/2018 16:24:14
     

    SCCM 1806 Hotfix Rollup KB4465865 Installation Error

    Umair
    By Umair,
    Hi Administrator,   Hope you are doing good, Can you please guide me how I can fix KB4465865 installation error? When I am trying to install Hotfix Rollup on SCCM 2016 (1806) facing following error: Failed to apply update changes 0x80004005 Error information persisted in the database. ERROR: Failed to process configuration manager update. I am also sending you CMUpdate log file. CMUpdate.zip

    Version Updates

    KeithDib
    By KeithDib,
    Hi   were on 1709 and have been for some time, we do not show any further updates in the updates section. all systems including SUP work fine and the system can download patches etc from MS, so can get to the outside world through the FW,   what log will show any issues?   cheers

    SCCM PXE Boot Failing

    WAPaul
    By WAPaul,
    Hi All, We are running SCCM 1806 and Windows 10 1709 clients and currently have an issue where we try to image a machine using PXE we get the following error:     Previously it was working fine (about 6 weeks ago) but it has now just stopped. If i look at the SMSPXE.log i get the following: 16/10/2018 12:25:30 PM    ============> Received from client:
    16/10/2018 12:25:30 PM     Operation: BootRequest (1)  Addr type: 1 Addr Len: 6 Hop Count: 0 ID: 09DF8E1C
     Sec Since Boot: 0 Client IP: 000.000.000.000 Your IP: 000.000.000.000 Server IP: 000.000.000.000 Relay Agent IP: 000.000.000.000
     Addr: 00:15:5d:98:2f:03:
     Magic Cookie: 63538263
     Options:
      Type=53 Msg Type: 1=Discover
      Type=57 Max Msg Size: 05c0
      Type=55 Param Request List: 0102030405060c0d0f111216171c28292a2b3233363a3b3c4243618081828384858687
      Type=97 UUID: 00c5aa2830da4b354c927442798bf8d6fd
      Type=94 UNDI: 010300
      Type=93 Client Arch: EFI BC
      Type=60 ClassId: PXEClient:Arch:00007:UNDI:003000
    16/10/2018 12:25:30 PM    Prioritizing local MP http://xxxxxxxx.xxxxxxxx.local.
    16/10/2018 12:25:30 PM    Not in SSL
    16/10/2018 12:25:31 PM    Not in SSL
    16/10/2018 12:25:31 PM    Client lookup reply: <ClientIDReply><Identification Unknown="0" DuplicateSMBIOS="0" DuplicateMACAddress="0" ItemKey="16777501" ServerName=""><Machine><ClientID/><NetbiosName/></Machine></Identification></ClientIDReply> 16/10/2018 12:25:31 PM    00:15:5D:98:2F:03, 3028AAC5-4BDA-4C35-9274-42798BF8D6FD: device is in the database.
    16/10/2018 12:25:31 PM    Prioritizing local MP http://xxxxxxxx.xxxxxxxxx.local.
    16/10/2018 12:25:31 PM    Not in SSL
    16/10/2018 12:25:31 PM    Request using architecture 9.
    16/10/2018 12:25:31 PM    Not in SSL
    16/10/2018 12:25:31 PM    Client boot action reply: <ClientIDReply><Identification Unknown="0" DuplicateSMBIOS="0" DuplicateMACAddress="0" ItemKey="16777501" ServerName=""><Machine><ClientID/><NetbiosName/></Machine></Identification><PXEBootAction LastPXEAdvertisementID="" LastPXEAdvertisementTime="" OfferID="" OfferIDTime="" PkgID="" PackageVersion="" PackagePath="" BootImageID="" Mandatory=""/></ClientIDReply> 16/10/2018 12:25:31 PM    00:15:5D:98:2F:03, 3028AAC5-4BDA-4C35-9274-42798BF8D6FD: no advertisements found
    16/10/2018 12:25:31 PM    Prioritizing local MP http://xxxxxxx.xxxxxxxxxx.local.
    16/10/2018 12:25:31 PM    Not in SSL
    16/10/2018 12:25:31 PM    Not in SSL
    16/10/2018 12:25:31 PM    00:15:5D:98:2F:03, 3028AAC5-4BDA-4C35-9274-42798BF8D6FD: No boot action. Aborted.
    16/10/2018 12:25:31 PM     Operation: BootReply (2)  Addr type: 1 Addr Len: 6 Hop Count: 0 ID: 09DF8E1C
     Sec Since Boot: 0 Client IP: 000.000.000.000 Your IP: 000.000.000.000 Server IP: 192.168.152.025 Relay Agent IP: 000.000.000.000
     Addr: 00:15:5d:98:2f:03:
     Magic Cookie: 63538263
     Options:
      Type=53 Msg Type: 2=Offer
      Type=54 Svr id: 192.168.152.025
      Type=97 UUID: 00c5aa2830da4b354c927442798bf8d6fd
      Type=60 ClassId: PXEClient
    16/10/2018 12:25:31 PM    00:15:5D:98:2F:03, 3028AAC5-4BDA-4C35-9274-42798BF8D6FD: Not serviced.
    16/10/2018 12:25:34 PM    ============> Received from client:
    16/10/2018 12:25:34 PM     Operation: BootRequest (1)  Addr type: 1 Addr Len: 6 Hop Count: 0 ID: 09DF8E1C
     Sec Since Boot: 0 Client IP: 000.000.000.000 Your IP: 000.000.000.000 Server IP: 000.000.000.000 Relay Agent IP: 000.000.000.000
     Addr: 00:15:5d:98:2f:03:
     Magic Cookie: 63538263
     Options:
      Type=53 Msg Type: 3=Request
      Type=54 Svr id: 192.168.152.017
      Type=50 Requested IP: 192.168.152.100
      Type=57 Max Msg Size: ff00
      Type=55 Param Request List: 0102030405060c0d0f111216171c28292a2b3233363a3b3c4243618081828384858687
      Type=97 UUID: 00c5aa2830da4b354c927442798bf8d6fd
      Type=94 UNDI: 010300
      Type=93 Client Arch: EFI BC
      Type=60 ClassId: PXEClient:Arch:00007:UNDI:003000
    16/10/2018 12:25:34 PM    ============> Received from client:
    16/10/2018 12:25:34 PM     Operation: BootRequest (1)  Addr type: 1 Addr Len: 6 Hop Count: 0 ID: 0404FBE8
     Sec Since Boot: 0 Client IP: 192.168.152.100 Your IP: 000.000.000.000 Server IP: 000.000.000.000 Relay Agent IP: 000.000.000.000
     Addr: 00:15:5d:98:2f:03:
     Magic Cookie: 63538263
     Options:
      Type=53 Msg Type: 3=Request
      Type=55 Param Request List: 0102030405060c0d0f111216171c28292a2b3233363a3b3c4243618081828384858687
      Type=57 Max Msg Size: 05c0
      Type=60 ClassId: PXEClient:Arch:00007:UNDI:003000
      Type=93 Client Arch: EFI BC
      Type=94 UNDI: 010300
      Type=97 UUID: 00c5aa2830da4b354c927442798bf8d6fd
    16/10/2018 12:25:34 PM    Prioritizing local MP http://xxxxxxx.xxxxxxxxx.local.
    16/10/2018 12:25:34 PM    Not in SSL
    16/10/2018 12:25:34 PM    Request using architecture 9.
    16/10/2018 12:25:34 PM    Not in SSL
    16/10/2018 12:25:34 PM    Client boot action reply: <ClientIDReply><Identification Unknown="0" DuplicateSMBIOS="0" DuplicateMACAddress="0" ItemKey="16777501" ServerName=""><Machine><ClientID/><NetbiosName/></Machine></Identification><PXEBootAction LastPXEAdvertisementID="" LastPXEAdvertisementTime="" OfferID="" OfferIDTime="" PkgID="" PackageVersion="" PackagePath="" BootImageID="" Mandatory=""/></ClientIDReply> 16/10/2018 12:25:34 PM    00:15:5D:98:2F:03, 3028AAC5-4BDA-4C35-9274-42798BF8D6FD: no advertisements found
    16/10/2018 12:25:35 PM    Prioritizing local MP http://xxxxxxxxxxx.xxxxxxxxxxx.local.
    16/10/2018 12:25:35 PM    Not in SSL
    16/10/2018 12:25:35 PM    Not in SSL
    16/10/2018 12:25:35 PM    ============> REQUEST Reply to client ([192.168.152.100:4011]) Len:285
    16/10/2018 12:25:35 PM     Operation: BootReply (2)  Addr type: 1 Addr Len: 6 Hop Count: 0 ID: 0404FBE8
     Sec Since Boot: 0 Client IP: 192.168.152.100 Your IP: 000.000.000.000 Server IP: 192.168.152.025 Relay Agent IP: 000.000.000.000
     Addr: 00:15:5d:98:2f:03:
     BootFile: smsboot\x64\wdsmgfw.efi
     Magic Cookie: 63538263
     Options:
      Type=53 Msg Type: 5=Ask
      Type=54 Svr id: 192.168.152.025
      Type=97 UUID: 00c5aa2830da4b354c927442798bf8d6fd
      Type=60 ClassId: PXEClient
      Type=250 020105
    16/10/2018 12:25:35 PM    <============ REQUEST Reply (end)
      Any help would be appreciated.   Thanks in Advance.   Paul    

Portal by DevFuse · Based on IP.Board Portal by IPS
×