-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmepl.ps1
26 lines (17 loc) · 891 Bytes
/
mepl.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
<#
mepl.ps1
.DESCRIPTION
MaxEasyProcessLogger
https://github.com/thelamescriptkiddiemax/powershell
#>
#--- Variablen ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
$logpath = "C:\testordner"
$logdatei = "prozesslogs.csv"
#--- Verarbeitung -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
$logding = "$logpath\$logdatei"
If(!(test-path $logpath))
{
New-Item -ItemType Directory -Force -Path $path
New-Item -Path $logpath -Name $logdatei -ItemType "file" -Value "Prozesse"
}
Get-Process | Out-File $logding -Append -Encoding Unicode