It's basically a way to be able to run stuff against machines where the users where it requires the user profile where it's not always so simple with a regular deploy. There are a lot of options to configure, so this can be complex. ps1 script to load the PowerCLI modules: Get-Module -Name VMware* -ListAvailable | Import-Module. These Scheduled Jobs can be managed within PowerShell using cmdlets. Left pane > select Task Scheduler Library. The following function uses the command-line tool schtasks. Set the action of the task to powershell. PowerShell: Create Windows Scheduled Task to run Powershell script every hour If you are using a newer version of PowerShell, then by all means use the New-ScheduledTaskAction, New-ScheduledTaskTrigger, and Register-ScheduledTask and to create a Windows schedule task using PS scripting.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |