[Samba] Creating Tasks using task scheduler on windows 10 1709 using SAMBA remotely

Aravind Koppaka aravind.koppaka at gmail.com
Fri Apr 20 18:37:18 UTC 2018


Hi All,

I am working on an important task where i need to create tasks using task
scheduler on windows 10 systems remotely from linux using opensource samba
code on linux. Basically i have xml file where i will pass that xml buffer
in samba code and ultimately it will open a pipe with remote windows 10
system and will create the scheduled tasks on windows machine.

Code is working for windows 10 1511 version but it not working for Windows
10 1709 & 1803 versions and it is returning error in samba code as *NT code
0x80070005* and with error in SAMBA code is NT_STATUS_INVALID_PARAMETER_MIX
. So in this regards i would like to know what changes were done in windows
10 1709 & 1803 versions in Task Scheduler ? Are there any parameters newly
introduced in 1709,1803 versions of windows 10 for task scheduler and
accordingly i need to change in samba code? Please let me know your
response....
Following is my smb.conf file
[global]
   client plaintext auth = no
   encrypt passwords = yes
   client lanman auth = no
   lanman auth = no
   ntlm auth = yes
   client ntlmv2 auth = yes
   client use spnego = yes
   client signing = auto
   server signing = auto
   printing = bsd
   printcap name = /etc/printcap
   load printers = yes
   guest account = pcguest
   unix charset = UTF-8
;  This next option sets a separate log file for each client. Remove
;  it if you want a combined log file.
   log file = /usr/local/samba/log.%m
   name resolve order = lmhosts host kdc ads

;  You will need a world readable lock directory and "share modes=yes"
;  if you want to support the file sharing modes for multiple users
;  of the same files
;  lock directory = /usr/local/samba/var/locks
;  share modes = yes

[homes]
   comment = Home Directories
   browseable = no
   read only = no
   create mode = 0750

[printers]
   comment = All Printers
   browseable = no
   printable = yes
   public = no
   writable = no
   create mode = 0700

; you might also want this one, notice that it is read only so as not to
give
; people without an account write access.
;
; [tmp]
;   comment = Temporary file space
;   path = /tmp
;   read only = yes
;   public = yes


More information about the samba mailing list