Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

Automating PDQ Deploys after Fog Imaging

I am trying to get the automated deployment powershell script to run after imaging with Fog using Snapins.  I watched the video " PDQ Live!:  Imaging with Fog, Managing with PDQ."  and grabbed the script on the bonus content.  I think that I have everything setup correctly, but I can't get it to work.  I can see in the fog.log that the snapin is runs, but the deployment package never starts.  The Powershell Log writes to the root ok, but nothing ever runs.

Here is the Snapin Command:  

powershell.exe -ExecutionPolicy Bypass -NoProfile -File pdq-deploy-start-deployment.ps1 -DeployComputerName "WEVS-COMP-MGMT" -PackageName "CAFE IMAGING"

I tried running the powershell script directly on the remote computer, and got the following error:

 

An unexpected error happened while communicating with the server, see logs for
more info.
+ CategoryInfo : NotSpecified: (An unexpected e... for more info.
:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError

So I went to the deployment machine and looked in the event log and this was the error:

CLR Version : 4.0.30319.42000
Command Name : Deploy
Database : C:\ProgramData\Admin Arsenal\PDQ Deploy\Database.db
Date : 2018-03-09T14:12:23.1585734Z
Entry : C:\Program Files (x86)\Admin Arsenal\PDQ Deploy\PDQDeploy.exe
Error : An unexpected error happened while communicating with the server, see logs for more info.
Error Type : AdminArsenal.Protocol.ServerConnectionOtherException
License Mode : Enterprise Mode
Manufacturer : VMware, Inc. (VMware Virtual Platform)
Memory : 8 GB (6 GB free)
PID : 3848
Product : PDQ Deploy
RaygunEnabled : True
Service Mode : Server
Version : 16.1.0.0
Windows : Microsoft Windows 7 Enterprise (6.1.7601)

The pipe name could not be obtained for the pipe URI: Access is denied. (5, 0x5)
System.IO.PipeException
HResult: 0x0005 (0)

------- OUTER EXCEPTION -------
An unexpected error happened while communicating with the server, see logs for more info.
AdminArsenal.Protocol.ServerConnectionOtherException
Command Name: Deploy
PID: 3848
at AdminArsenal.Protocol.ServerConnectionException.ThrowIfDown(Exception ex)
at AdminArsenal.Protocol.ClientConnection..ctor(ProtocolClient client, Binding binding, EndpointAddress endpoint)
at AdminArsenal.Protocol.ClientConnectionPool.Checkout()
at AdminArsenal.Protocol.ProtocolClient..ctor(String name, String address, String identity, NetworkCredential credentials)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at AdminArsenal.Protocol.ProtocolClient..ctor(String name, String address, String identity, NetworkCredential credentials)
at AdminArsenal.PDQDeploy.DeployProtocolClient.Initialize(Boolean requireTcp)
at AdminArsenal.PDQDeploy.Program.Command_InitializeClient(Object sender, EventArgs e)
at AdminArsenal.Commands.ProductCommandLineCommand..ctor(CommandRequirements location, Boolean storeError)
at AdminArsenal.PDQDeploy.Commands.DeployCommand..ctor()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at AdminArsenal.ReflectionExtensions.Construct(Type type, Object[] args)
at AdminArsenal.CommandLine.CommandDefinition.GetCommand()
at AdminArsenal.CommandLine.CommandDefinition.Execute(Parameters parameters)
at AdminArsenal.CommandLine.CommandProcessor.Execute(IEnumerable`1 args)

 

Any help would be appreciated.

 

Thanks!

 Josh

0

Comments

0 comments