Control Panel Applet Files (CPL)

(imported topic written by amagewick91)

I have a question about *.CPL files and BES. As just one example, when I run “ncpa.cpl” which is Network Connections in the windows RUN box it works just fine. When I run it in the action debugger, the window for Network Connections comes up fine. When I put that same action in a task and try to run it, nothing happens and I get a “Completed” status.

With the testing I have done it almost looks like these control panel applets cannot be run with SYSTEM? Has anyone messed around with these?

(imported comment written by JackCoates91)

Have you tried runascurrentuser.exe? It’s a GUI tool, so there’s no need to use it unless there’s a current user. You can use group membership to make sure it’s someone that’s capable of doing something with it too.

(imported comment written by amagewick91)

I was thinking of using a script that calls PSEXEC first, runs a cmd window with credentials and then runs a command of your choosing within the elevated window. I’ll see about the PSEXEC script and will post my results.

(imported comment written by amagewick91)

I can’t get this working… I have a batch file that works just fine if I run it with my doubleclick, or in the action debugger. The batch file runs PSEXEC, calls a command window with an elevated user account, and then runs the timedate.cpl file. It works just fine!

When I put it in a task it does nothing. I am at a loss here. Ultimately I am trying to get command like the following 2 into a task so that I can change time zones in BigFix!

RunDLL32.exe shell32.dll,Control_RunDLL %SystemRoot%\system32\TIMEDATE.cpl,/Z US Eastern Standard Time

RunDLL32.exe shell32.dll,Control_RunDLL timedate.cpl,/Z Central Standard Time

(imported comment written by MattBoyd)

… what OS? There are a couple of ways to set the time zone, but it seems to vary by version of Windows OS.

If it’s Windows 7/2008R2, check out tzutil:

tzutil /?

tzutil /l

tzutil /l “Eastern Standard Time”

For Windows XP, have you tried this?

Control.exe TIMEDATE.CPL,/Z US Eastern Standard Time

(imported comment written by amagewick91)

I will check them out! I’ll let you know what happens.

Ultimately I would like Win2000/XP/7 to all have an option.

UPDATE: Alright, already have my Windows 7 test task working :slight_smile:

(imported comment written by amagewick91)

BOTH OF THESE WORKED! Thank you very much!