Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Error 673 WntPrivAdd
ver=wntversion() privList_results=wntPrivList( '', 'domain\user') message('privList results', PrivList_results) result=wntPrivAdd('', 'domain\user', 'SeShutdownPrivilege') result=wntPrivAdd('', 'domain\user', 'SeServiceLogonRight' )
"NCsecMan" is the username I am trying to give the rights to.
Final evidence - IT seemed as though we could add a right as long as there was at least one existing priviledge.
I tested this function on a NT 4 machine, with the latest 33002 version of the 'Win32 network extender' and it ran flawlessly. I think all you need to do is get the latest version from our website....
result=wntPrivAdd("","domain/username","SeServiceLogonRight")I'm using 2000C Winbatch and Extender 11017.
The original code looked like this. tmpsvcacct is a valid domain\user variable
wntPrivAdd("", tmpsvcacct, "SeServiceLogonRight")work around is to specify PDC name. this seems to have worked
pdc = wntGetDc( "", "", 1) wntPrivAdd(pdc, tmpsvcacct, "SeServiceLogonRight")
Article ID: W14880
File Created: 2001:11:08:12:40:48
Last Updated: 2001:11:08:12:40:48