Forum Discussion
Deleted
Dec 02, 2017PowerShell script for stop application in remote server, which is domain joined. Not workgrou server
Hello Team,
I am working one of the customer enterprise environment azure cloud automation tasks. From azure perspective past couple of days working and trying to setup lot of things including ...
null null
Jan 03, 2018Copper Contributor
look into WinRM
Use something like this to make the connection to the vm
If you don't know the names of the VM's you would use something like
$vmList = get-AzureRmVm
Then to action something on those VMs
InlineScript {
$options = New-PSSessionOption -SkipCACheck
Invoke-Command -ConnectionUri $Using:VMName -Credential $Using:VMCredential -SessionOption $options -ArgumentList $Using:Folder `
-ScriptBlock {
param ([string]$folder)
mkdir $folder
}
}