Data Backup and Recovery

Snap Creator 4.1.2 allowed commands

debpearenetapp

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

spinks

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

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

debpearenetapp
 
Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public