Solved

I have a very restricted PC (gpo - not batch or command shell). how can i run a batch from gpo during log off process ?

Posted on 2016-11-13
3
27 Views
Last Modified: 2016-11-29
I have a very restricted computer on which only a few applications are allowed. Batch and the cmd shell is of course prohibited. How can I still run a cleaning-batch when logging off by using the gpo ?
It is a Win 10 pro without Server or domain. I use the local gpo for non-admins.
0
Comment
Question by:loosain
  • 2
3 Comments
 

Author Comment

by:loosain
ID: 41885634
It is a problem of rights. So is there any cahnce or way to start the script with admin rights ? I can´t use the script with gpo-shutdown. i have to use gpo-loggoff. This is my problem, because there the skript uses the rights of the current user...
0
 
LVL 23

Accepted Solution

by:
NVIT earned 500 total points
ID: 41885743
> How can I still run a cleaning-batch when logging off by using the gpo... I use the local gpo for non-admins.

If you are not admin or don't have admin access, it can just clean the current user.
0
 

Author Closing Comment

by:loosain
ID: 41906593
I did convert bat2exe an so i could use runas with credentials to higher my rights
0

Join & Write a Comment

Utilizing an array to gracefully append to a list of EmailAddresses
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now