-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCheck-Prof.ps1
31 lines (31 loc) · 1.36 KB
/
Check-Prof.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
$FileVersion = "0.1.0"
Clear-Host
WC "~white~System Profiles information $FileVersion~"
Say ""
WC "~darkyellow~The Main Profile For Your Account is~~white~:~"
WC "~white~=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=~"
WC "~yellow~$Profile~"
Say ""
WC "~darkyellow~The other possible profile files are~~white~:~"
WC "~white~=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=~"
$temp = $Profile.AllUsersAllHosts
$Filetest = Test-Path -path $temp
if (($Filetest)) { $used = "Used" }
else { $used = "Not used" }
WC "~darkcyan~[ ~~white~AllUsersAllHosts~~darkcyan~ ]~~white~......:~ ~yellow~$temp~ ~darkred~(~~white~$Used~~darkred~)~"
$temp = $Profile.AllUsersCurrentHost
$Filetest = Test-Path -path $temp
if (($Filetest)) { $used = "Used" }
else { $used = "Not used" }
WC "~darkcyan~[ ~~white~AllUsersCurrentHost~~darkcyan~ ]~~white~...:~ ~yellow~$temp~ ~darkred~(~~white~$Used~~darkred~)~"
$temp = $Profile.CurrentUserAllHosts
$Filetest = Test-Path -path $temp
if (($Filetest)) { $used = "Used" }
else { $used = "Not used" }
WC "~darkcyan~[ ~~white~CurrentUserAllHosts~~darkcyan~ ]~~white~...:~ ~yellow~$temp~ ~darkred~(~~white~$Used~~darkred~)~"
$temp = $Profile.CurrentUserCurrentHost
$Filetest = Test-Path -path $temp
if (($Filetest)) { $used = "Used" }
else { $used = "Not used" }
WC "~darkcyan~[ ~~white~CurrentUserCurrentHost~~darkcyan~ ]~~white~:~ ~yellow~$temp~ ~darkred~(~~white~$Used~~darkred~)~"
Say ""