sasha2002 Blog's

Just another blog from admin's

Archive for the ‘Windows’ Category

Hyper-V Import/Export VM bulk group —

Import bulk : $dir = dir C:\DIR | ?{$_.PSISContainer} foreach ($d in $dir){ $path = Join-Path -Path $d.FullName -ChildPath “Virtual Machines\” $fileBaseNames = (Get-ChildItem $path*.vmcx).Name $fullpath = $path+$fileBaseNames & echo $path & Import-VM -Path $fullpath -Copy } Export ALL VM Get-VM | Export-VM -Path “c:\EXPORT_PATH” Export particular VM Export-VM -Name “VM_NAME” -Path “c:\EXPORT_PATH” If some […]

fix psexec hang on remote connect —

1. Add this reg key on target: reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\system /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f 2. Disable firewall (note – this will leave you with out any firewall protection) netsh advfirewall set allprofiles state off 3. If target user has a blank PW and you don’t want to add one, run on target: […]