I have a logon script in vbs and need to kill the ctfmon.exe, add a registry key and then start the ctfmon.exe again.
This enables the language bar via Citrix. If I run this in Admin mode it works, as user i get an access denied. How can I assign the user the right to kill the process and start it again, using a vbs command?
objWshShell.Run "C:\WINNT\system32\pskill.exe ctfmon.exe"
langbar = "C:\Apps\User\Langbar"
Strlanguagebar = "C:\Apps\User\Langbar\languagebar.reg"
If objFSO.FolderExists(Langbar) Then
If objFSO.FileExists(languagebar) Then
objWshShell.Run "regedit.exe /s " & Chr(34) & Strlanguagebar & Chr(34), 0, True
If Err.number = 0 Then
WriteLog "++ This is a Singapore server. The import of the registry key 'LanguageBar' was successfull. The language bar will be displayed to all users"
WriteLog "-- The import of the registry key 'LanguageBar' was not successfull"
WriteLog "Regkey does not exist"
WriteLog " No need for Language bar "
objWshShell.Run "C:\WINNT\system32\psexec.exe ctfmon.exe"
objWshShell.Run "C:\WINNT\system32\pskill.exe psexec.exe"