$DSs = Get-Datastore | Where-Object {$_.Name -like 'NFS*'}
$NFSSUM = @()
foreach($DS in $DSs){
$NFS = Get-ChildItem -Path vmstore:\Datacenter\$DS -Recurse -Filter *.vmx
$NFSSUM += $NFS
}

vCenter에 등록되지 않은 .VMX 파일을 찾아 등록하는 프로세스가 갑자기 필요해졌는데 

거기까지 만들기는 너무나 귀찮고 험난해서 일단 데이터스토어에서 Query 하는 것까지만. 

 

사실은 LucD라는 아주 유명한 재야의 고수가 이미 만들어둔 걸 찾아서 실사용은 이걸로 할 것 같다만

https://www.lucd.info/2011/08/11/vmx-raiders-revisited/

 

VMX Raiders Revisited - LucD notes

Tweet This afternoon news of a new (and interesting) blog post from Julian […]

www.lucd.info

 

딱 2%만 더 잘 만들어 줬으면 더 좋았을텐데 아쉽다... ㅎㅎ

어쨌건 급한 불은 끄기는 했는데... 

반응형

+ Recent posts