Professional Documents
Culture Documents
Creating Service Powershell
Creating Service Powershell
A8929A0\D130944D-6194-4E92-9DCB-B5C1E01E2D21\Root\VFS\SystemX86\drivers\truecryp
t.sys" type= kernel start= system error= normal DisplayName= truecrypt
Set-ExecutionPolicy RemoteSigned
$a = $PSScriptRoot | Split-Path -Parent
$b = Join-Path -ChildPath "\6D1B0B85-B413-4350-AE49-1C473A8929A0\D130944D-6194-4
E92-9DCB-B5C1E01E2D21\Root\VFS\SystemX86\drivers\truecrypt.sys" -Path $a
New-Service -BinaryPathName $b -Name "TrueCrypt" -Confirm -Description "Used by
TrueCrypt Software" -DisplayName "TrueCrypt" -StartupType Automatic
Start-Service -Name TrueCrypt