16
Dell World User Forum UFIL517: Scripting Andrew Lubchansky, Senior Trainer Erik Ragan, Senior Trainer Dell World User Forum

Scripting

Embed Size (px)

Citation preview

Page 1: Scripting

1Dell World User Forum

UFIL517: Scripting

Andrew Lubchansky, Senior TrainerErik Ragan, Senior Trainer

Dell WorldUser Forum

Page 2: Scripting

2Dell World User Forum

Agenda

• K1000 Scripting Overview

• K2000 Scripting Overview

• Custom Scripts

Page 3: Scripting

3 Dell World User Forum

K1000 Scripting Overview

Page 4: Scripting

4Dell World User Forum

What exactly is Scripting?

• Powerful and flexible tool to accomplish tasks in your environment

• Group Policy Supplement– RDP Connections– Drive Mapping– Printer Deployment– UAC– Software and Hardware settings

• Includes wizards!

Page 5: Scripting

5Dell World User Forum

OK, so how exactly does Scripting work?

• Different types of scripts– Online K-Script– Offline K-Script– Online Shell Script

• Can use labels, target different Operating Systems, run in different accounts, run scheduled or on-demand, and use multiple dependencies

• Uses basic logical steps to control behavior

Page 6: Scripting

6Dell World User Forum

Scripting Steps Overview

Verify a condition exists (File,

Directory, Registry Key, etc.)

Take Action!

On Verify failure, take action

(installer, script, etc.)

On Remediation success, take action (Script, Status, etc.)

On Remediation failure, take action

(Script, Status, etc.)

Verify

On Success

Remediation

Remediation Success

Remediation Failure

Page 7: Scripting

Dell World User Forum

Demo: Scripting Walkthrough

Page 8: Scripting

8 Dell World User Forum

K2000 Scripting Overview

Page 9: Scripting

9Dell World User Forum

Task Engine Changes

• Things to remove– start /wait (for .EXE/.MSI)– DOS commands in Application tasks– call (for bat)– “quotes”

• Things to add– cscript.exe (prior to .VBS)– Reboot Required checkbox

• Need some assistance– K2 Advisor – Scan/Identify tasks that need to be changed

Page 10: Scripting

10Dell World User Forum

Working with PowerShell

• PowerShell commands no longer run as direct command lines

• New process– Save .ps1 file– Create .bat script with PowerShell commands– ZIP .ps1 and .bat script together– Upload as Application task– Command line is name of .bat

Page 11: Scripting

Dell World User Forum

Demo: Join Domain and OU

Page 12: Scripting

12 Dell World User Forum

Custom Scripts

Page 13: Scripting

13Dell World User Forum

Custom Scripts

• Want the automation of Managed Installs with the power of Scripting?

• Want to force a full Inventory after a Managed Install?

• Automate with AutoIt!

Page 14: Scripting

Dell World User Forum

Demo: Create MI with AutoIt

Page 15: Scripting

17 Dell World User Forum

Thank you.

Page 16: Scripting

18 Dell World User Forum

KACE Support Portal Migrating to Dell Software Support Portal• Starting in November, all KACE

Support Portal material will be migrated to the Dell Software Support Portal

• All service requests will be submitted online or by phone

• Same great content– Knowledge base articles– Video tutorials– Product documentation– JumpStart training

• Check out the Support Portal Getting Started videos