Jump to content

ATrotter

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

My Information

  • Location
    Aus
  • Agent Count
    < 500 Agents
  1. ATrotter

    Powershell popup not displaying

    Methods i have tried so far. Powershell command as Admin/Powershell command(bothways) Add-Type -AssemblyName PresentationCore,PresentationFramework; $ButtonType = [System.Windows.MessageBoxButton]::Ok; $MessageIcon = [System.Windows.MessageBoxImage]::Exclamation; $MessageBody = "This computer will reboot overnight. if you have any questions or concerns call ***********";$MessageTitle = "Computer will reboot";$Result = [System.Windows.MessageBox]::Show($MessageBody,$MessageTitle,$ButtonType,$MessageIcon) This returns as successful but nothing happens Download: script saved to our automate server saved to temp folder on customers computer. Shell: powershell.exe -File %windir%\Temp\Computerwillreboot.ps1 This returns as successful, the file is on the computer at the required location but it does not trigger. if i use command prompt on the computer putting the second part. it work. if i use the labtech cmd interface it returns "ok" but nothing happens. I know this is possible but I do not know de wey
  2. ATrotter

    Powershell popup not displaying

    Hi all. Im having a little trouble getting a scrip to work. I have tried a few different options to get it all working, however nothing comes up. so far i have tried. condensing the script and just calling it in a script. creating a script file and dumping it on the client machine and then calling it. the script work pefectly if i just run it on the computer, but the second automate is involved. nothing. the script is below for anyone interested -windowstyle hidden Add-Type -AssemblyName PresentationCore,PresentationFramework $ButtonType = [System.Windows.MessageBoxButton]::Ok $MessageIcon = [System.Windows.MessageBoxImage]::Exclamation $MessageBody = "This computer will reboot overnight. if you have any questions or concerns call " $MessageTitle = "Computer will reboot" $Result = [System.Windows.MessageBox]::Show($MessageBody,$MessageTitle,$ButtonType,$MessageIcon)
×