-
Notifications
You must be signed in to change notification settings - Fork 0
/
PersonalProfileCore.ps1
60 lines (40 loc) · 1.41 KB
/
PersonalProfileCore.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
49
50
51
52
53
54
55
56
57
58
59
60
. "$env:POWERSHELLSCRIPTSTORE\Scripts\Powershell\Modules\PersonalProfileModule\settings\PersonalProfile.Settings.ps1"
. "$env:POWERSHELLSCRIPTSTORE\Scripts\Powershell\Modules\SystemProfileManagementModule\SymbolicLinks\SetupProfileSymbolicLinks.ps1"
function Redo-PersonalProfile {
@(
$Profile.AllUsersAllHosts,
$Profile.AllUsersCurrentHost,
$Profile.CurrentUserAllHosts,
$Profile.CurrentUserCurrentHost
) | ForEach-Object {
if (Test-Path $_) {
Write-Verbose "Running $_"
. $_
}
}
Reset-ProfileScripts
<#
.SYNOPSIS
Reloads all Powershell Profile files
.DESCRIPTION
Reloads all Powershell Profile files by first removing custom modules and running the profile again without restarting the host.
.INPUTS
None. You cannot pipe objects to Redo-Profile.
.OUTPUTS
None. This will reload all Profile scripts.
.EXAMPLE
PS> Redo-Profile
.LINK
https://github.com/skyhoshi/PersonalProfileModule
#. LINK
Set-Item
#>
}
function Reset-PersonalProfileScripts {
. "$env:POWERSHELLSCRIPTSTORE\Scripts\Powershell\Modules\PersonalProfileModule\PersonalProfile.Settings.ps1"
. "$env:POWERSHELLSCRIPTSTORE\Scripts\Powershell\Modules\SystemProfileManagementModule\SymbolicLinks\SetupProfileSymbolicLinks.ps1"
#
. "$env:POWERSHELLSCRIPTSTORE\Scripts\Powershell\Scripts\Open-SSH\RobotSSh.ps1"
}
function Register-PersonalProfileManager {
}