[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 610
  • Last Modified:

Force a Windows refresh without logging off???

Is there a way of pushing a desktop refresh without the user logging in. For example when a packaged application is sent to the user's computer, the user will need log off and log back in order to see the application. Is there a way make the refresh happen by simply doing a secondary login right from the desktop simulating a logon and tricking the system into thinking the user has logged in therefore pushing the policies and any pending changes.
0
BoxingEquallsLife
Asked:
BoxingEquallsLife
  • 4
  • 3
  • 3
  • +1
2 Solutions
 
Neil RussellTechnical Development LeadCommented:
No there is no way. The user MUST log off if a system logoff is required.
0
 
speak2abCommented:
You can locate the application that requires a log off in task manager then end task and restart it again. However some applications do require a restart to fucntion. Particularly if they will need to affect some already running processes.

If u get a different answer.. I'm curios to know too :)
0
 
BoxingEquallsLifeAuthor Commented:
There is a way, Wells Fargo has this technology. I do not recall the name. You would click on a little "W" icon on the bottom right on the taskbar and it prompt the user for their u/n and p/w. Once  the use was authnenticated on the Domain Controller it would do the refresh.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
pritamduttCommented:
Hi, try this rundll32.exe user32.dll, UpdatePerUserSystemParameters
Or
RUNDLL32.EXE USER32.DLL,UpdatePerUserSystemParameters ,1 ,True
0
 
BoxingEquallsLifeAuthor Commented:
That did not work. Is there a certain way I am suppose to excute that?
0
 
pritamduttCommented:
Which version of Windows are you using?
0
 
BoxingEquallsLifeAuthor Commented:
Windows 7. I would be nice to have it work with previous versions.
0
 
Neil RussellTechnical Development LeadCommented:
All that RUNDLL32.EXE USER32.DLL,UpdatePerUserSystemParameters ,1 ,True does if force a restart of explorer.exe  You can get the same result by killing it in task manager and restarting explorer.exe that way. That does NOT reread the registry and that is what would be needed to simulate a loggoff/logon.
0
 
BoxingEquallsLifeAuthor Commented:
It seems like this will be a more complicated task and would need to be written in a different language. What language will best suit this task?
0
 
pritamduttCommented:
Visual C/C++ is best suited for this task. Also, the previous option given by me does not work in Windows 7 as I checked.

0
 
Neil RussellTechnical Development LeadCommented:
You can pick any language you like. The task wont happen.  IF Software requires a reboot to complete an install then it requires a reboot to complete the install.

Dont you think this would be a very profitable, well advertised piece of software if it already existed?

Good luck but I think you are chasing wild horses Sir.
0
 
speak2abCommented:
Dont you think this would be a very profitable, well advertised piece of software if it already existed?
Experts Exchange should have a like button :)

Let me try to explain why this is necessary. Firstly there is the issue of locked dlls. When the system reboots it updates the registry with the new dlls/replaced dlls that came with your package on startup before locking the dlls.

Like i pointed out earlier this depends on the package you are installing in some cases you can just restart a service but i am afraid this is not always the case and in most cases you might not even know what specifically needs to be restarted.

In a similar note some software installers can identify the running softwares or services causing the lock on the dlls and prompt you to close certain applications before installing the application. In which case a boot "may" not be required.

These are a few pointers to help you understand the reason behind this.
 
There is a short blog that explains this more: http://www.groovypost.com/howto/groovytip/why-does-my-computer-require-reboot-after-installing-software/

Cheers.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
  • 3
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now