Quantcast
Channel: Ivanti User Community: Message List - OS Deployment and Provisioning
Viewing all articles
Browse latest Browse all 3345

Re: Installing Application from Preferred Server on Provisioning

$
0
0

Thanks for responding but I think I have checked and everything is OK from what I can see?

 

So my process is in MDT it calls %SCRIPTROOT%\Landesk_laptop_office2013std.ps1

The script is:

 

 

$username = "**HIDDEN**"

$password = ConvertTo-SecureString –String "**HIDDEN**" –AsPlainText -Force

$mycreds = New-Object –TypeName System.Management.Automation.PSCredential –ArgumentList $username, $password

$coreServerName = '**HIDDEN**'

$templateName = 'DesktopApps_office2013std'

$deliveryMethod = 'Standard policy-supported push distribution'

$taskName = 'Provisioning Task'

$Computer = $env:COMPUTERNAME

$Date = Get-Date

$ScheduleTask = $templateName + " " + $Computer + " " + $Date

$mbsdk = New-WebServiceProxy -uri http://$coreServerName/MBSDKService/MsgSDK.asmx?WSDL -Credential $mycreds

$connected = $mbsdk.ResolveScopeRights()

$templates = $mbsdk.GetProvisioningTemplates()

$templateID = ($templates.ProvisioningTemplates | where-object {$_.Name -eq $templateName}).id

$taskID = $($mbsdk.CreateProvisioningTask($ScheduleTask, $templateID, $deliveryMethod, $false)).TaskID

$rc = $mbsdk.AddDeviceToScheduledTask($taskID, $env:COMPUTERNAME)

$rc = $mbsdk.StartTaskNow($taskID, "All")

 

 

So I checked $deliveryMethod = 'Standard policy-supported push distribution'

and the "Standard policy-supported push distribution" is set to "attempt peer", "attempt preferred server" and "allow source"

 

Inline images 1


Viewing all articles
Browse latest Browse all 3345

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>