Skip to content

I cannot find related functions Get-WUInstall and Get-WURebootStatus that calls in UpdateAndSysprep.ps1.  #22

Description

@Sharkrit

I cannot find related native functions Get-WUInstall and Get-WURebootStatus that calls in UpdateAndSysprep.ps1. Did you declared in other script?

$Host.UI.RawUI.WindowTitle = "Installing updates..."
Get-WUInstall -AcceptAll -IgnoreReboot
if (Get-WURebootStatus -Silent)
{
$Host.UI.RawUI.WindowTitle = "Updates installation finished. Rebooting."
shutdown /r /t 0
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions