วันอังคารที่ 24 ธันวาคม พ.ศ. 2556

Proxy PAC File publishing

Open IIS Console.

Right Click Site or Virtual Directory where you have create PAC file website.
Click on HTTP Headers Tab. And then Click on MIME Types button , It will open MIME Type Menu
that showing you two thing ( Extension and MIME Type).
Type .PAC in extension and application/x-ns-proxy-autoconfig in MIME type.

วันจันทร์ที่ 4 พฤศจิกายน พ.ศ. 2556

Example Robocopy

Backup
robocopy c:\backup d:\backup /maxage:1 /r:2 /mir /sec /log+:c:\backuplog\backup.log /ndl /nfl /eta

Archive
robocopy c:\backup d:\Archive /minlad:20121231(YYYYMMDD) /move /r:2 /mir /sec /log+:c:\backuplog\archive.log /ndl /nfl /eta

วันจันทร์ที่ 21 ตุลาคม พ.ศ. 2556

How to Add Account Window in Citrix Receiver for Windows 3.x

When you Install the receiver 3.3, you can script the install for the users so they do not see the prompt with an Install scipt similar to the following: 

CitrixReceiver.exe /silent /include SSON STORE0="VIAB;http://myviab/dt/PNAgent/config.xml;on" 

วันจันทร์ที่ 30 กันยายน พ.ศ. 2556

Enabling Remote Desktop Connection client Single Sign On (SSO) for Remote Desktop Services

1. Server

Connect to Remote Desktop Host Server
Start Server Manager
Expand Roles->Remote Desktop Services select RD Session Host Configuration
In the right pane in the Connections right click RDP-Tcp connection name and choose Properties
On the Log on Settings tab make sure "Alsways prompt for password" is unchecked.
On the General tab choose security layer: Negotiate or SSL (TLS 1.0)
Click OK.


2. Windows 7

Start Group Policy Editor (run: gpedit.msc)
Expand Computer Configuration->Administrative Templates->System->Credentials Delegation
Enable following settings: Allow Delegating Default Credentials and Allow Delegating Default Credentials with NTLM-only Server Authentication
Add following entries to each setting TERMSRV/server_name

