C
CoryP
I have a form that I am checking to see if the user is online or offline
using MachineOnlineState in order to get data from either a remote or local
database. In order to access the remote database, the user not only has to
be online, but they need to be on the same domain as well.
So, in order to find out their DNSDomain, I did a GetObject on winmgmts in a
vbs file and it worked perfectly. However, when I copied that code to the
script.vbs file for the InfoPath form, I get permission errors every time.
I am asking if anyone can provide me with a solution that will work within
an InfoPath form. Or show me how to pass credentials in with the GetObject
of winmgmts.
Sorry if I did a bad job explaining this. I hope you can understand.
-Cory
using MachineOnlineState in order to get data from either a remote or local
database. In order to access the remote database, the user not only has to
be online, but they need to be on the same domain as well.
So, in order to find out their DNSDomain, I did a GetObject on winmgmts in a
vbs file and it worked perfectly. However, when I copied that code to the
script.vbs file for the InfoPath form, I get permission errors every time.
I am asking if anyone can provide me with a solution that will work within
an InfoPath form. Or show me how to pass credentials in with the GetObject
of winmgmts.
Sorry if I did a bad job explaining this. I hope you can understand.
-Cory