Quantcast
Channel: Virtual Server forum
Viewing all 1182 articles
Browse latest View live

Error while capture image (sysprep) with MDT

$
0
0

Hi,

I can't no more. I get some errors and warnings with MDT when i trying to capture a image. I have clean a lot of errors but each times 10 errors more come.

here the last Failure code from MDT

Failure MDT

And here the content of the log file setupact :

2019-08-05 10:42:31, Info                  SYSPRP ========================================================
2019-08-05 10:42:31, Info                  SYSPRP ===          Beginning of a new sysprep run          ===
2019-08-05 10:42:31, Info                  SYSPRP ========================================================
2019-08-05 10:42:31, Info       [0x0f004d] SYSPRP The time is now 2019-08-05 10:42:31
2019-08-05 10:42:31, Info       [0x0f004e] SYSPRP Initialized SysPrep log at C:\windows\system32\sysprep\Panther
2019-08-05 10:42:31, Info       [0x0f0054] SYSPRP ValidatePrivileges:User has required privileges to sysprep machine
2019-08-05 10:42:31, Info       [0x0f007c] SYSPRP FCreateTagFile:Successfully deleted tag file C:\windows\system32\sysprep\Sysprep_succeeded.tag
2019-08-05 10:42:31, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'QUIET'
2019-08-05 10:42:31, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'GENERALIZE'
2019-08-05 10:42:31, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'OOBE'
2019-08-05 10:42:31, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'QUIT'
2019-08-05 10:42:31, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'UNATTEND'
2019-08-05 10:42:31, Info       [0x0f00d7] SYSPRP WinMain:Pre-validing 'cleanup' internal providers.
2019-08-05 10:42:31, Info                  SYSPRP RunExternalDlls:Running platform actions specified in action file for phase 3
2019-08-05 10:42:31, Info                  SYSPRP SysprepSession::CreateSession: Successfully created instance with action file C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml, and mode <null>
2019-08-05 10:42:31, Info                  SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml
2019-08-05 10:42:31, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
2019-08-05 10:42:31, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
2019-08-05 10:42:31, Info                  SYSPRP ActionPlatform::LaunchModule: Executing method 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll
2019-08-05 10:42:31, Info                  SYSPRP ActionPlatform::LaunchModule: Successfully executed 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll without error
2019-08-05 10:42:31, Info       [0x0f00d7] SYSPRP WinMain:Pre-validing 'generalize' internal providers.
2019-08-05 10:42:31, Info                  SYSPRP RunExternalDlls:Running platform actions specified in action file for phase 1
2019-08-05 10:42:31, Info                  SYSPRP SysprepSession::CreateSession: Successfully created instance with action file C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml, and mode <null>
2019-08-05 10:42:31, Info                  SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml
2019-08-05 10:42:31, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
2019-08-05 10:42:31, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
2019-08-05 10:42:31, Info                  SYSPRP ActionPlatform::LaunchModule: Executing method 'ValidateBitLockerState' from C:\Windows\System32\BdeSysprep.dll
2019-08-05 10:42:31, Info                  SYSPRP ActionPlatform::LaunchModule: Successfully executed 'ValidateBitLockerState' from C:\Windows\System32\BdeSysprep.dll without error
2019-08-05 10:42:31, Info                  SYSPRP ActionPlatform::LaunchModule: Executing method 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll
2019-08-05 10:42:31, Info                  SYSPRP Entering SysprepGeneralizeValidate (Appx) - validating whether all apps are also provisioned.

2019-08-05 10:42:32, Error                 SYSPRP Package Microsoft.MSPaint_5.1904.8017.0_x64__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.

2019-08-05 10:42:32, Error                 SYSPRP Failed to remove apps for the current user: 0x80073cf2.

2019-08-05 10:42:32, Error                 SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.

