EDIT: I am running windows 10 looks like the script needs to be updated for windows 10. Ill see what I can do and try testing it.
EDIT: Looks like it might not be as easy. Apparently the API has changed in windows 10 and I am having a hard time getting any documentation atm because its still Technical preview. I am thinking Create is different now… and probably the objWMIService changed. So I do not have a way to test why its not working for you atm @eddhasaj
PS. I cant test it right now because rewriting it for windows 10 is rather difficult since not much has been given on what might be different yet. However I really do not see why it wouldn’t work I mean its the same structure there has to be something else wrong. You double checked the install dir for sambapos5?
I copied the directory that im using in the script and pasted in run path and it started samba so im sure the path is correct.
I had v4 installed and the script worked great. I installed v5 and changed all sambaPOS4’s to 5’s accordingly and saved the script. The script does nothing, no errors.
My guess is that this uses Windows server in order to access Group Policies. How would we be able to achieve this in a standard version of windows 8.1?