[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

toolbar

Posted on 2014-08-07
10
Medium Priority
?
322 Views
Last Modified: 2014-08-14
At work in Active Directory there is a OU that is setup to lock down computers so that they can only run certain programs. Sometimes this make simple things like moving the taskbar into a longer than necessary process. So I was looking around for a solution and came across this command

rundll32.exe shell32.dll,Options_RunDLL 1

which opens the task bars and start menu properties. I tried this because the pc's in the resticted OU are so locked down, you can't right click on anything. Also, the control panel is hidden. I tried the above command on my pc and it works fine. However, on a locked down pc you get

"This operation was cancelled due to restrictions in effect on this computer. Please contact your system administrator."

would there be a way to run this command so that it unlocks the taskbar? Or is there a better way to unlock the taskbar through the command line or something like it?
Also, I can't do this through group policy, and I'm not trying to get around security, it is just to move a taskbar. I can't see how that would affect security, the user just wants to move the taskbar.
0
Comment
Question by:JeffBeall
  • 6
  • 4
10 Comments
 
LVL 44

Expert Comment

by:Davis McCarn
ID: 40248640
You need to get a copy of PSTools and unzip it: http://technet.microsoft.com/en-us/sysinternals/bb896649.aspx

Then, create a BAT file which has this:
c:\pstools\psexec -s -i rundll32.exe shell32.dll,Options_RunDLL 1

If you care to use a flash drive, substitute its drive letter for c and set the properties for the bat file to always run as administrator.
0
 
LVL 1

Author Comment

by:JeffBeall
ID: 40249227
so from other things I have psexec, and ran this command

C:\psexec>PsExec.exe \\d01endcs0004a rundll32.exe shell32.dll,Options_RunDLL 1

it runs and returns this message

rundll32.exe exited on d01endcs0004a with error code 0.

which I take to mean that it worked, but when I try to move the task bar it doesn't move?
0
 
LVL 44

Expert Comment

by:Davis McCarn
ID: 40249332
I think it is closing immediately so try adding PAUSE as a second line in the BAT file which will hopefully leave the properties sheet open.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:JeffBeall
ID: 40249430
i tried that but it's still not working, but i think it might be because there's a domain policy.
when i run the batch file on the restricted machine it says
"This operation has been cancelled due to restrictions in effect on this computer. Please contact your system administrator.
0
 
LVL 44

Expert Comment

by:Davis McCarn
ID: 40249526
c:\pstools\psexec -u administrator -i rundll32.exe shell32.dll,Options_RunDLL 1

It will prompt you for the admin password; but, just worked fine for me.  The other options are in the help file in the PSTools folder.
0
 
LVL 1

Author Comment

by:JeffBeall
ID: 40253292
ok, I had a chance to try

c:\pstools\psexec -u administrator -i rundll32.exe shell32.dll,Options_RunDLL 1

and it asks for a password, but as soon as I put the password in ( i did it a couple of times very carefully ) I get this error

"Error in shell32.dll
Missing entry: Options_RunDll"

any ideas what might be causing this?
0
 
LVL 1

Author Comment

by:JeffBeall
ID: 40253328
by the way i realized that I need to run this on the remote pc, so I did this command

"PsExec.exe \\d01endcs0004a -u phadmin -i rundll32.exe shell32.dll,Options_Rundll 1"

but then I get

"Error in shell32.dll
Missing entry: Options_RunDll"

on the remote pc.
0
 
LVL 44

Accepted Solution

by:
Davis McCarn earned 2000 total points
ID: 40253362
You want the " around the execution string, not the entire command.

PsExec.exe \\d01endcs0004a -u phadmin -i "rundll32.exe shell32.dll,Options_Rundll 1"
0
 
LVL 1

Author Comment

by:JeffBeall
ID: 40253543
I didn't have " around anything, I just put the " in my post to show that that was what i typed into the command prompt. Sorry, I guess that was a little mis-leading. So I tried the command just like you have it

PsExec.exe \\d01endcs0004a -u phadmin -i "rundll32.exe shell32.dll,Options_Rundll 1"

and now I get this.

PsExec could not start rundll32.exe shell32.dll,Options_Rundll 1 on d01endcs0004a:
The system cannot find the file specified.

So I thought this might be because of the group policies blocking the control panel, so I have a test laptop that has win7 loaded on it without our sccm image loaded on it. it is just "out-of-the-box" win7 with no modifications and at a command prompt on it I run

"rundll32.exe shell32.dll,Options_Rundll 1"

and it said that it is not recognized as an internal or external command, so I tried

rundll32.exe "shell32.dll,Options_Rundll 1"

and that ran without an error, it just went back to the command prompt. but I thought that this was supposed to unlock the task bar, but when i ran the above command, and then right click on the task bar, the "Lock the TaskBar" is still checked. So I tried

rundll32.exe "shell32.dll,Options_Rundll 2"

just out of curiosity to see if the 1=locked and 2 might = unlocked, but it runs the command with no problems, but the taskbar is still locked.
0
 
LVL 1

Author Closing Comment

by:JeffBeall
ID: 40262222
thank you for the help.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By default the complete memory dump option is disabled in windows . If we want to enable the complete memory dump for a diagnostic purpose, we have a solution for it. here we are using the registry method to enable this.
A quick guide on how to use Group Policy to create a custom power plan and set it active on Windows 7.
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.
Suggested Courses
Course of the Month18 days, 1 hour left to enroll

829 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