2019-08-05 10:42:32, Error                 SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
2019-08-05 10:42:32, Error                 SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
2019-08-05 10:42:32, Error                 SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2
2019-08-05 10:42:32, Error      [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
2019-08-05 10:42:32, Error      [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2
2019-08-05 10:42:32, Info       [0x0f0052] SYSPRP Shutting down SysPrep log
2019-08-05 10:42:32, Info       [0x0f004d] SYSPRP The time is now 2019-08-05 10:42:32

If somebody can help me !

Regards,

Julien


Enabling vTPM on Hyper-V VM

$
0
0

I am attempting to enable the virtual TPM on a Hyper-V VM, when enabled I attempt to start the VM and am given the error:

Start-VM : 'KF-WIN10' failed to start.
'KF-WIN10' could not initialize.'KF-WIN10' failed to start. (Virtual machine ID 9E926667-9C80-4D83-929A-61D5B002AC74)
'KF-WIN10' failed to start worker process: The computed authentication tag did not match the input authentication tag.
(0xC000A002). (Virtual machine ID 9E926667-9C80-4D83-929A-61D5B002AC74)
'KF-WIN10' could not initialize. (Virtual machine ID 9E926667-9C80-4D83-929A-61D5B002AC74)


I have a Host Guardian Service running which is the Key Protector, the cmdlets I am using are:

$VM = Get-VM -VMName KF-WIN10
Enable-VMTPM -VM $VM
$Owner = Get-HgsGuardian -Name 'STSHGSGuardian';
$kp = New-HgsKeyProtector -Owner $Owner -AllowUntrustedRoot;
Set-VMKeyProtector -VM $VM -KeyProtector $kp.RawData
Start-VM -VM $VM

I am running Hyper-V on Windows 10 1809.

Cheers




Virtual Server showing incorrect disk space after VHD size has been increased and volume expanded within the guest

$
0
0
we have Hyper-v running on windows sevrer2016 fresh install and have moved guest VM's from an old server to this one.
One of the VM's (running server 2008 R2) has had the VHD for the d:\ drive expanded from 1TB to 1.25TB, (dynamic disk) The drive have been extended in the guest VM's Disk Managemant console and shows as 1318GB, However in file explorer the disk is still showing as 0.99TB capacity.

anyone any ideas on how to resolve this issue please? 

VM Server 2016 - Event 8193 Volume Shadow Copy Service error: Unexpected error calling routine ConvertStringSidToSid

$
0
0
Hello All,

We have a virtual Server 2016 at work. Which keeps reoccurring event 8193. From what I could gather on line this is regarding a backup issue with the SID. Non the less, would like to cover all my bases since have not found anything specific for this faulty module.

Can someone help me out with the basics: Where is this coming from? Do we need to take up any measures? is this high impact? how to resolved if needed.


Thank you all in advanced.


Log info
--------------------------------------------------------------------------
Volume Shadow Copy Service error: Unexpected error calling routine ConvertStringSidToSid(S-1-5-21-3912081775-2972631207-1420028119-2182.bak).  hr = 0x80070539, The security ID structure is invalid.

Operation:
   OnIdentify event
   Gathering Writer Data

Context:
   Execution Context: Shadow Copy Optimization Writer
   Writer Class Id: {4dc3bdd4-ab48-4d07-adb0-3bee2926fd7f}
   Writer Name: Shadow Copy Optimization Writer
   Writer Instance ID: {0d22a722-80c3-4c36-9ab4-723896da904a}

VM Server 2016 - Event 1000 0xc0000005 app miprvse.exe, fault module OLEAUT32.dll

$
0
0

Hello All,

We have a virtual Server 2016 at work. Which keeps reoccurring event 1000. So I would like to investigate. Where is this coming from? Do we need to take up any measures? is this high impact? how to resolved if needed.

Would anyone assist me with this please?

Thank you all in advanced.

Log info

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


Faulting application name: wmiprvse.exe, version: 10.0.14393.2155, time stamp: 0x5a9e25d8

Faulting module name: OLEAUT32.dll, version: 10.0.14393.2940, time stamp: 0x5cad4d0d

Exception code: 0xc0000005

Fault offset: 0x0000000000010dd8

Faulting process id: 0x4510

Faulting application start time: 0x01d53ebddf1a1489

Faulting application path: C:\Windows\system32\wbem\wmiprvse.exe

Faulting module path: C:\Windows\System32\OLEAUT32.dll

Report Id: 880b7f39-7064-42c4-8270-cc9c5d36ff7a

Faulting package full name: 

Faulting package-relative application ID: 

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

The description for Event ID 1000 from source VGAuth cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.


If the event originated on another computer, the display information had to be saved with the event.


The following information was included with the event: 


vmtoolsd: Username and password successfully validated for 'xxx\admin

Convert virtual machines hosted in KVM to hyper V 2012 server

$
0
0

Hi,

Can you help me to convert virtual machines hosted in linux KVM to hyper-V 2012 server?


ITandIT

Multiple VMs on Multiple Monitors

$
0
0
I am running Windows 2016 Server as a Hyper-V host. I have 2 Matrox C680 6 port Video cards installed on the server. I have created 12 Windows 10 VMs on the server. Is there a way I can launch each VM to an individually separate video port programmatically and end up with each VMs using the same unique individual video port every time it launches? It seems whether through remote desktop, VMconnect, or through Hyper-V all VMs want to open on the same monitor and I then need to drag and drop each machine to its desired monitor. The problem is that the monitors are not all visible from the server.

Hyperv 2008R2 - SQL server failover cluster VM backup nic keeps losing network connection

$
0
0
Hi Guys,

Issue:
======
Hyperv 2008R2 - SQL server failover cluster VM backup NIC keeps losing network connection

- from Active node both management and backup nic working fine
- however from passive node management working fine but backup nic keeps losing network connection


so far we tried patch level comparison, cluster validation and add/remove NIC card, virtual IP and assign different IPs but issue still same.

explorer.exe crashing on Windows Server 2012 R2 after folder redirection for specific users

$
0
0

Hello,

At one of our customers’ sites, we are having issues on terminal server running Windows Server 2012 R2 Standard. Every day, when a specific user logs in, folder redirections are applied. After these directions are applied, the explorer.exe process crashes. The only resolution is to reboot the server. It does not matter how the user logs in. It is happening both on thin client, PC or laptop for this user. Later, the process also crashed when another user logged in. The error does not occur when user disconnects session, only when he/she logs on or off. Recently, this started happening for a second user aswell for no clear reason.

It’s important to note the issue started happening when about 130 Windows Updates were applied.

Following possible solutions have already been executed:

• Checking Windows image health;
• Running chkdsk command for disk errors;
• Applying a Windows update which solved an similar issue at another customers’ site, this did not solve the issue;
• I read on the forums that removing KB4055001, KB4074594 and KB4054980 could help, however this did not solve the issue since these KBs were not even installed;
• Removed 2 possibly related Windows Updates in the KB405 range, this did not help either;

What can we do in order to fix this error?

Following error shows up every time in the event logs:

Faulting application name: Explorer.EXE, version: 6.3.9600.18231, time stamp: 0x56b8c9f1
Faulting module name: windows.immersiveshell.serviceprovider.dll, version: 6.3.9600.17415, time stamp: 0x54503ee6
Exception code: 0x80270233
Fault offset: 0x000000000000cf07
Faulting process id: 0x3b4c
Faulting application start time: 0x01d5574a7ca33d50
Faulting application path: C:\Windows\Explorer.EXE
Faulting module path: C:\Windows\System32\windows.immersiveshell.serviceprovider.dll
Report Id: bab00d41-c33d-11e9-80f1-000c29cd6ae6
Faulting package full name:
Faulting package-relative application ID:

Thanks in advance,

Christiaens

      

Bitlocker Network Unlock doesn't work anymore

$
0
0

Hi there, We are experiencing some problems with our Bitlocker Network Unlock for all our clients, we need to enter the PIN after turning on the computers. We have the following infastructure (all of the servers below are virtual machines - Windows Server 2012R2):

  • 2 Domain controllers (one with Bitlocker Infrastructure Encryption feature installed) 
  • 1 Bitlocker server (Bitlocker Drive Encryption and Bitlocker Network Unlocked feature installed + WDS)
  • 6 UniFi switches (PoE)

What did we do before the problem started?

1. 
We updated the firmware of all the UniFi switches to version 4.0.54.10625.    It's possible that the firmware update caused the problem, we see that there is an option to downgrade the firmware to the older version but we want to make sure that it's related to the firmware.

2. One domain controller was broken, gave a blue screen after a reboot. DHCP, Active directory and replication to the 2<sup>nd</sup> DC was stuck. We don't know what the blue screen caused yet. It gives alot of disk errors like: 'Filter Manager failed to attach to volume "\Device\HarddiskVolume700' and the most problems are solved, except the disk errors in eventviewer. However, the Active Directory, DHCP etc are running as far as we can see. 

3. We installed Windows Updates on the DC01 and the Bitlocker server.What did we check after the problem started? 1. We repaired the domain controller and the replication to the 2nd domain controller.  2. We checked the Bitlocker certificate to see if it's valid and it is but we see the following information in command prompt (blurred the key information for privacy reasons):

-Certutil -verifystore FVENKP command:
ERROR: missing key association property: CERT-KEY_IDENTIFIER_PROP_ID
Encryption test passed
Verifies against untrusted root


We checked the eventlogs of the WDS and see the following information:
[WDSSERVER/WDSPXE/NKPPROV] Could not find the configuration file section coreresponding to the specified certificate thumbprint. No subnet restrictions will aply to this certificate. Certificate thumbprint =...... HRESULT = 0x80070002.

We checked the following eventlog on the client side (Error: Bitlocker-Driver / EventID 24682 / EventID 24684):
"BOOTMGR FAILED TO OBTAIN THE  BITLOCKER VOLUME MASTER KEY FROM THE NETWORK KEY PROTECTOR: FAILED TO GET IP ADDRESS

5. We de-installed all the recent Windows Updates to make sure it's not related.
6. The UEFI stack is enabled on all the devices, didn't change anything, also no BIOS updates.
7. We checked if the Bitlocker group policy applies to the systems, it is.
8. We checked the Key protectors with the command ‘manage-bde –protectors C: -get on the client side. It shows all key protectors and certificate thumbprint.


I hope somebody can help us.

Group Policy

$
0
0

Hi Everyone,

Please help me to understand this. We have a single site, single domain environment which is running on Windows 2012 R2 server. I can see that 'Max App Log Size policy' is applying and it is set to 16xxx KB but when I log-in to any server and check manually, I can see the maximum application log size  is set to 32XXX KB.

I have checked and found that I have a Group Policy that is set at:

Computer Config\Policies\Windows Settings\Security Settings\Event Log: Maximum application log size = 16XXX kilobytes, gpresult shows the above policy setting is the winning GPO.

I've just noticed another GPO setting that looks similar and which actually applying on my all servers-

Computer Config\Policies\Administrative Templates\Windows Components\Event Log Service\Application: Specify the maximum log file size (KB). I wonder what the difference is? 


Windows XP with Active Directory 2019

$
0
0

I have one customer that not sure whether windows XP can join Active Directory 2019 or not.

I read through the forum that some claim they can work fine, some say there some hiccups and some say cannot work. 

Hoping that you guys can help me on this. 

Number of processors in Hyper-V manager greyed out

$
0
0

Hi, in our organization we are running virtualized SQL server on failover cluster (2 nodes). For performance issues I wanted to increase number of virtual processors withing hyper-v manager only to find its greyed out. The machine was shut down, yet the option remained unchangable (screenshot is from running server). There are two NUMAs set up, see attachments. Any ideas why is the option greyed out? How can I change number of virtual processors to lets say 8?

Sorry cannot paste screenshots:

https://imgur.com/a/JsBZkz5

Disk2vhd on different hardware

$
0
0

Asslam O Alaikum

i created P2V of HP DL380G6 running server 2003 with help of Disk2vhd. now i want to run this VHDX on Different machine HP DL380G9 running server 2012 Hyper-V.when i connect in hyper-v giving error Isass.exe. plz guide me step by step.

Microsoft Network Load Balancing not working as expected

$
0
0
I wish to have a failover cluster for an IIS site in my domain.
I have configured the cluster on port 80, however only once the network of that specific node is down will the cluster detect that node is down.
If I stop the site through IIS manager that node is still considered healthy.
What am I doing wrong? Is this what do the product supposed to do? If not what other product can help me?

Restoring windows server2012 image into Hyper-V VM error

$
0
0

Dear Mircrosoft,

I have an image back-up in windows server 2012 using the windows server back up feature. Im trying to restore it in Dell R640, Hyper-V, inside VM. However, an error shows "Windows cannot restore a system image to a computer that has a different firmware. The system image was created on a computer using BIOS and this computer is using EFI" . I have read the same article that there is no way to restore the image created with BIOS into a new hardware with EFI mode. Any workaround please. 

Thank you for your help,

Allan

ReIP VM's over the network with Powershell

$
0
0
Hi Experts,

We have a requirement here to re IP all our VM's as we are moving to a new data center.

While trying to do so, I found a very good script from vmnomad.blogspot.com which I later customized to our need.



Script is running fine with the required parameters & updates, but its not able to change the IP address, though it says, it changed the IP address.

Command syntax from PowerCLI: NewreIP1.ps1 -Inventory .\Test-Inventory5.csv -VC vCenter



I think, this command syntax invoke-vmscript -ScriptText $changingIp -ScriptType bat -VM $vm.ServerName -GuestUser $vm.Username -GuestPassword $vm.Password  is not able to execute forcefully on the VM, the way it should.



Previous line output provides data perfectly, the ones which needs to be changed:

$changingIp = '%WINDIR%\system32\netsh.exe interface ipv4 set address name="' + $InterfaceName + '" source=static address=' + $vm.newIP + ' mask=' + $vm.newMask + ' gateway=' + $vm.newGateway + ' gwmetric=1 store=persistent'

Write-Host $changingIp



The script is added here as an attachment.

I tried to run the output of Write-Host $changingIp in couple of my VM's manually & they were able to change the IP address based on the data provided without any issues.

So, somehow Invoke-VMscript is not able to run on the VM with data acquired.

Any help will be great!


param([String]$Inventory, [String]$VC)

# Getting credentials
do {
	$user = Read-Host -Prompt 'Enter username for source vCenter'
	$pass = Read-Host -AsSecureString -Prompt 'Enter password for source vCenter'
	$cont = Read-Host -Prompt 'Type y to continue'
   } while($cont -ne 'y')
$cred = New-Object –TypeName System.Management.Automation.PSCredential –ArgumentList $user, $pass

# Connecting to vCenter
Write-Host 'Connecting to' $VC '..'
Connect-VIServer -Server $VC -Credential $cred | Out-Null

#Ensure you are connected to the correct vCenter
if(!$DefaultVIServer -or $DefaultVIServer.Name -ne $VC) {
	Write-Host -Fore:Red 'Connection to vCenter' $SourceVC 'failed, exiting..'
	exit
} else {
	Write-Host 'Connection to vCenter' $SourceVC 'succeeded'
	Write-Host
}

# Processing CSV. You need the following columns in the CSV file: ServerName, Username, Password, NewPortgroup,origIP,newIP,newMask,newGateway 
$csv = @()
$csv = Import-CSV -Path $Inventory | Where {$_.ServerName}
$csv | % {
    $_.ServerName = $_.ServerName.Trim()
    $_.Username = $_.Username.Trim()
    $_.Password = $_.Password.Trim()
    $_.NewPortgroup = $_.NewPortgroup.Trim()
    $_.origIP = $_.origIP.Trim()
    $_.newIP = $_.newIP.Trim()
    $_.newMask = $_.newMask.Trim()
    $_.newGateway = $_.newGateway.Trim()
    }


# Updating VMs' Portgroups and IP Addresses

foreach ($vm in $csv){

    #Check if the Portgroup exists. Get the correct PG in case there is more than one PG with identical name
	$PG= get-virtualswitch -VM $vm.ServerName | get-virtualportgroup | ?{$_.Name -eq $vm.NewPortgroup}
	if(!$PG){
	Write-Host -Fore:Red "The Portgroup" $vm.NewPortgroup "was not found. Proceeding to the next VM"
	Continue
	}
	#Change Portgroup
	Write-Host -Fore:Yellow "Connecting" $vm.ServerName "to Portgroup" $vm.NewPortgroup 
    $nic = (get-vm -name $vm.ServerName) | get-NetworkAdapter
    Set-NetworkAdapter -NetworkAdapter $nic -Portgroup $PG -Confirm:$false 


	# Changing IP Address
	
	# Check if VM is powered on and if it has the VMtools running 
    if($vm.PowerState -eq 'PoweredOff' -or $vm.ExtensionData.Guest.ToolsRunningStatus -eq 'guestToolsNotRunning') { 
		Write-Host -Fore:Red $VM ' is powered off and the IP address of the VM cannot be updated'
	} else {
        # Check if Guest OS is Windows 2012
        if ((Get-vm -name $vm.Servername).Guest.OSFullName -eq "Microsoft Windows Server 2012 (64-bit)"){
            # Get the Interface Name 
            $script = '(Get-NetIPAddress | where-object {$_.IPAddress -match "' + $vm.origIp + '" -and $_.AddressFamily -eq "IPv4"}).InterfaceAlias'
            $InterfaceName = invoke-vmscript -ScriptText $script -ScriptType PowerShell -VM $vm.ServerName -GuestUser $vm.Username -GuestPassword $vm.Password
            $InterfaceName = $InterfaceName -replace "`t|`n|`r",""
            if(!$InterfaceName) {
				Write-Host -Fore:Red "The Interface with IP Address" $vm.origIP " was not found in VM" $vm.ServerName "`n"
				Continue
				}

            #Change the IP Address
            Write-host -Fore:Yellow "`nChanging IP Address of" $vm.ServerName "interface" $InterfaceName "from" $vm.origIp "to" $vm.newIp
            $changingIp = '%WINDIR%\system32\netsh.exe interface ipv4 set address name="' + $InterfaceName + '" source=static address=' + $vm.newIP + ' mask=' + $vm.newMask + ' gateway=' + $vm.newGateway + ' gwmetric=1 store=persistent'
			Write-Host $changingIp
            $setIp = invoke-vmscript -ScriptText $changingIp -ScriptType bat -VM $vm.ServerName -GuestUser $vm.Username -GuestPassword $vm.Password            
            }
        # For all other Windows 64 bit Guest OS
        else {
            if ((Get-vm -name $vm.Servername).Guest.OSFullName -eq "Microsoft Windows Server 2016 (64-bit)"){
				# Get the Interface Name 
            $script = '(Get-NetIPAddress | where-object {$_.IPAddress -match "' + $vm.origIp + '" -and $_.AddressFamily -eq "IPv4"}).InterfaceAlias'
            $InterfaceName = invoke-vmscript -ScriptText $script -ScriptType PowerShell -VM $vm.ServerName -GuestUser $vm.Username -GuestPassword $vm.Password
            $InterfaceName = $InterfaceName -replace "`t|`n|`r",""
            if(!$InterfaceName) {
				Write-Host -Fore:Red "The Interface with IP Address" $vm.origIP " was not found in VM" $vm.ServerName "`n"
				Continue
				}

            #Change the IP Address
            Write-host -Fore:Yellow "`nChanging IP Address of" $vm.ServerName "interface" $InterfaceName "from" $vm.origIp "to" $vm.newIp
            $changingIp = '%WINDIR%\system32\netsh.exe interface ipv4 set address name="' + $InterfaceName + '" source=static address=' + $vm.newIP + ' mask=' + $vm.newMask + ' gateway=' + $vm.newGateway + ' gwmetric=1 store=persistent'
			Write-Host $changingIp
            $setIp = invoke-vmscript -ScriptText $changingIp -ScriptType bat -VM $vm.ServerName -GuestUser $vm.Username -GuestPassword $vm.Password            
            }
            }  
    # Register the new IP Address with DNS
    Write-Host -Fore:Yellow "Registering with DNS"
    $registeringDNS = '%WINDIR%\System32\ipconfig /registerdns'
    $segDNS = invoke-vmscript -ScriptText $registeringDNS -ScriptType bat -VM $vm.ServerName -GuestUser $vm.Username -GuestPassword $vm.Password
    Write-Host -Fore:Green $vm.ServerName "has been sucessfully updated `n"
	}
}
Disconnect-VIServer -Confirm:$false

Thanks

Arindam

Hyper- v replication automatic failover

$
0
0

Hello Everyone,

please help me to sort-out this meter,

we are planing to install Hyper-v ( Head office and branch office) with Hyper-v Replication.

i Refer this video also : https://www.youtube.com/watch?v=HyAmfRXp6hc

i want to know can any chance to do "Hyper-v replication Automation" , if anyone have an idea please suggest me.

Thank you very much!

Windows server 2019 and scheduled tasks

$
0
0

It appears that microsoft server 2019 can not run any task regardless of extenstion if said scheduled task's elapsed time to completion exceeds 5 minutes, and at 5 minutes of elapsed time that task will be ended automatically without error, or log.

Steps to confirm

a .bat and a .exe were both scheduled to run on a 2019 server and at 5 minutes the tasks did do what they were intended to do but not completely as they were ended immediately at the 5 minute limit.

Scheduled tasks on 2019 have a lowest limit of auto kill of the process at 1 hour, not 5 minutes, all automatically stop options, in triggers and settings were deselected, all options to stop the process for any reason were deselected.

those same .bat files were run from file explorer and both ran to completion

Please fix this asap!

cloning dc win server 2012 r2 installed on vmware workstation 12

$
0
0

Dear All :) , 

After greetings , i have a win server 2012 r2 dc installed inside vmware workstation 12 , after i follow these steps in the link below 

https://www.interfacett.com/videos/clone-windows-server-2012-2012-r2-domain-controller/

to clone it , there is no export like hyper-v , so i selected cloning from vmware workstation 12 options , after finished the new server started in a safe mode , i don't know what is the problem or am i wright in my steps when i choose cloning not exporting or i need to clone without cmd from vmware 12 options only .

Thank you  

Have A good Day  

Yours  

Sherif Adly Hassan  

IT Engineer 

Eastern Company For Tobacco 

Mobile: 0020 (114) 6616236 9am:5pm (UTC+2:00)Cairo Sun-Th 

Email:Engineer.Sherif@msn.com  

 


Engineer.Sherif

Viewing all 1182 articles
Browse latest View live


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