Does this mean you don't have any administrative account to access that guest ?
Since the IP settings need to be done from within the guest OS, you will need to have some kind of access to the OS.
An alternative is to use WMI calls, but again that needs an account to connect to the guest OS.