Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That does not work. I have already tried that. I did restart the agent.
