1 Reply Latest reply on May 27, 2016 5:36 AM by phoffmann

    Powershell package thinks it's running from HTTP instead of UNC

    jaericho Apprentice

      I'm getting an error while trying to run a distribution package (powershell script).

       

      Wed, 25 May 2016 16:25:22 PowerShell file Client Thread

      Wed, 25 May 2016 16:25:22 file exists check runtime

      Wed, 25 May 2016 16:25:22 runtime version: v2.0.50727

      Wed, 25 May 2016 16:25:22 Windows PowerShell file can not run from source with a HTTP path.

      Wed, 25 May 2016 16:25:22 Installation result 50

      Wed, 25 May 2016 16:25:22 RunPackageInstall: stop on returncode=32 of package=Cisco Jabber

      Wed, 25 May 2016 16:25:22 processing of package is complete, result 50 (0x00000032 - code 50)

       

      I think the highlighted line is the issue; however, the Powershell script isn't running from an HTTP path. It's executing from a UNC path. I've also tried setting the scheduled task to download the and execute the .ps1 file but it didn't help.

       

      If I simply right click on the .ps1 file and "Run with Powershell" from Windows Explorer, the script runs fine so I know the script is working.

       

      I'm testing on Win7 SP1 x86 for the clients.

       

      LDMS is running 2016

        • 1. Re: Powershell package thinks it's running from HTTP instead of UNC
          phoffmann SupportEmployee

          Hmm works for me - I've used a Win-10 box, but I don't think it's going to be down to the OS.

           

          Infos on how to enable debug-logging can be found here -- https://community.landesk.com/support/docs/DOC-32532 -- that should help.

           

          Here's my SDISTPS1.LOG (full debug mode enabled) - you can find that in "C:\ProgramData\LANDesk\Log\":

           

          VRBOSE Fri, 27 May 2016 12:24:53   1464 sdclientlib.dll batchfilehandler.cpp(66) Adding path environment variable : 'C:\Program Files (x86)\LANDesk\LDClient'

          LOG    Fri, 27 May 2016 12:24:53   1464 lddwnld.DLL lddwnldbase.cpp(215) Downloader/Multicast using config file located here: C:\ProgramData\LANDesk\TMCDownload\downloadermulticastconf.xml

          VRBOSE Fri, 27 May 2016 12:24:53   1464 sdclientlib.dll sdclientsettings.cpp(215) Active task 5 obtained from shared memory

          LOG    Fri, 27 May 2016 12:24:57   1464 sdistps1.exe sdistps1.cpp(193) Current PowerShell ExecutionPolicy is [Restricted]

          LOG    Fri, 27 May 2016 12:24:58   1464 sdistps1.exe sdistps1.cpp(235) Setting PowerShell ExecutionPolicy to [Unrestricted]

          LOG    Fri, 27 May 2016 12:25:01   1464 sdistps1.exe sdistps1.cpp(339) PowerShell commandLine=powershell -NonInteractive -command "& { . 'C:\Program Files (x86)\LANDesk\LDClient\sdmcache\ldlogon\xx\Win Packages\QuickPSScript.ps1'; exit $LASTEXITCODE }"

          LOG    Fri, 27 May 2016 12:25:02   1464 sdistps1.exe sdistps1.cpp(235) Setting PowerShell ExecutionPolicy to [Restricted]

           

          For reference, here's my Powershell script (not much to it - which was the point) - it was hosted on an HTTP share on my Core:

           

          # Declare variables

          [String]$WorkingPath = ""

          [String]$LogString = ""

          [String]$LogFileName = ""

           

           

          # Configure the variables / strings

          $WorkingPath = (get-location).ToString() + "\" # Used to set where you go. Using a variable here since it's relatively easy to then use this to loop through multiple values.

          $LogFileName = "TheLog.txt"

          $LogString = ((Get-Date -Format r).ToString() + " :: " + "I have been run!")

           

           

           

          # Do the actual stuff

          Out-File -FilePath ($WorkingPath + "\" + $LogFileName) -inputobject ($LogString) -Append

          Write-host "Run has been completed"

           

          The script has been hosted on an HTTP share

           

          Here's the client-side log downloading & executing the file -- you can find this log under "C:\Program Files (x86)\LANDesk\LDClient\Data\" and it'll be called "sdclient_task{TaskNumber}.log" - so for instance "sdclient_task5.log". Note that I've enabled full debug-logging here, so my log is going to be pretty spammy - but this will give you a good idea as to what's going on.

           

          I'll try to highlight key lines, so you can find those easier in all the spam . I've annotated it a bit with comments starting with "-- {Blah blah}".

          -- Start of the job

          VRBOSE Fri, 27 May 2016 12:24:32   4376 sdclientlib.dll sdclient.cpp(1783) Active task id has been set to 5

          LOG    Fri, 27 May 2016 12:24:32   4376 sdclientlib.dll sdclient.cpp(1784) ******* sdclient starting to process task *******

          LOG    Fri, 27 May 2016 12:24:32   4376 sdclientlib.dll sdclient.cpp(1785) Task id to process: 5

          LOG    Fri, 27 May 2016 12:24:32   4376 sdclientlib.dll sdclient.cpp(1786) Command line: /policyfile="C:\ProgramData\LANDesk\Policies\CP.5.RunNow._3dh6pKePgQcQPwMV9OImxP0OyhU=.xml"

          VRBOSE Fri, 27 May 2016 12:24:32   4376 sdclientlib.dll ldapobjects.cpp(214) Collecting LDAP Information

          VRBOSE Fri, 27 May 2016 12:24:32   4376 sdclientlib.dll ldapobjects.cpp(222) LDAP User 'CN=Charles Xavier,CN=Users,DC=fantasia,DC=org'

          VRBOSE Fri, 27 May 2016 12:24:32   4376 sdclientlib.dll sdclientsettings.cpp(203) Obtaining task id 5 from command line

          VRBOSE Fri, 27 May 2016 12:24:32   4376 sdclientlib.dll sdclientsettings.cpp(133) Obtaining policy package id 10 from command line

          LOG    Fri, 27 May 2016 12:24:32   4376 sdclientlib.dll sdclient.cpp(990) The nostatus flag has NOT been set.

          LOG    Fri, 27 May 2016 12:24:32   4376 sdclientlib.dll sdclientsettings.cpp(61) Core name '192.168.110.157' obtained from the registry

          LOG    Fri, 27 May 2016 12:24:32   4376 sdclientlib.dll sdclient.cpp(1035) Sending task status, cmd line -coreandip=192.168.110.157 -taskid=5 -retcode=229392442 "-ldap=CN=Charles Xavier,CN=Users,DC=fantasia,DC=org" -pkgid=10

          VRBOSE Fri, 27 May 2016 12:24:32   4376 sdclientlib.dll sdclient.cpp(1039) Waiting for status to be sent (i.e. waiting for launched application to exit).

           

          -- Identifying the file we need & checking whether we have it in the local cache

          LOG    Fri, 27 May 2016 12:24:35   4376 sdclientlib.dll sdclient.cpp(1859) IsFileInCache: Cache2.GetFilePrevCountEx failed - path=http://SAMARKUM.fantasia.org/ldlogon/xx/Win Packages/QuickPSScript.ps1

          LOG    Fri, 27 May 2016 12:24:35   4376 sdclientlib.dll sdclient.cpp(2944) File (http://SAMARKUM.fantasia.org/ldlogon/xx/Win Packages/QuickPSScript.ps1) is not in cache

          VRBOSE Fri, 27 May 2016 12:24:35   4376 sdclientlib.dll sdclient.cpp(2384) RAS bandwidth was requested, since any bandwidth will do we will just let the download fail

          VRBOSE Fri, 27 May 2016 12:24:35   4376 sdclientlib.dll sdclient.cpp(1928) Starting download all files

          XTRACE Fri, 27 May 2016 12:24:35   4376 lddwnld.DLL curlhelper.cpp(230) Top of InitCurl

          XTRACE Fri, 27 May 2016 12:24:35   4376 lddwnld.DLL curlhelper.cpp(230) Top of InitCurl

          XTRACE Fri, 27 May 2016 12:24:35   4376 lddwnld.DLL curlhelper.cpp(217) Initialize curl using user supplied proxy 127.0.0.1:9592

          VRBOSE Fri, 27 May 2016 12:24:35   4376 sdclientlib.dll sdclientsettings.cpp(203) Obtaining task id 5 from command line

          VRBOSE Fri, 27 May 2016 12:24:35   4376 sdclientlib.dll sdclientsettings.cpp(133) Obtaining policy package id 10 from command line

          LOG    Fri, 27 May 2016 12:24:35   4376 sdclientlib.dll sdclient.cpp(990) The nostatus flag has NOT been set.

          LOG    Fri, 27 May 2016 12:24:35   4376 sdclientlib.dll sdclientsettings.cpp(61) Core name '192.168.110.157' obtained from the registry

          LOG    Fri, 27 May 2016 12:24:35   4376 sdclientlib.dll sdclient.cpp(1035) Sending task status, cmd line -coreandip=192.168.110.157 -taskid=5 -retcode=229392444 "-ldap=CN=Charles Xavier,CN=Users,DC=fantasia,DC=org" -pkgid=10

           

          -- LONG section dealing with the download of the file starting here (you can skip ahead)

          VRBOSE Fri, 27 May 2016 12:24:35   4376 sdclientlib.dll sdclient.cpp(1039) Waiting for status to be sent (i.e. waiting for launched application to exit).

          XTRACE Fri, 27 May 2016 12:24:35   4376 lddwnld.DLL lddownload.cpp(4061) AddFileToDownloadSet (utf8):called with sourcePath http://SAMARKUM.fantasia.org/ldlogon/xx/Win Packages/QuickPSScript.ps1, hash OQGo8XauWI+A2UylQzOubA==

          LOG    Fri, 27 May 2016 12:24:35   4376 lddwnld.DLL lddownload.cpp(4602) About to call DownloadFiles (1 files) with these settings:

          LOG    Fri, 27 May 2016 12:24:35   4376 lddwnld.DLL lddownload.cpp(4603) m_allowedBandwidthWAN: 50

          LOG    Fri, 27 May 2016 12:24:35   4376 lddwnld.DLL lddownload.cpp(4604) m_allowedBandwidthLAN: 75

          LOG    Fri, 27 May 2016 12:24:35   4376 lddwnld.DLL lddownload.cpp(4606) m_discardPeriodSeconds: 604800

          LOG    Fri, 27 May 2016 12:24:35   4376 lddwnld.DLL lddownload.cpp(4607) m_preserveDirectoryStructure: 1

          LOG    Fri, 27 May 2016 12:24:35   4376 lddwnld.DLL lddownload.cpp(4608) m_bUseWanBWForPush: 0

          LOG    Fri, 27 May 2016 12:24:35   4376 lddwnld.DLL lddownload.cpp(4609) m_bSynchronize: 0

          LOG    Fri, 27 May 2016 12:24:35   4376 lddwnld.DLL lddownload.cpp(4611) Allowed download methods(m_downloadControl):

          LOG    Fri, 27 May 2016 12:24:35   4376 lddwnld.DLL lddownload.cpp(4615) PeerOneSource

          LOG    Fri, 27 May 2016 12:24:35   4376 lddwnld.DLL lddownload.cpp(4617) Peer

          LOG    Fri, 27 May 2016 12:24:35   4376 lddwnld.DLL lddownload.cpp(4619) Source

          LOG    Fri, 27 May 2016 12:24:35   4376 lddwnld.DLL lddownload.cpp(4632) m_preferredServerControl: AttemptPreferredServer

          XTRACE Fri, 27 May 2016 12:24:35   4376 lddwnld.DLL lddownload.cpp(2698) ReceiveFilesWorkerThread started

          XTRACE Fri, 27 May 2016 12:24:35   4376 lddwnld.DLL lddownload.cpp(3659) ListenForDiscoveryUpdates started

          XTRACE Fri, 27 May 2016 12:24:35   4376 lddwnld.DLL lddownload.cpp(4696) DoSingleThreadedPreDownloadWork: Top of function

          XTRACE Fri, 27 May 2016 12:24:35   4376 lddwnld.DLL lddownload.cpp(3396) DiscoveryWorkerThread started

          XTRACE Fri, 27 May 2016 12:24:35   4376 lddwnld.DLL lddownload.cpp(3531) Thread 692 is processing http://SAMARKUM.fantasia.org/ldlogon/xx/Win Packages/QuickPSScript.ps1

          XTRACE Fri, 27 May 2016 12:24:35   4376 lddwnld.DLL lddownload.cpp(4578) GetFilePrevCountEx returned -2 where -3 = whole file, -2 = none, and >=0 = part, for file: ldlogon\xx\Win Packages\QuickPSScript.ps1

          XTRACE Fri, 27 May 2016 12:24:35   4376 lddwnld.DLL socketcom.cpp(121) ReceiveMessageThread started

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL lddownload.cpp(2801) ReceiveFilesWorkerThreadWork: Processing next file (order index=0) http://SAMARKUM.fantasia.org/ldlogon/xx/Win Packages/QuickPSScript.ps1

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL lddownload.cpp(2823) receiveCommand = from source for ldlogon\xx\Win Packages\QuickPSScript.ps1

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL lddownload.cpp(2827) PeerOneSourceRequired was set, attempting peer even though command was download from source

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL socketcom.cpp(121) ReceiveMessageThread started

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL lddownload.cpp(2244) Got PeerCount of 0 for ldlogon\xx\Win Packages\QuickPSScript.ps1

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL lddownload.cpp(2838) Command was source: About to download from source

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL curlhelper.cpp(230) Top of InitCurl

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL curlhelper.cpp(217) Initialize curl using user supplied proxy 127.0.0.1:9592

          VRBOSE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL PreferredServerWebRequest.cpp(192) GetPreferredServerList - proxyString: 127.0.0.1:9592

          VRBOSE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL PreferredServerWebRequest.cpp(195) GetPreferredServerList: Attempting proxyhost

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL curlhelper.cpp(117) Curl INFO: Hostname was NOT found in DNS cache

           

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL curlhelper.cpp(117) Curl INFO:   Trying 127.0.0.1...

           

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL curlhelper.cpp(117) Curl INFO: Connected to 127.0.0.1 (127.0.0.1) port 9592 (#0)

           

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL curlhelper.cpp(128) Curl REQUEST:

          POST http://192.168.110.157:443/LANDesk/ManagementSuite/Core/PreferredServer/preferredserver.asmx HTTP/1.1

          User-Agent: LANDeskDownloader

          Host: 192.168.110.157:443

          Accept: */*

          Proxy-Connection: Keep-Alive

          Content-Type: text/xml; charset=utf-8

          Content-Length: 297

          SOAPAction: "http://tempuri.org/GetPreferredServers"

           

           

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL curlhelper.cpp(138) Curl TRANSMIT: 297 bytes

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL curlhelper.cpp(117) Curl INFO: upload completely sent off: 297 out of 297 bytes

           

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL curlhelper.cpp(117) Curl INFO: Server Microsoft-IIS/8.5 is not blacklisted

           

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL curlhelper.cpp(117) Curl INFO: Connection #0 to host 127.0.0.1 left intact

           

          LOG    Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL redirect.cpp(1266) GetPreferredServerList(called on http://SAMARKUM.fantasia.org/ldlogon/xx/Win Packages/QuickPSScript.ps1) returned:

          LOG    Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL redirect.cpp(1272) Samarkum.fantasia.org

          LOG    Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL redirect.cpp(1224) Putting preferred servers in the following order by time:

          LOG    Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL redirect.cpp(1228) Samarkum.fantasia.org (75)

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL lddwnldnew.cpp(649) GetFileInformation called for http://Samarkum.fantasia.org/ldlogon/xx/Win Packages/QuickPSScript.ps1

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL curlhelper.cpp(117) Curl INFO: Hostname was NOT found in DNS cache

           

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL curlhelper.cpp(117) Curl INFO:   Trying 127.0.0.1...

           

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL curlhelper.cpp(117) Curl INFO: Connected to 127.0.0.1 (127.0.0.1) port 9592 (#0)

           

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL curlhelper.cpp(128) Curl REQUEST:

          HEAD http://Samarkum.fantasia.org/ldlogon/xx/Win%20Packages/QuickPSScript.ps1 HTTP/1.1

          User-Agent: LANDeskDownloader

          Host: Samarkum.fantasia.org

          Accept: */*

          Proxy-Connection: Keep-Alive

           

           

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL curlhelper.cpp(117) Curl INFO: Server Microsoft-IIS/8.5 is not blacklisted

           

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL curlhelper.cpp(117) Curl INFO: Connection #0 to host 127.0.0.1 left intact

           

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL lddwnldnew.cpp(704) GetFileInformation results: time: low E19F8780 high 1D1B809, size 513

          LOG    Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL redirect.cpp(582) Updating system environment variable LDMS_PREFERRED_SERVER: Samarkum.fantasia.org

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL lddownload.cpp(4683) LDRedirectFilePath: SUCCESS redirected from http://SAMARKUM.fantasia.org/ldlogon/xx/Win Packages/QuickPSScript.ps1 to http://Samarkum.fantasia.org/ldlogon/xx/Win Packages/QuickPSScript.ps1

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL lddwnldnew.cpp(951) GetFileHashFromServerW called for http://Samarkum.fantasia.org/ldlogon/xx/Win Packages/QuickPSScript.ps1

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL lddwnldnew.cpp(649) GetFileInformation called for http://Samarkum.fantasia.org/ldlogon/xx/Win Packages/LDHashDir/QuickPSScript.ps1.hash.xml

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL curlhelper.cpp(117) Curl INFO: Found bundle for host Samarkum.fantasia.org: 0x5ed828

           

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL curlhelper.cpp(117) Curl INFO: Re-using existing connection! (#0) with host 127.0.0.1

           

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL curlhelper.cpp(117) Curl INFO: Connected to 127.0.0.1 (127.0.0.1) port 9592 (#0)

           

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL curlhelper.cpp(128) Curl REQUEST:

          HEAD http://Samarkum.fantasia.org/ldlogon/xx/Win%20Packages/LDHashDir/QuickPSScript.ps1.hash.xml HTTP/1.1

          User-Agent: LANDeskDownloader

          Host: Samarkum.fantasia.org

          Accept: */*

          Proxy-Connection: Keep-Alive

           

           

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL curlhelper.cpp(117) Curl INFO: The requested URL returned error: 404 Not Found

           

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL curlhelper.cpp(117) Curl INFO: Closing connection 0

           

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL curlhelper.cpp(656) CurlPerform returned CURLE_HTTP_RETURNED_ERROR, responseCode = 404

           

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL curlhelper.cpp(682) curl_easy_perform failed err=22

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL lddwnldnew.cpp(983) Failed to get info for http://Samarkum.fantasia.org/ldlogon/xx/Win Packages/LDHashDir/QuickPSScript.ps1.hash.xml

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL lddwnldnew.cpp(649) GetFileInformation called for http://Samarkum.fantasia.org/ldlogon/xx/Win Packages/QuickPSScript.ps1

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL lddwnldnew.cpp(664) GetFileInformation - same path last=http://Samarkum.fantasia.org/ldlogon/xx/Win Packages/QuickPSScript.ps1, time: low E19F8780 high 1D1B809, size 513

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL lddwnldnew.cpp(649) GetFileInformation called for http://Samarkum.fantasia.org/ldlogon/xx/Win Packages/QuickPSScript.ps1

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL lddwnldnew.cpp(664) GetFileInformation - same path last=http://Samarkum.fantasia.org/ldlogon/xx/Win Packages/QuickPSScript.ps1, time: low E19F8780 high 1D1B809, size 513

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL lddwnldnew.cpp(320) Discard period of 604800 will be set for this file

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL lddwnldnew.cpp(331) GetFilePrevCount returned -2 where -3 = whole file, -2 = none, and >=0 = part

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL DiskSpace.cpp(158) Checking free disk space for 'C:\Program Files (x86)\LANDesk\LDClient\sdmcache\': total free 70214262784, needed 513, reserved 10485760)

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL DiskSpace.cpp(163) There is sufficent available space

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL curlhelper.cpp(837) Downloading byte range - '0-512'

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL curlhelper.cpp(117) Curl INFO: Hostname was found in DNS cache

           

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL curlhelper.cpp(117) Curl INFO:   Trying 127.0.0.1...

           

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL curlhelper.cpp(117) Curl INFO: Connected to 127.0.0.1 (127.0.0.1) port 9592 (#1)

           

          XTRACE Fri, 27 May 2016 12:24:47   4376 lddwnld.DLL curlhelper.cpp(128) Curl REQUEST:

          GET http://Samarkum.fantasia.org/ldlogon/xx/Win%20Packages/QuickPSScript.ps1 HTTP/1.1

          Range: bytes=0-512

          User-Agent: LANDeskDownloader

          Host: Samarkum.fantasia.org

          Accept: */*

          Proxy-Connection: Keep-Alive

           

           

          XTRACE Fri, 27 May 2016 12:24:48   4376 lddwnld.DLL curlhelper.cpp(117) Curl INFO: Server Microsoft-IIS/8.5 is not blacklisted

           

          XTRACE Fri, 27 May 2016 12:24:48   4376 lddwnld.DLL curlhelper.cpp(117) Curl INFO: Connection #1 to host 127.0.0.1 left intact

           

          XTRACE Fri, 27 May 2016 12:24:48   4376 lddwnld.DLL curlhelper.cpp(971) Time to download byte range: '0-512' was 0.363 seconds

          XTRACE Fri, 27 May 2016 12:24:48   4376 lddwnld.DLL sleeper.cpp(176) Sleep top:deltaTimeNotSleptYet = 0.000000

          XTRACE Fri, 27 May 2016 12:24:48   4376 lddwnld.DLL sleeper.cpp(181) curSleep using performance counter delta time=436.890289 (measured=436.890289, excluded=0.000000)

          XTRACE Fri, 27 May 2016 12:24:48   4376 lddwnld.DLL sleeper.cpp(51) Bandwidth sleep calculation: inputs lastReadTimeMS=436.890275, _bandwidth=50, returning 436.890275

          XTRACE Fri, 27 May 2016 12:24:48   4376 lddwnld.DLL sleeper.cpp(213) Attempted sleep of 436.890275, actually slept 451.050010

          XTRACE Fri, 27 May 2016 12:24:48   4376 lddwnld.DLL lddwnldnew.cpp(412) DownloadFileDataUsingCurl returned 0

          XTRACE Fri, 27 May 2016 12:24:48   4376 lddwnld.DLL cache2.cpp(1755) Calculating new hash for ldlogon\xx\Win Packages\QuickPSScript.ps1 since file time changed

          XTRACE Fri, 27 May 2016 12:24:48   4376 lddwnld.DLL lddwnldnew.cpp(576) GetFilePrevCount returned -3 where -3 = whole file, -2 = none, and >=0 = part

          XTRACE Fri, 27 May 2016 12:24:48   4376 lddwnld.DLL lddownload.cpp(2152) DownloadFileActualExW took 1008 ms to complete

          XTRACE Fri, 27 May 2016 12:24:48   4376 lddwnld.DLL lddownload.cpp(1631) Pushing http://SAMARKUM.fantasia.org/ldlogon/xx/Win Packages/QuickPSScript.ps1 to done

          XTRACE Fri, 27 May 2016 12:24:48   4376 lddwnld.DLL lddownload.cpp(1444) PushToDoneTail: m_fileDoneCount = 1, m_fileCount = 0

          XTRACE Fri, 27 May 2016 12:24:48   4376 lddwnld.DLL lddownload.cpp(1449) About to release m_workCompleteSemaphore

          XTRACE Fri, 27 May 2016 12:24:48   4376 lddwnld.DLL lddownload.cpp(5130) Download Complete: 1 successful, 0 failed

          XTRACE Fri, 27 May 2016 12:24:48   4376 lddwnld.DLL lddownload.cpp(5142) Actual download of data took 1008 ms, but slept 451 ms of that time, 55.257937 bandwidth used

          XTRACE Fri, 27 May 2016 12:24:48   4376 lddwnld.DLL lddownload.cpp(5154) Push of files took 0 ms, but slept 0 ms of that time, 0.000000 bandwidth used

          XTRACE Fri, 27 May 2016 12:24:49   4376 lddwnld.DLL lddownload.cpp(3408) DiscoveryWorkerThread: thread 692 exiting

          LOG    Fri, 27 May 2016 12:24:49   4376 sdclientlib.dll sdclient.cpp(990) The nostatus flag has NOT been set.

          LOG    Fri, 27 May 2016 12:24:49   4376 sdclientlib.dll sdclientsettings.cpp(61) Core name '192.168.110.157' obtained from the registry

          LOG    Fri, 27 May 2016 12:24:49   4376 sdclientlib.dll sdclient.cpp(1035) Sending task status, cmd line -coreandip=192.168.110.157 -taskid=5 -retcode=229392444 "-message=100%" -pkgid=10

          VRBOSE Fri, 27 May 2016 12:24:49   4376 sdclientlib.dll sdclient.cpp(1043) Not waiting for status to be sent.

          VRBOSE Fri, 27 May 2016 12:24:49   4376 lddwnld.DLL socketcom.cpp(184) SocketCom::socket 940: Session is being closed - SocketCom destructor called

          VRBOSE Fri, 27 May 2016 12:24:49   4376 lddwnld.DLL socketcom.cpp(184) SocketCom::socket 1000: Session is being closed - SocketCom destructor called

          VRBOSE Fri, 27 May 2016 12:24:49   4376 sdclientlib.dll sdclientsettings.cpp(203) Obtaining task id 5 from command line

          VRBOSE Fri, 27 May 2016 12:24:49   4376 sdclientlib.dll sdclientsettings.cpp(133) Obtaining policy package id 10 from command line

          LOG    Fri, 27 May 2016 12:24:49   4376 sdclientlib.dll sdclient.cpp(990) The nostatus flag has NOT been set.

          LOG    Fri, 27 May 2016 12:24:49   4376 sdclientlib.dll sdclientsettings.cpp(61) Core name '192.168.110.157' obtained from the registry

          LOG    Fri, 27 May 2016 12:24:49   4376 sdclientlib.dll sdclient.cpp(1035) Sending task status, cmd line -coreandip=192.168.110.157 -taskid=5 -retcode=229392258 "-ldap=CN=Charles Xavier,CN=Users,DC=fantasia,DC=org" -pkgid=10

          VRBOSE Fri, 27 May 2016 12:24:49   4376 sdclientlib.dll sdclient.cpp(1039) Waiting for status to be sent (i.e. waiting for launched application to exit).

          LOG    Fri, 27 May 2016 12:24:50   4376 sdclientlib.dll sdclientcmdline.cpp(1076) ExpandEnvironmentVariables Result:

          LOG    Fri, 27 May 2016 12:24:50   4376 sdclientlib.dll PowerShellHandler.cpp(255) PowerShell file Client Thread

          LOG    Fri, 27 May 2016 12:24:50   4376 sdclientlib.dll PowerShellHandler.cpp(102) file exists check runtime

          LOG    Fri, 27 May 2016 12:24:50   4376 sdclientlib.dll PowerShellHandler.cpp(113) runtime version: v2.0.50727

           

          -- Executing the script

          VRBOSE Fri, 27 May 2016 12:24:50   4376 sdclientlib.dll sdistps1_api.h(88) Running sdistps1 (as user 0) command line '"C:\Program Files (x86)\LANDesk\LDClient\sdistps1.exe"'

          VRBOSE Fri, 27 May 2016 12:24:50   4376 sdclientlib.dll ProcessLaunch.cpp(1212) PostLaunch: input=<params><ScriptArguments/><ShowUI>false</ShowUI><Signed>false</Signed><UseWow64FsRedirection>true</UseWow64FsRedirection><action>RunPowerShell</action><curdir>C:\Program Files (x86)\LANDesk\LDClient\sdmcache\ldlogon\xx\Win Packages</curdir><script>C:\Program Files (x86)\LANDesk\LDClient\sdmcache\ldlogon\xx\Win Packages\QuickPSScript.ps1</script><timeout>-1</timeout></params>

           

          -- Run has been completed - send exit code to the Core.

          LOG    Fri, 27 May 2016 12:25:02   4376 sdclientlib.dll sdistps1_api.h(100) PowerShell output: Run has been completed

           

          LOG    Fri, 27 May 2016 12:25:02   4376 sdclientlib.dll PowerShellHandler.cpp(259) Installation result 229965824

          LOG    Fri, 27 May 2016 12:25:02   4376 sdclientlib.dll reboothandler.cpp(31) Rebooting system if needed

          VRBOSE Fri, 27 May 2016 12:25:05   4376 sdclientlib.dll sdclient.cpp(1807) Clearing the active task id

          LOG    Fri, 27 May 2016 12:25:05   4376 sdclientlib.dll sdclient.cpp(1817) processing of package is complete, result 229965824 (0x0db50000 - code 0)

           

           

          ===============================

           

          *Brainflash* ... say - where exactly are you holding your PS1 script? Is it possible you're not hosting it in a virtual directory but under an actual application pool? If so, it's possible that IIS is trying to execute it ...? That's something that is easily gotten wrong involving HTTP shares...?

           

          Do as I did - create a sub-directory under LDLOGON and throw the script in there (LDLOGON is an actual "package share" and not an application) and try again - see if that works.

           

          Hope that helps .