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
Please sign in to leave a comment.
Comments
1 comment