Is there a way to write a Rule to Create Folder in Remote Server through Powershell Script?

Hello Experts,

I have got his requirement to be able to create Folder in a remote servers

We have created a powershell script to create remote folders and executing it on IQService server set up for AD application throuugh a Custom Rule .

It is working all good for IQservice Servers set up for AD but not working and not creating any folder on any other remote servers.

For Ex; We have 2 servers (ServerA and ServerB) set up as IQ service for AD application, when we exeute Powershell script to create folder in any of these Servers(ServerA and ServerB) it is working but when we try to execute powershel script to create folder in ServerC, It does not work and does not create any folder.

Need some help or insights in this scenario.

Will look forward to get some leads.

Thank You
Ankita

It’s not something I’d generally recommend to do via IIQ (a Data Access Governance tool would likely be more appropriate), but it is possible to send a RPC to the IQService service in a rule with a custom PoSh script: Running Powershell directly via the IQService - Compass

Note: The script would be run under the context of the IQService service account, so that account would need permissions to create shared folders on those remote servers (which is outside the scope of the “normal” IQService service account permissions).

If the script is being invoked and running to completion (no errors), the most likely issue is either permissions (see note above) or not using the correct powershell commands (like not running a command with elevated rights or not establishing the connection to the remote server correctly). Adding log statements in your PoSh script and tracing the IQService logs should help diagnose the latter.

Hi.
How can I run rpc request on iqservice server that is on cloudgateway server?
I can run this perfectly on reqular iqservice server…
But using cloudgateway not working
Any idea?

How can I run rpc request on iqservice server that is on cloudgateway server?
I can run this perfectly on reqular iqservice server…
But using cloudgateway not working
Any idea?

Best I can hypothesize is that you’d need to initialize a connector instance that is using the CloudGateway as a proxy and try to run the rule that way, but it’s something I’ve never personally attempted.

1 Like