-
Notifications
You must be signed in to change notification settings - Fork 1
/
gist.ps1
49 lines (44 loc) · 1.3 KB
/
gist.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Set-ExecutionPolicy RemoteSigned
cinst fiddler4
cinst git-credential-winstore
cinst sublimetext3
cinst poshgit
cinst awscli
cinst awstools.powershell
cinst google-chrome-x64
cinst python2
cinst nodejs
cinst vagrant
cinst virtualbox
cinst packer
cinst packer-windows-plugins
$UNPIN = (
("C:\Program Files\Internet Explorer\","iexplore.exe"),
$null)
foreach ($item in $UNPIN)
{
if ($item){
$shell = new-object -com "Shell.Application"
$folder = $shell.Namespace($item[0])
$item = $folder.Parsename($item[1])
$verb = $item.Verbs() | ? {$_.Name -eq 'Unpin from Tas&kbar'}
if ($verb) {$verb.DoIt()}
}
}
$PIN = (
("C:\Program Files (x86)\Google\Chrome\Application\","chrome.exe"),
("C:\Program Files (x86)\Atlassian\SourceTree\","SourceTree.exe"),
("C:\windows\system32\WindowsPowerShell\v1.0\","powershell.exe"),
("C:\Program Files\Sublime Text 3","sublime_text.exe"),
$null)
foreach ($item in $PIN)
{
if ($item){
$shell = new-object -com "Shell.Application"
$folder = $shell.Namespace($item[0])
$item = $folder.Parsename($item[1])
$verb = $item.Verbs() | ? {$_.Name -eq 'Pin to Tas&kbar'}
if ($verb) {$verb.DoIt()}
}
}