Announcement

Collapse
No announcement yet.

Running Script after next reboot

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Running Script after next reboot

    I have created a serial of scripts to do a automated install of Citrix Presentation Server 4.0 on a X64 system. Everything runs well for except one thing. The script only runs after reboot when a user logs in. Meaning the user who is doing the installation has to log in several times (and do nothing) for the script to run. I want to know if this can be done fully automated.
    The script is started manually, does some thing, copies the next part and reg file locally and edits the HKLM\Software\Microsoft\CurrentVersion\RunOnce to start the next part. Than the system reboots, but instead of running the next part, it waits untill the user logs to perform the next part of the script. I do not want it to wait untill the user logs on, but to run automated after reboot.
    [Powershell]
    Start-DayDream
    Set-Location Malibu Beach
    Get-Drink
    Lay-Back
    Start-Sleep
    ....
    Wake-Up!
    Resume-Service
    Write-Warning
    [/Powershell]

    BLOG: Therealshrimp.blogspot.com

  • #2
    Re: Running Script after next reboot

    Check this link:
    http://www.petri.com/configuring_autologon.htm

    With this you could set another registry entry to allow/force autologon for the time you want. Hopefully this helps.

    Comment

    Working...
    X