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.

PDQDeploy "Interactive window station"

I built a script & task sequence to trigger a PDQ deployment as part of the image.  The deployment works correctly within the VM environment, but when applied to a physical system I receive the below error.

The sanitized script is below.

 

Start-Transcript -LiteralPath C:\Windows\CCM\Logs\PDQDeployINV.log -IncludeInvocationHeader

netsh advfirewall set allprofiles state off

$User = "DOMAINGOESHERE\svcPDQSCCM"
$PasswordFile = "\\SERVERNAMEGOESHERE\Sources\Software Deployment\MDT_PDQ_C\USERINFOHERE.txt"
$KeyFile = "\\SERVERNAMEGOESHERE\Sources\Software Deployment\MDT_PDQ_C\USERINFOHERE.key"
$key = Get-Content $KeyFile
$MyCredential = New-Object -TypeName System.Management.Automation.PSCredential `
-ArgumentList $User, (Get-Content $PasswordFile | ConvertTo-SecureString -Key $key)

Invoke-Command -Credential $MyCredential -ComputerName SERVERNAMEGOESHERE -ScriptBlock {pdqdeploy.exe Deploy -Package "Base Workstation Setup" -Targets $args[0]} -Args ((([System.Net.Dns]::GetHostByName(("$env:COMPUTERNAME"))).AddressList).IPAddressToString) 2>&1

start-sleep 30
while(test-path "C:\Windows\AdminArsenal\PDQDeployRunner\service-1.lock"){
start-sleep 30
}

Stop-Transcript

1

Comments

1 comment
Date Votes
  • I tracked down the culprit.  It is tied to permissions to the C:\Windows\System32 folder.

    Updating the service account's permissions fixed this issue.

    1