🤘 32 reputation

Community

Standard

Joined:

Last seen: Wednesday at 11:36 PM

Activity
  • Running the following but getting this error....

    Return code: 255

    The filename, directory name, or volume label syntax is incorrect. '$explorer' is not recognized as an internal or external command, operable program or batch file.


    env:computername = "(Computer:TARGETHOSTNAME)"

    $explorer = Get-WmiObject -ComputerName env:computername -Class win32_process | ?{_.name -eq "explorer.exe"}

    #If a session was returned check HKEY_USERS for Network drives under their SID
    if($explorer){
      $Hive = [long]$HIVE_HKU = 2147483651
      $sid = ($explorer.GetOwnerSid()).sid
      $owner  = $explorer.GetOwner()
      $RegProv = get-WmiObject -List -Namespace "root\default" -ComputerName $env:computername | Where-Object {$_.Name -eq "StdRegProv"}
      $DriveList = $RegProv.EnumKey($Hive, "$($sid)\Network")
      
      #If the SID network has mapped drives iterate and report on said drives
      if($DriveList.sNames.count -gt 0){
        "$($owner.Domain)\$($owner.user) on $($env:computername)"
        foreach($drive in $DriveList.sNames){
          "$($drive)`t$(($RegProv.GetStringValue($Hive, "$($sid)\Network\$($drive)", "RemotePath")).sValue)"
        }
      }else{"No mapped drives on $($env:computername)"}
    }else{"explorer.exe not running on $($env:computername)"}
    
  • Sample XML

    <?xml version="1.0" encoding="utf-8"?>
    

    <AdminArsenal.Export Code="PDQInventory" Name="PDQ Inventory" Version="17.0.4.0" MinimumVersion="3.1">

    Service
  • Collection based on Bit locker volume existence?
  • Should the checkbox for "Use Nested Package Conditions" be checked?

  • It appears I have figured out one of the issues. PDQInventory-Scanner-1 is not the agent. Only after I scanned the machines did that service change to PDQ Inventory Agent.

  • Agent Questions
  • I'm having the same issue as well. No packages are downloading. My enterprise license is good through 4/19 and my service account has full access to the repo. AV is fully disabled so that's not it. There haven't been any updates to the software on my end and no updates available. I'm running 17.1.0.0. Any updates on this?

  • Just found the output log on the laptop which shows....

  • Just realised I am being daft.

    The cpu description has a Family (number) so a collection of CPU Description contains Family 6 should pull back Kabylake processors.

    Thanks

  • Office 365
  • There is a beta version PDQDeploy 17.1.0.53 I am trying out. Support said it should fix the issue.

  • Scan Profile - Show folders under a Registry Key path
  • Hi Christian

    Thank you for the reply.

    What i am looking for is - {11660363-381B-42A5-893E-BBF09122F76A}

    i need to modify this to _{11660363-381B-42A5-893E-BBF09122F76A}

    so i am looking for all PC's with this key

  • Reg Key scan issues
  • This solution works well enough Disable Skype 8 Automatic Updates

  • 2nd thought, registry entry might not work.

    So can the Static collection live anywhere on the Inventory list now that I set it as a Member?

  • I guess I could create a shortcut for the batch file and go to the advanced options and "run as administrator". How do I go about copying the shortcut and batch file to the workstations and then running the shortcut in PDQ?

  • Thanks very much for this helpfull SQL snippet. I added the SQL Snippet "where

    Select Applications.Name 'Applications', count(Computers.Name) 'Number', group_concat(Computers.Name, ', ') 'Installed on this Computer Names' from Computers inner join Applications on Computers.ComputerID=Applications.ComputerID where <ComputerFilter> group by Applications.Name order by Applications.Nameenter


  • Active Directory Sync is stuck syncing
  • You can.

    Select your step, click on options tab and change the setting for "Error Mode" drop down menu to Continue.

    skiperror