Quantcast
Channel: Forum Remote Desktop Services (Terminal Services)
Viewing all articles
Browse latest Browse all 27650

Server 2012r2 unpin from taskbar file explorer

$
0
0

I have asked this question on several forums now with no luck, so maybe someone here can give me some help??? I don't understand why this is so difficult... Some one on the powershell forum said to try this, but it didn't work either...

 ----------------------------------                    

$sa = new-object -c shell.application
$pn = $sa.namespace($env:windir).parsename('explorer.exe')
$pn.invokeverb('taskbarunpin'

-------------------------------

So here is my post again......

Hello, I have tried this on a few different forums including server 2012 general... Is there a powershell script to unpin file explorer for all new users when they log in on a rds/citrix session but still allows me to use my powershell script to pin our companies icons to the taskbar as we have it setup in the all users startup? Here is my post from another forum...

I posted this on the server group and got a few replies but no one was able to help me and the MVP said I should try here.

All I am trying to do is:

Server 2012r2, I use classic shell to lock down most of it and it works fine. I have file explorer left that is pinned to the taskbar. I would like to get rid of it altogether for every

user that logs on.

1.) I don't want to use the GPO to do this as it doesn't allow anything to be pinned afterwards and I have a vbs in the all user startup that points to powershell needs to pin our default apps. So all I need

is something to remove file explorer at logon..

1.) I have tried to use the same powershell and added the file explorer.lnk  to the remove apps part and that didn't work.

2.) I have tried another powershell written to remove apps from taskbar but it didn't work either... I tried off this forum the one that was reposted by syntax 53 who altered it to reflect taskbar.. 

http://www.tenforums.com/customization/21002-how-automatically-cmd-powershell-script-unpin-all-apps-start.html

 I put the above in the gpo user startup powershell scripts... Didn't work

3.) I logged in to server as myself and got the taskbar to be empty went to regedit opened hkcu.......taskband, exported that out put it in our scripts folder on the server and

then went to the gpo users startup bat and added he line   Regedit.exe /S C:\Scripts\TaskBand.reg....   That still didn't do it for me.. (I tried this option twice as the first time I forgot

to clear out the user profile off the profile server and start with a fresh one)

4.) This was interesting and was almost there, but it stopped short of getting rid of file explorer..

http://clintboessen.blogspot.com/2014/12/remove-power-shell-and-server-manager.html

I am to my wits end on this... Can someone tell me how to get rid of file explorer off the taskbar but still let me have the ability to run the powershell to pin the default apps which happens from script in the all users startup?

========================

If I can't have that happen is there a way to have file explorer only show the users z:drive?  home directory? That would be acceptable....

On that note, on our 2008r2 servers we have the document folder pointing to z.... I can't get that to happen in server 2012r2... Is there something different you have to do for that

in 2012r2?   So if I can get file explorer and documents folder to go to z, then I would be good with that...

Thanks.


Viewing all articles
Browse latest Browse all 27650

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>