Skip to content

Instantly share code, notes, and snippets.

([XML] (.\stsadm -o enumservices)).Services.Service
!|scenario|revert|guests|
|eval|"@guests".split(';') !-|-! % {(Get-VM $_ !-|-! Get-View).Config.Files.VmPathName} !-|-! % {${VMRUN} stop $_ hard; ${VMRUN} start $_}|
|eval|"@guests".split(';') !-|-! % {while((Get-VM $_).Guest.State -ne 'Running' ){ sleep(10) }}|
#############################################################################################################
# PowerSlim 0.1
#############################################################################################################
import os,re
import clr,os
clr.AddReference("System.Management")
clr.AddReference("System.Management.Automation")
from System.Management.Automation import *
from System.Management.Automation.Host import *
from System.Management.Automation.Runspaces import *