powershell - A parameter cannot be found that matches parameter name 'User' -


creating cluster scheduled tasks on clustered servers. when trying run user not working.some 1 can me on this.

$username = "peoplead\satest-bc" $password = "password1234"  $triggerparam = new-scheduledtasktrigger -at (7 am)  register-clusteredscheduledtask -action (new-scheduledtaskaction -execute e:\scheduledtasks\schtest.exe) -taskname "schtest" -cluster wdstgcl02 -description "schtestesting" -tasktype anynode -trigger $triggerparam -user $username -password $password 

you getting error because -user , -password not valid parameters cmdlet. if had run simple get-help have seen yourself.

i suggest running:

get-help register-clusteredscheduledtask -full 

so can familiarize cmdlet using, , how use it.


Comments

Popular posts from this blog

How to run C# code using mono without Xamarin in Android? -

html - grunt SVG to webfont -

c# - SharpSsh Command Execution -