# Execution node on a Windows server 2019 machine

**URL:** <https://community.openpbs.org/t/execution-node-on-a-windows-server-2019-machine/1340>\
**Category:** Users/Site Administrators\
**Created:** [December 7, 2018, 1:11am UTC](https://community.openpbs.org/t/execution-node-on-a-windows-server-2019-machine/1340 "2018-12-07T01:11:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![drao](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/drao/32/124_2.png) [@drao](https://community.openpbs.org/u/drao)\
**Post date:** [December 7, 2018, 1:11am UTC](https://community.openpbs.org/t/execution-node-on-a-windows-server-2019-machine/1340/1 "2018-12-07T01:11:22Z")

</div>

Hi, I am running into some trouble while scheduling a job on a windows server 2019 machine.

The job scheduled to run on this machine gets assigned to the machine, but there are permission issues here, the mom\_log entries look like this:  
12/06/2018 17:01:43;0100;pbs\_mom;Job;390801.sched-win;allowed qa to access window station and desktop, User qa passworded  
12/06/2018 17:01:43;0001;pbs\_mom;Svr;pbs\_mom;Permission denied (13) in task\_save, error on open C:/PROGRA~2/PBS/home/mom\_priv/jobs/390801.sched-win.TK/00000001  
12/06/2018 17:01:43;0001;pbs\_mom;Job;390801.sched-win;Task save failed  
12/06/2018 17:01:43;0008;pbs\_mom;Job;390801.sched-win;Task save failed  
12/06/2018 17:01:44;0100;pbs\_mom;Job;390801.sched-win;task 00000001 cput= 0:00:00  
12/06/2018 17:01:44;0008;pbs\_mom;Job;390801.sched-win;kill\_job  
12/06/2018 17:01:44;0100;pbs\_mom;Job;390801.sched-win;kaby1 cput= 0:00:00 mem=0kb  
12/06/2018 17:01:44;0100;pbs\_mom;Job;390801.sched-win;Obit sent  
12/06/2018 17:01:44;0080;pbs\_mom;Job;390801.sched-win;delete job request received  
12/06/2018 17:01:44;0008;pbs\_mom;Job;390801.sched-win;kill\_job  
12/06/2018 17:01:44;0001;pbs\_mom;Svr;pbs\_mom;No error (0) in remdir, opendir: C:\PROGRA~2\PBS\home\mom\_priv\jobs\390801.sched-win.TK  
cygwin-bash$ ls -ltr mom\_priv/jobs  
total 0  
d--------- 1 Administrators mkpasswd 0 Dec 6 17:01 390801.sched-win.TK  
d--------- 1 Administrators mkpasswd 0 Dec 6 17:01 390802.sched-win.TK  
d--------- 1 Administrators mkpasswd 0 Dec 6 17:03 390804.sched-win.TK  
d--------- 1 Administrators mkpasswd 0 Dec 6 17:04 390805.sched-win.TK  
d--------- 1 Administrators mkpasswd 0 Dec 6 17:04 390806.sched-win.TK  
d--------- 1 Administrators mkpasswd 0 Dec 6 17:05 390807.sched-win.TK  
d--------- 1 Administrators mkpasswd 0 Dec 6 17:06 390808.sched-win.TK  
d--------- 1 Administrators mkpasswd 0 Dec 6 17:06 390809.sched-win.TK  
cygwin-bash$  
The permissions are not being set correctly for \*.TK files.why? The procedure of installation and set up of pbspro is the same as what we have been following on other windows machines as well. Things are fine there.

---

<div class="post-metadata">

**Author:** ![adarsh](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@adarsh](https://community.openpbs.org/u/adarsh)\
**Post date:** [December 9, 2018, 10:51pm UTC](https://community.openpbs.org/t/execution-node-on-a-windows-server-2019-machine/1340/2 "2018-12-09T22:51:47Z")

</div>

Could you please try repairing permissions, to repair permissions on an execution host, log into the host and run the following commands:

- net stop pbs\_mom
- pbs\_mkdirs mom
- net start pbs\_mom

---

<div class="post-metadata">

**Author:** ![drao](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/drao/32/124_2.png) [@drao](https://community.openpbs.org/u/drao)\
**Post date:** [February 1, 2019, 7:38pm UTC](https://community.openpbs.org/t/execution-node-on-a-windows-server-2019-machine/1340/3 "2019-02-01T19:38:00Z")

</div>

That did not work. I followed these steps to get it working. But these settings change back to the default on their own after a system reboot (and I end up having to follow these steps every time after a system reboot). Is there a permanent solution to this problem? I see it only on windows server 2019, not on any other OS version of windows.

- Right click home in “c:\Program Files (x86)\PBS” and select properties -\> security tab -\> advanced button -\> select Administrator user and change “Applies to” to “This folder, subfolder and files”, click on the checkbox to enable the children to get these permissions -\> Apply
- Right click mom\_priv in “c:\Program Files (x86)\PBS\home” and select properties -\> follow the same steps as above
- Right click jobs in “c:\Program Files (x86)\PBS\home\mom\_priv” and select properties -\> follow the same steps as above
