Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 193198

Problems with powershell script

$
0
0

I am having problems setting up a script through task manager... My script is as follows.

 

------------------------------

 

Connect-VIServer NAME-SERVER.xsclient.int
$a = get-date ((get-date).AddMinutes(2)) -format "yyyy-MM-%d HH:mm
Get-Desktop -pool_id TEST | Get-DesktopVM | Send-LinkedCloneRefresh -schedule $a

## -forcelogoff $true -stoponerror $true

 

-------------------------------

 

I tried running that directly through powershell aswell which returns a "Not recognized command"

 

I run it through the vSphere powercli shortcut on the desktop and get "Could not connect using the requested protocol."

 

I also tried setting the protocol using Connect-VIServer NAME-SERVER.xsclient.int -protocol https and still the same result.


Viewing all articles
Browse latest Browse all 193198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>