Future thought
-
Hi Guys
By no means am i a developer of any sort but it would be quite interesting if you could be able to use the fog client to send pop up messages to specific machines… EG if you plan on imageing machines at a specific time you could send out a broadcast to a group of machines letting user’s know whats going to be happening
I know that in XP there was some sort of a pop up menu when a machine is being rebooted etc but i must say i havent seen it since i having been using Windows 7Anyway that was just a thought…
-
You might be able to do this with a scrip and send it out via snap in. Like a vbs scrips like this
[CODE]msgbox"This computer has a task pending! Please reboot to start the task",48,“Task Pending”[/CODE]But it would be cool to have on of those bubble popup on the task bar, saying there is a task pending.
-
[quote=“Catsrules, post: 1244, member: 296”]You might be able to do this with a scrip and send it out via snap in. Like a vbs scrips like this
[CODE]msgbox"This computer has a task pending! Please reboot to start the task",48,“Task Pending”[/CODE]But it would be cool to have on of those bubble popup on the task bar, saying there is a task pending.[/quote]
Like Catsrules said you could do it via a snapin. .CMD would do fine. I would just find out what time their shifts end, email stating that their machines must be shut down by a certain time or they will loose any unsaved work. Kirksec you can do the pop up shutdown in win 7 via command line easily:
shutdown -r -c “Machine needs to re-image as per notice. Will restart in 30 seconds”
Try it!
There are more switches though I believe for that command.
-
[quote=“andyroo54, post: 1248, member: 267”]Like Catsrules said you could do it via a snapin. .CMD would do fine. I would just find out what time their shifts end, email stating that their machines must be shut down by a certain time or they will loose any unsaved work. Kirksec you can do the pop up shutdown in win 7 via command line easily:
shutdown -r -c “Machine needs to re-image as per notice. Will restart in 30 seconds”
Try it!
There are more switches though I believe for that command.[/quote]
Here you go, so you could set the time to :600 seconds, that is 10 minutes and plenty of time for them to close their work.[SIZE=14px][FONT=Georgia][COLOR=#111111][B]Command to reboot windows computer:[/B][/COLOR][/FONT][/SIZE]
[COLOR=#111111][FONT=Consolas]shutdown /r[/FONT][/COLOR]
[SIZE=14px][FONT=Georgia][COLOR=#111111]The above command will set a time out of 30 seconds to close the applications. After 30 seconds, windows reboot will start.[/COLOR][/FONT][/SIZE]
[SIZE=14px][FONT=Georgia][COLOR=#111111]If you want to reboot Windows with your own time out value you can use the below command.[/COLOR][/FONT][/SIZE]
[COLOR=#111111][FONT=Consolas]shutdown /r /t timeout_in_seconds[/FONT][/COLOR]
[SIZE=14px][FONT=Georgia][COLOR=#111111][B]To shutdown a Windows computer:[/B][/COLOR][/FONT][/SIZE]
[COLOR=#111111][FONT=Consolas]shutdown /s[/FONT][/COLOR]
[SIZE=14px][FONT=Georgia][COLOR=#111111][B]To abort computer reboot from command line:[/B][/COLOR][/FONT][/SIZE]
[SIZE=14px][FONT=Georgia][COLOR=#111111]If you have issued a reboot command and have changed mind, you can stop Windows reboot by running the below command.[/COLOR][/FONT][/SIZE]
[COLOR=#111111][FONT=Consolas]shutdown /a[/FONT][/COLOR]
[SIZE=14px][FONT=Georgia][COLOR=#111111][B]To force applications to close without warning[/B][/COLOR][/FONT][/SIZE]
[COLOR=#111111][FONT=Consolas]shutdown /r /f[/FONT][/COLOR]
[SIZE=14px][FONT=Georgia][COLOR=#111111][B]Open the shutdown GUI[/B][/COLOR][/FONT][/SIZE]
[COLOR=#111111][FONT=Consolas]shutdown /i[/FONT][/COLOR]
[SIZE=14px][FONT=Georgia][COLOR=#111111][B]Add reason for the reboot of the computer[/B][/COLOR][/FONT][/SIZE]
[COLOR=#111111][FONT=Consolas]shutdown /r /c “This is the reason for the reboot of the computer”[/FONT][/COLOR]
[SIZE=14px][FONT=Georgia][COLOR=#111111]The above commands for system reboot work on all Windows releases – Windows XP, Vista, Windows 7, Windows server 2003 and 2008.[/COLOR][/FONT][/SIZE]
[SIZE=14px][FONT=Georgia][COLOR=#111111][B]Reboot Windows using WMIC commands[/B]:[/COLOR][/FONT][/SIZE]
[SIZE=14px][FONT=Georgia][COLOR=#111111]You can run the below wmic command to reboot Windows OS.[/COLOR][/FONT][/SIZE]
[COLOR=#111111][FONT=Consolas]wmic os where Primary=‘TRUE’ reboot[/FONT][/COLOR] -
Hi Guys
i am aware of all the command line switches, but it could also be used for sending messages to user’s as well, like alot of you that are working in BIG enviroments EG University’s you would know how students get out of hand on your lab pc’s…
Anyway it was just a thought
-
I know you may not want to see a non-fog related solution, but the “Alerter” and “Messenger” services within Windows provides this type of functionality. In command line (if of course you’re the admin) you can send something like:
net send <hostname of computer> <message>
One example is: net send labComp7 Failure to comply with the proper use of computers policy will result in automatic shutdown of this computer or something…
These alerter and messenger services are disabled by default on Windows. I know there’s a way to remotely enable them, but can’t recall how.
-
thanks Variable205 but net send is disabled on our Network :D, Students abused it …
-
Boooooo, I gotcha.