Data Backup and Recovery

Snap Creator 4.1.2 allowed commands

debpearenetapp
3,284 Views

I am trying to get this in the allowed command file instead of having to put in an "*".

 

NTAP_SNAPSHOT_CREATE_CMD02="C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -Command Import-Module SnapDrive;Set-SdSnapshot -Snapshot %SNAME-%SNAP_TYPE_%SNAP_TIME -StorageSystem TEST -VolumeName TEST-SnapMirrorLabel Daily

 

The command completes just fine with "*"

 

I have tried "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" without quotes added -Command several things.

 

Any assistance would be greatly appreciated.

3 REPLIES 3

debpearenetapp
3,279 Views
 

spinks
3,183 Views

Hi,

 

Looking at the command, the entry in the allow_commands.config file should be:

 

command:"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"

 

You don't need to add anything after that.

 

Be sure that you restart the agent after making the changes.

 

John

 

debpearenetapp
3,172 Views

That does not work.  I have already tried that.  I did restart the agent.

Public