Import-Module ActiveDirectory
$DCs = (Get-ADForest).Domains | %{ Get-ADDomainController -Filter * -Server $_ } | select HostName
foreach ($DC in $DCs) { repadmin /syncall $DC.HostName }
Hope it helps!
Welcome to my VMWare resource pool!
"One small step for man, One giant leap for virtualization!
[root@pbase ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_pbase-lv_root 5.5G 1.8G 3.5G 34% / tmpfs 939M 0 939M 0% /dev/shm /dev/sda1 485M 37M 423M 9% /boot [root@pbase ~]# ls -l /dev/mapper/ total 0 crw-rw----. 1 root root 10, 58 Mar 3 09:42 control lrwxrwxrwx. 1 root root 7 Mar 3 09:42 vg_pbase-lv_root -> ../dm-0 lrwxrwxrwx. 1 root root 7 Mar 3 09:42 vg_pbase-lv_swap -> ../dm-1 # after attaching disk [root@pbase ~]# ls -l /dev/mapper/ total 0 crw-rw----. 1 root root 10, 58 Mar 3 09:46 control lrwxrwxrwx. 1 root root 7 Mar 3 09:46 vg_pbase-lv_root -> ../dm-0 lrwxrwxrwx. 1 root root 7 Mar 3 09:46 vg_pbase-lv_swap -> ../dm-1 lrwxrwxrwx. 1 root root 7 Mar 3 09:46 vg_pzuadm-lv_home -> ../dm-3 lrwxrwxrwx. 1 root root 7 Mar 3 09:46 vg_pzuadm-lv_root -> ../dm-2 lrwxrwxrwx. 1 root root 7 Mar 3 09:46 vg_pzuadm-lv_swap -> ../dm-4 [root@pbase ~]# mkdir /mnt/sysimage [root@pbase ~]# mount /dev/mapper/vg_pzuadm-lv_root /mnt/sysimage/ [root@pbase ~]# cat /etc/fstab | grep boot UUID=64d2336b-93cf-454a-8f25-8fc5fc8ba69a /boot ext4 defaults 1 2 # before edit [root@pbase ~]# cat /boot/grub/grub.conf # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,0) # kernel /vmlinuz-version ro root=/dev/mapper/vg_pbase-lv_root # initrd /initrd-[generic-]version.img #boot=/dev/sda default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title Red Hat Enterprise Linux (2.6.32-358.el6.x86_64) root (hd0,0) kernel /vmlinuz-2.6.32-358.el6.x86_64 ro root=/dev/mapper/vg_pbase-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=vg_pbase/lv_swap SYSFONT=latarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=pl2 rd_LVM_LV=vg_pbase/lv_root rd_NO_DM rhgb quiet initrd /initramfs-2.6.32-358.el6.x86_64.img # after edit [root@pbase ~]# cat /boot/grub/grub.conf # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,0) # kernel /vmlinuz-version ro root=/dev/mapper/vg_pzuadm-lv_root # initrd /initrd-[generic-]version.img #boot=/dev/sda default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title Red Hat Enterprise Linux (2.6.32-358.el6.x86_64) root (hd0,0) kernel /vmlinuz-2.6.32-358.el6.x86_64 ro root=/dev/mapper/vg_pzuadm-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=vg_pzuadm/lv_swap SYSFONT=latarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=pl2 rd_LVM_LV=vg_pzuadm/lv_root rd_NO_DM rhgb quiet initrd /initramfs-2.6.32-358.el6.x86_64.img # before edit [root@pbase ~]# cd /mnt/sysimage/etc/ [root@pbase etc]# cat fstab # # /etc/fstab # Created by anaconda on Tue Feb 11 16:38:25 2014 # # Accessible filesystems, by reference, are maintained under '/dev/disk' # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info # /dev/mapper/vg_pzuadm-lv_root / ext4 defaults 1 1 /dev/sdb1 /boot ext4 defaults 1 2 /dev/mapper/vg_pzuadm-lv_home /home ext4 defaults 1 2 /dev/mapper/vg_pzuadm-lv_swap swap swap defaults 0 0 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 # after edit [root@pbase etc]# cd [root@pbase ~]# umount /mnt/sysimage/ [root@pbase ~]# reboot [root@pzuadm ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_pzuadm-lv_root 50G 24G 24G 50% / tmpfs 939M 0 939M 0% /dev/shm /dev/sda1 485M 37M 423M 9% /boot /dev/mapper/vg_pzuadm-lv_home 44G 181M 41G 1% /home
I had indeed run out of “rearms” and slmgr.vbs /dlv showed 0 for the count. First, I created the “skiprearm.xml” that was a recommended approach in one of the other articles. It didn’t work. But hold on, because you’ll still need it later on. That article can be found here: click here and you should copy and paste the code and store it where they want. Next, and this is the MONEYchange….you must check/edit 3 registry keys: HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\GeneralizationState\CleanupState:2 HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\GeneralizationState\GeneralizationState:7 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\SkipRearm:1 Next, Start -> Run : msdtc -uninstall (wait few seconds) Start -> Run : msdtc -install (wait few seconds) Restart the machine Check the registry for the right registry keys values sysprep with the new XML answerfile Run the following command from a command prompt: sysprep /generalize /oobe /shutdown /unattend:c:\Windows\skiprearm.xml It should now work for you. And it makes sense because were changing anything Microsoft may have done by skipping rearm, changing the generalization state, then reinstalling MSDTC. Please let me know if this works for you. -<settings pass="generalize"> -<component language="neutral" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" processorArchitecture="x86" name="Microsoft-Windows-Security-SPP"> <SkipRearm>1</SkipRearm> </component> </settings>
NAME |
__PBTPW732NP_Temp |
PBTPW732NP_Temp |
BTPXDWIN7O10 |
clone-example |
PBTPCTL01 |
PBTPDEVW764001 |
PBTPDEVW764002 |
PBTPDEVW764003 |
PBTPDEVW764004 |
PBTPDEVW764005 |
1
2
|
C:\WINDOWS>ntdsutil
ntdsutil:
|
1
2
|
ntdsutil:
metadata cleanup
metadata
cleanup:
|
1
2
|
metadata
cleanup: connections
server connections:
|
1
2
3
4
|
server connections:
connect to server server100
Binding
to server100 ...
Connected
to server100 using credentials of locally logged on user.
server connections:
|
1
2
|
server connections:
q
metadata
cleanup:
|
1
2
|
metadata
cleanup: Select operation target
select operation
target:
|
1
2
3
4
|
select operation
target: list domains
Found 1
domain(s)
0 - DC=dpetri,DC=net
select operation
target:
|
1
2
3
4
5
6
|
select operation
target: Select domain 0
No
current site
Domain -
DC=dpetri,DC=net
No
current server
No
current Naming Context
select operation
target:
|
1
2
3
4
|
select operation
target: List sites
Found 1
site(s)
0 - CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=dpetri,DC=net
select operation
target:
|
1
2
3
4
5
6
|
select operation
target: Select site 0
Site - CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=dpetri,DC=net
Domain -
DC=dpetri,DC=net
No
current server
No
current Naming Context
select operation
target:
|
1
2
3
4
5
|
select operation
target: List servers in site
Found 2
server(s)
0 - CN=SERVER200,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=dpetri,DC=net
1 - CN=SERVER100,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=dpetri,DC=net
select operation
target:
|
1
2
3
4
5
6
7
8
9
|
select operation
target: Select server 0
Site - CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=dpetri,DC=net
Domain -
DC=dpetri,DC=net
Server -
CN=SERVER200,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=dpetri,DC=net
DSA object - CN=NTDS Settings,CN=SERVER200,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=dpetri,DC=net
DNS host name - server200.dpetri.net
Computer object - CN=SERVER200,OU=Domain Controllers,DC=dpetri,DC=net
No
current Naming Context
select operation
target:
|
1
2
|
select operation
target: q
metadata
cleanup:
|
1
2
3
|
metadata
cleanup: Remove selected server
"CN=SERVER200,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=dpetri,DC=net"
removed from server "server100"
metadata
cleanup:
|
Using OpenSSL for NSX Manager SSL import: Creates CSR and 4096 bit KEY Creating NSX 6.4.2 SSL openssl req -out nsxcert.csr -newkey rsa:40...