Hey @Sebastian-Roth I will see what I can do! I am definitely not a developer so it will be slow going while I try to figure things out but I would be happy to try to contribute to FOG.
Best posts made by mckay
-
RE: Repurpose the restart notification to work for running/delaying Snapins
-
RE: Need a way to pass variables in Powershell using hostname, primary user, other tag #1 or other tag #2
Hey @Daniel-Miller and @george1421 thanks again for your effort in helping me figure this out. I think the complexity (for me) for what I was about to do scared me into thinking of a roundabout approach to solving this issue. I think I found a better solution than what I was originally trying to do (and WAY simpler). I will post here in case this will be of use for anyone in the future.
Rather than appending a date to the hostname so I can change the computer name I decided to start out with the date appended to the hostname so that renaming the computer would be exactly how I want it to be then for my other requirements (adding the user to be admin of the computer) I simply removed the date from the hostname to come up with the username.
Basically, if my username is bobsmith and today’s date is 2019-12-06, I will name the host:
bobsmith191206
then in my Powershell script I just need to set$userName = $env:computername -replace '[0-9]'
then the hostname remainsbobsmith191206
and now I have a variable$userName
that now equalsBOBSMITH
Anyhow, that is one of those… so easy it is dumb solutions. Not sure why I didn’t think of it earlier. Thanks again you guys for helping me to think outside of the box I stuck myself in.
Latest posts made by mckay
-
RE: Repurpose the restart notification to work for running/delaying Snapins
Hey thanks for all your help @Sebastian-Roth. This helps me look into things more.
Today I will try to setup a sandbox VM so I can look into playing around with 1.6.
Thanks again!
-
RE: Repurpose the restart notification to work for running/delaying Snapins
@Sebastian-Roth said in Repurpose the restart notification to work for running/delaying Snapins:
aggregatedDelayTime
OK. So I am looking at the code now and trying to figure some things out.
I am trying to get a better understanding of what FOGShutdownGUI.exe can do but I am not finding anything in the code that gives me the answers I looking for.
Specifically I am wondering about what options I can pass for “action”: “request”, and “options”: (is “request” the option for action?) Is this documented anywhere?
Thanks!
-
RE: Repurpose the restart notification to work for running/delaying Snapins
Hey @Sebastian-Roth I will see what I can do! I am definitely not a developer so it will be slow going while I try to figure things out but I would be happy to try to contribute to FOG.
-
RE: Repurpose the restart notification to work for running/delaying Snapins
Thanks so much for your reply @Sebastian-Roth! I will start playing around with this and see what I can come up with.
I am definitely not a developer but I would be happy to help in any way I can. Thanks again.
-
Repurpose the restart notification to work for running/delaying Snapins
Here is the scenario I am trying to accomplish:
I would like to find a way that I can push a software update via a Snapin to an employee or group but give the end user the ability to postpone the update if they want. For example, if I pushed out a Zoom update to a user while they were in the middle of a Zoom call it would interrupt their call. It the user could postpone the snapin then it could run after they are off the call.
Here is what I am thinking.
In the “Create new Snapin” page two new options are created:
- Snapin confirmation (has a checkbox)
- Snapin confirmation message (has a text box that allows you to type in a message that the end user will see)
![0_1585338426908_chrome_WO9cHQWpuq.png](Uploading 100%)
Before the Snapin runs, the notification will pop up. Instead of saying “This computer needs to reboot to apply new software.” the text will be the confirmation message. Instead of having a “Shutdown Now” button, the button will read “Run task now”. The user can then choose to hide the notification and the snapin will run after the time runs down or they can hit the “Run task now” button and the Snapin will run immediately.
![0_1585338465573_AgE0nmOHxf.png](Uploading 100%)
There could even be a message to let the end user know that the computer will reboot after the task is run (if that is an option selected for the snapin).
One of the biggest concerns with running some snapins is interrupting employees while they are doing an important task. This would give the end user more flexibility.
On a similar note, is there any way to do something like this right now? Is there a way to call the notification via a Powershell script through a snapin?
Thanks!
-
RE: How do you auto add printers to a host when provisioning?
Thanks for your response @Daniel-Miller! It looks like I overlooked this plugin; it seems to be generally what I am looking for. There definitely seems to be issues related to provisioning with plugins (as has already been mentioned in the link you shared). Currently I can either have the printers auto-add using the persistent group and have snapins not run (which essentially breaks the provisioning process) or I can have Snapins run but not use the persistent group.
I have run at least a test or two where I think I got both to work but it may have been a fluke as I can’t really replicate that. I will keep plugging along.
Thanks for pointing me in the right direction!
-
How do you auto add printers to a host when provisioning?
I am not sure if I am missing something or if the functionality is just not there but I don’t see any way to add printers to a host during the host provisioning process. I know that I can add printers to a group then add those printers to all the hosts in the group but printers only get added when I do that manually and not during the host provisioning.
Is there any way that I can configure FOG so that when I register and provision the host I can add the printers without having to manually go into the FOG dashboard and adding printers to the host? Has anyone done this with a plugin or snapin?
-
RE: Printer is apparently added but does not show up as a printer on the Windows 10 machine.
@Sebastian-Roth I think that was it! I thought the drivers were installed but it looks like HP is weird… generic HP drivers apparently don’t work (that is what I had installed) but if I install their bloatware driver pack all of the printers start showing up.
You are my hero.
Thanks again so much for helping me out with this. I am happy that I have been able to narrow it down.
Sorry for all the time you spend helping me troubleshoot when the solution ended up being something so basic but I really appreciate your help with this.
-
RE: Printer is apparently added but does not show up as a printer on the Windows 10 machine.
So I have been experimenting with different things. I have not figured out anything conclusive but have make some interesting observations:
- When I run the Printer Manager Helper software, it displays a different model depending on the host computer I am running the software from. On one host the model is “HP Universal Printing PCL 6” on another host it is “HP PageWide Pro 477dw MFP PCL-6”. To be clear; this is for the same printer.
- If I manually add the printer to a host, all of a sudden the printers added in FOG will show up on the host computer. This ONLY shows up on the host computer (not other hosts with the same printers added) and the printers only show up if the input for the printer model is correct.
- It does not matter if I list the WSD number for the port or IP_xxx for the port. It will show up either way (as long as the printer has also been manually added)
- If I remove the printers I manually added, the printers that FOG added still show up fine. If I use FOG to remove a printer however, I can no longer add it back using FOG if I already removed the manually added printer.
I know that is probably not much help. I am not sure what more to try. It looks like there is some info that FOG is just not adding to the computer, FOG will only add a printer if the printer has already been manually added. Hope this made sense.
-
RE: Printer is apparently added but does not show up as a printer on the Windows 10 machine.
Thanks @Sebastian-Roth
Both printer IP addresses are showing up in “Ports” when I check in Print Manager.
I ran the cmd you gave me and it didn’t spit out any error. After a computer restart the printer is still is not listed. Thanks again for your help. I will try manually adding a printer again and check out the settings in Print Manager and see if I can figure out something that might be missing. Please let me know if there is anything that you can think of that I should be looking out for.