Solved

Module Powershell functionality

  • 18 September 2023
  • 7 replies
  • 152 views

Badge +1

I would like use these command

Enable-CVSchedulePolicy -ClientName <String> -SubclientName <String>
Disable-CVSchedulePolicy -ClientName <String> -SubclientName <String>

But i have a small problem with that

The primary function sought is to deactivate or dissociate a client's policy.
In each policy I have several clients.

I therefore need to do that only on one or a list of clients and not on the entire policy

is it possible to refine the powershell command in this direction ??

icon

Best answer by Navneet Singh 19 September 2023, 10:07

View original

7 replies

Userlevel 3
Badge +10

@Jonathan NABICA 

You can try with the below Qqscript. You can run this through powershell too.

https://documentation.commvault.com/2023e/expert/SetSchedulePolicy.html

Badge +1

Aw, it's very interesting, i wasn't familiar with this method but i can try it.
I don't know where and how i can found all qscript but i will search on the web.

Thanks for your answer.

Badge +1

@Navneet Singh

I have a doubt, in my use of this module, I am connected to the RDP Windows machine, and I only have access to the commvault console, not directly via ssh connection to the commserv…

in my case, can I use the qoperation?

Do i need to install a module from the Content Store to use it?

 

Badge +1

 

Userlevel 3
Badge +10

@Jonathan NABICA 

You need to go to the base location and then perform qlogin in order to run the qscript.

Badge +1

I do not have authorization to connect to DB SQL, I am a service provider and they did not give me total control over the solution.

So I can't use your solution.

sorry for wasting your time.

Userlevel 3
Badge +10

@Jonathan NABICA 

You need to open CMD in admin mode then go to the Commvault base folder location.

Perform qlogin. Enter your Commcell user ID and password and then run the above script. No need to login to SSMS.(SQL DB)

Reply