server_name is the name of the RDSH server, you can use one wildcard there, for example: TERMSRV/myserver or TERMSRV/*.domain.com or TERMSRV/*

SSO (Single Sign On) thoughts on RDWEB

http://www.anilerduran.com/index.php/2012/sso-single-sign-on-thoughts-on-rds-remote-desktop-services-2012/

วันจันทร์ที่ 16 กันยายน พ.ศ. 2556

How to Deploying BGInfo using a GPO

Wyse ThinOS INI Files

https://www.4shared.com/office/1DnsUQOX/reference-guide-wyse-thinos-in.html?

DHCP & FTP Setup for Wyse

http://www.freewysemonkeys.com/downloads/DHCP%20%20FTP%20blazer.pdf
http://wysestore.com/pdfs/wyse/WTOS_Getting_Started_Guide_JUN2009.pdf

C10LE
By default set up your WNOS in "\Wyse\wnos\wnos.ini

KMS Command

Activate Windows
c:\windows\system32\cscript slmgr.vbs /skms KMSServer:1688  Specifies the kms server
c:\windows\system32\cscript slmgr.vbs /ato     Activation ID
c:\windows\system32\cscript slmgr.vbs /dlv all  Display detailed license information

http://technet.microsoft.com/en-us/library/ff793433.aspx
http://technet.microsoft.com/en-us/library/ff793406.aspx



Activate Microsoft Office
c:\Program Files\Microsoft Office\Office14>cscript OSPP.vbs /unpkey:*****   Remove Product key
c:\Program Files\Microsoft Office\Office14>cscript ospp.vbs /sethst:KMSServer Specifies the kms server
c:\Program Files\Microsoft Office\Office14>cscript ospp.vbs /act Activation ID
c:\Program Files\Microsoft Office\Office14>cscript ospp.vbs /dstatus Display detailed license information

http://technet.microsoft.com/en-us/library/ee624350.aspx
http://technet.microsoft.com/en-us/library/dn385360.aspx

Vdiab
c:\Program Files\Common Files\Microsoft Shared\OfficeSoftwareProtectionPlatform\OSPPREARM.EXE
Rearm before create golden image

AD Lockouts and Bad Password Detection

http://sourceforge.net/projects/adlockouts/?source=dlp

วันจันทร์ที่ 1 กรกฎาคม พ.ศ. 2556

How to Resize Storage Repository after Changing Size of Logical Volume Manager Based Storage

iSCSI SRs with software initiator
  1. Shut down all virtual machines on the SR.
  2. Note the Universally Unique Identifier (UUID) of the Storage Repository. Use the xe sr-list command on the XenServer host and identify the SR by its name label.
  3. Identify the Physical Block Device (PBD) UUID corresponding to the SR. Use the following command on XenServer:
    # xe sr-param-list uuid=<SR UUID>|grep PBDwhere <SR UUID> is the UUID of the SR noted in step 2.
  4. Unplug the Physical Block Device (PBD) corresponding to the Storage Repository.
    # xe pbd-unplug uuid=<PBD UUID>where <PBD UUID> is the UUID of PBD noted in step 3.
  5. Plug the PBD.
    # xe pbd-plug uuid=<PBD UUID>
    Note: In previous versions of XenServer, explicit commands were required to resize the physical volume group of iSCSI and HBA SRs. These commands are now issued as part of the PBD plug operation and are no longer required.
  6. Power on the Virtual Machines.

HBA SRLive Migrate Virtual Machines to another host in the pool or shutdown or suspend the Virtual Machines.Restart the host.Power on the Virtual Machines.Repeat for each host in the pool.

วันพุธที่ 12 มิถุนายน พ.ศ. 2556

Creating backups of running VMs in XenServer

First look for the uuid of the VMs to backup. We don’t want to backup the control domain itself, so we add is-control-domain=false to the vm-list command and we also don’t want backups of snapshots so we add is-a-snapshot=false:
xe vm-list is-control-domain=false is-a-snapshot=false
Now we create a snapshot of the VMs we want to backup, replacing the uuid one by one with the ones we found with the previous command. Also replace the name of the snapshot if desired:
xe vm-snapshot uuid=d61bfc1a-33b2-5406-7ea5-76e4f7113220 new-name-label=snapshotname
This command has a return value: the uuid of the created snapshot. Then we transform the snapshot into a VM to be able to save it to a file, replacing uuid with the return value of the previous command:
xe template-param-set is-a-template=false ha-always-run=false uuid=b759625c-eab5-4e0f-be5e-a05bcbad869a
In the next step we save the snapshot to a file, replacing uuid with the snapshot uuid and providing a meaningful filename:
xe vm-export vm=b759625c-eab5-4e0f-be5e-a05bcbad869a filename=filename.xva
In the final step we delete the snapshot:
xe vm-uninstall uuid=b759625c-eab5-4e0f-be5e-a05bcbad869a force=true
http://www.jansipke.nl/creating-backups-of-running-vms-in-xenserver/

วันเสาร์ที่ 25 พฤษภาคม พ.ศ. 2556

SAS HBA is not Recognized by the Storage Manager in XenServer

This type of HBA makes use of the mpt2sas driver, and models of this HBA are manufactured by various manufacturers, including HP and Dell. 
Other LSI HBAs are unaffected.
1. Use the xe CLI command on the XenServer host:
Find the Universally Unique Identifier (UUID) of the XenServer host by running the following command: 
# xe host-list | grep uuid 
2. Run the following command to display a list of all disks that are recognized by XenServer and identify the disk(s) presented by the storage array: 
# fdisk -l 

(This example assumes that the storage array’s disk is /dev/sdb)
3. To find the SCSI ID of the disk /dev/sdb, enter the following command:
# scsi_id -g -u -s /block/sdb 

This returns a 49 character hex string, known in the next step as <scsi-id-hex-string> .
4. To create a storage repository on /dev/sdb run the following command: 
# xe sr-create host-uuid=<host-uuid> content-type=user \ 
        name-label="Shared storage on SAS Array" shared=true \ 
        device-config:SCSIid=<scsi-id-hex-string> type=lvmohba 
5. To verify that /dev/sdb was added as a storage repsitory, run the following command :
# xe sr-list
XenCenter should now display an entry for this storage repository.

*** Enable multipathing***

วันพุธที่ 17 เมษายน พ.ศ. 2556

CD/DVD TSST Corp TS-H653H ATA Not Recognised


The problem you are experiencing is not a hardware problem, it is a Windows software issue.  The manual instructions for Windows 7 ............

1. Click Start, and then click All Programs. 
2. Click Accessories, and then click Run. 
3. Type regedit, and then click OK.  If you are prompted for an administrator password or for a confirmation, type the password, or click Allow. 
4. In the navigation pane, locate and then click the following registry subkey:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE10318}

5. In the right pane, click UpperFilters.

Note You may also see an UpperFilters.bak registry entry. You do not have to remove that entry. Click UpperFilters only. If you do not see the UpperFilters registry entry, you still might have to remove the LowerFilters registry entry. To do this, go to step 8.

6. On the Edit menu, click Delete. 
7. When you are prompted to confirm the deletion, click Yes. 
8. In the right pane, click LowerFilters.

Note If you do not see the LowerFilters registry entry, unfortunately this content cannot help you any further. Go to the "Next Steps" section for information about how you can find more solutions or more help on the Microsoft Web site.

9. On the Edit menu, click Delete. 
10. When you are prompted to confirm the deletion, click Yes. 
11.Exit Registry Editor.
12.Restart the computer.


http://en.community.dell.com/support-forums/disk-drives/f/3534/p/19459610/20153719.aspx

วันศุกร์ที่ 12 เมษายน พ.ศ. 2556

Change Local Admin Password Through Group Policy



Administrator account is disabled by default on Windows 7.

go to: Computer configuration -> Policies -> Windows Settings -> Security Settings -> Security Options. On Right Pane click on Accounts: Administrator account status and change the settings to Enabled.


go to: Computer configuration -> Preferences -> Control Panel Settings ->  Policies ->  and right
click on Local Users and Groups. Choose: New -> Local User. From Drop-down
menu on User name choose: Administrator (built-in).
Put the password and confirm it.




วันพฤหัสบดีที่ 11 เมษายน พ.ศ. 2556

How to Enable or Disable Internet Explorer First Run Set Up Welcome Screen


1. In the left pane, click on to expand User Configuration, Administrative Templates, Windows Components, and Internet Explorer. (see screenshot below)


2. In the right pane, right click on Prevent performance of First Run Customize settings and click on Edit. (see screenshot above)

3. To Enable IE8 & IE9 First Run Set Up
A) Select (dot) Not Configured or Disabled. (see screenshot below step 6)
NOTE: Not Configured is the default setting.
B) Go to step 6.
4. To Disable IE8 & IE9 First Run Set Up, and have IE Open to the "Welcome to Internet Explorer" Web Page
A) Select (dot) Enabled. (see screenshot below step 6)
B) Under Options, click on the drop down menu and select Go directly to "Welcome to IE" page. (see screenshot below step 6)

C) Go to step 6.
5. To Disable IE8 & IE9 First Run Set Up, and have IE Open to the Users Home Page
A) Select (dot) Disabled. (see screenshot below step 6)

B) Under Options, click on the drop down menu and select Go directly to home page. (see screenshot below step 7)
6. Click on OK. (see screenshot below)


7. Close the Local Group Policy Editor window.


http://www.sevenforums.com/tutorials/113672-internet-explorer-8-9-enable-disable-first-run-set-up-pop-up.html

Enable the WMI entry in the firewall configuration using GPO


1. Expand the Computer Config > Policies > Windows Settings > Security Settings > Windows Firewall with Advanced Security > Windows Firewall with Advanced Security > Inbound Rules node.
2. Right-click in the working area and choose New Rule...
3. Choose the Predefined option, and select Windows Management Instrumentation (WMI) from the drop-down list, Next.
4. There are a number of options here, but I tend to just select one: the (WMI-In) option with the Domain profile value. If you aren't sure what you need, then just remember you can come back and add the others later. Next button.
5. Allow the connection > Finish.










http://social.technet.microsoft.com/Forums/en-US/winserverGP/thread/84c78946-eb05-4068-877d-489153419d13/

วันจันทร์ที่ 1 เมษายน พ.ศ. 2556

วันศุกร์ที่ 22 กุมภาพันธ์ พ.ศ. 2556

Export a VM to an External USB Drive


How to Export a Virtual Machine to an External USB Drive
Summary
This article describes how to export a XenServer Virtual Machine (VM) to a USB storage device. You must use the Command Line Interface (CLI), instead of the XenCenter.
Procedure
1. Use the fdisk -l command to determine what device file to use for the USB mass storage device. In the following screen shot, the device file is “/dev/sdb1”.

2. Create a subdirectory called “usb”, using the following command.\:
mkdir /mnt/usb
3. Mount the device file from step 1 by using the following command:
mount /dev/sdb1 /mnt/usb

Note: You might have to format the mass storage device before you mount it. If so, use the following command:
mkfs –t ext3 /dev/sdb1
4. Export a VM using the XAPI with the following command:
xe vm-export vm=<Name of VM> filename=<Name of file ending in “.xva”>
Note: Although the filename extension is not needed in Linux, it is helpful to identify the file on a Windows based file system, or if later importing the file from a Windows file system using the XenCenter.

5. To see the file and its size, use the following command:
ls –l

6. Unmount the USB drive using the following command:
umount /mnt/usb

วันพฤหัสบดีที่ 21 กุมภาพันธ์ พ.ศ. 2556

Delete Failed DCs from Active Directory


When you try to remove a domain controller from your Active Directory domain by using Dcpromo.exe and fail, or when you began to promote a member server to be a Domain Controller and failed (the reasons for your failure are not important for the scope of this article), you will be left with remains of the DCs object in the Active Directory. As part of a successful demotion process, the Dcpromo wizard removes the configuration data for the domain controller from Active Directory, but as noted above, a failed Dcpromo attempt might leave these objects in place.
The effects of leaving such remains inside the Active Directory may vary, but one thing is sure: Whenever you'll try to re-install the server with the same computername and try to promote it to become a Domain Controller, you will fail because the Dcpromo process will still find the old object and therefore will refuse to re-create the objects for the new-old server.
In the event that the NTDS Settings object is not removed correctly you can use the Ntdsutil.exe utility to manually remove the NTDS Settings object.
If you give the new domain controller the same name as the failed computer, then you need perform only the first procedure to clean up metadata, which removes the NTDS Settings object of the failed domain controller. If you will give the new domain controller a different name, then you need to perform all three procedures: clean up metadata, remove the failed server object from the site, and remove the computer object from the domain controllers container.
You will need the following tool: Ntdsutil.exe, Active Directory Sites and Services, Active Directory Users and Computers.
Also, make sure that you use an account that is a member of the Enterprise Admins universal group.
Caution: Using the Ntdsutil utility incorrectly may result in partial or complete loss of Active Directory functionality.

To clean up metadata

1.   At the command line, type Ntdsutil and press ENTER.
C:\WINDOWS>ntdsutil
ntdsutil:

2.  At the Ntdsutil: prompt, type metadata cleanup and press Enter.
ntdsutil: metadata cleanup
metadata cleanup:

3.  At the metadata cleanup: prompt, type connections and press Enter.
metadata cleanup: connections
server connections:

4.  At the server connections: prompt, type connect to server <servername>, where <servername> is the domain controller (any functional domain controller in the same domain) from which you plan to clean up the metadata of the failed domain controller. Press Enter.
server connections: connect to server server100
Binding to server100 ...
Connected to server100 using credentials of locally logged on user.
server connections:

Note: Windows Server 2003 Service Pack 1 eliminates the need for the above step.

5.  Type quit and press Enter to return you to the metadata cleanup: prompt.
server connections: q
metadata cleanup:

6.  Type select operation target and press Enter.
metadata cleanup: Select operation target
select operation target:

7.  Type list domains and press Enter. This lists all domains in the forest with a number associated with each.
select operation target: list domains
Found 1 domain(s)
0 - DC=dpetri,DC=net
select operation target:

8.  Type select domain <number>, where <number> is the number corresponding to the domain in which the failed server was located. Press Enter.
select operation target: Select domain 0
No current site
Domain - DC=dpetri,DC=net
No current server
No current Naming Context
select operation target:

9.  Type list sites and press Enter.
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:

10. Type select site <number>, where <number> refers to the number of the site in which the domain controller was a member. Press Enter.
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:

11. Type list servers in site and press Enter. This will list all servers in that site with a corresponding number.
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:

12. Type select server <number> and press Enter, where <number> refers to the domain controller to be removed.
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:

13. Type quit and press Enter. The Metadata cleanup menu is displayed.
select operation target: q
metadata cleanup:

14. Type remove selected server and press Enter.
You will receive a warning message. Read it, and if you agree, press Yes.


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:

At this point, Active Directory confirms that the domain controller was removed successfully. If you receive an error that the object could not be found, Active Directory might have already removed from the domain controller.

15. Type quit, and press Enter until you return to the command prompt.
To remove the failed server object from the sites

16. In Active Directory Sites and Services, expand the appropriate site.

17. Delete the server object associated with the failed domain controller.

To remove the failed server object from the domain controllers container

18. In Active Directory Users and Computers, expand the domain controllers container.

19. Delete the computer object associated with the failed domain controller.


20.Windows Server 2003 AD might display a new type of question window, asking you if you want to delete the server object without performing a DCPROMO operation (which, of course, you cannot perform, otherwise you wouldn't be reading this article, would you...) Select "This DC is permanently offline..." and click on the Delete button.


21. AD will display another confirmation window. If you're sure that you want to delete the failed object, click Yes.

To remove the failed server object from DNS

22.In the DNS snap-in, expand the zone that is related to the domain from where the server has been removed.

23.Remove the CNAME record in the _msdcs.root domain of forest zone in DNS. You should also delete the HOSTNAME and other DNS records.


24.If you have reverse lookup zones, also remove the server from these zones.
Other considerations
Also, consider the following:
·         If the removed domain controller was a global catalog server, evaluate whether application servers that pointed to the offline global catalog server must be pointed to a live global catalog server.
·         If the removed DC was a global catalog server, evaluate whether an additional global catalog must be promoted to the address site, the domain, or the forest global catalog load.
·         If the removed DC was a Flexible Single Master Operation (FSMO) role holder, relocate those roles to a live DC.
·         If the removed DC was a DNS server, update the DNS client configuration on all member workstations, member servers, and other DCs that might have used this DNS server for name resolution. If it is required, modify the DHCP scope to reflect the removal of the DNS server.
·         If the removed DC was a DNS server, update the Forwarder settings and the Delegation settings on any other DNS servers that might have pointed to the removed DC for name resolution.



วันอังคารที่ 19 กุมภาพันธ์ พ.ศ. 2556

Clean Domain Controller after Demote



     
  • Delete Domain Controller in Active Directory Users and Computers
  • Delete Domain Controller in Active Directory Sites and Services

  • Open a command prompt as an administrator: On the Start menu, right-click Command Prompt, and then click Run as administrator. If the User Account Control dialog box appears, provide Enterprise Admins credentials, if required, and then click Continue.
  • At the command prompt, type the following command, and then press ENTER:
    ntdsutil
  • At the ntdsutil: prompt, type the following command, and then press ENTER:
    metadata cleanup
  • At the metadata cleanup: prompt, type the following command, and then press ENTER:
    remove selected server <ServerName>


DCPROMO demote error on Domain Controller



  • Open Command Prompt with Run as administrator
  • Enter dcpromo /forceremoval

  • Click Yes

  • Click Next




  • Enter password for Administrator












  • Click Next

  • Click Finish and Restart