Category Archives: MS Windows

How To Deploy TightVNC via Group Policy

What you will need…..

  1. Download TightVNC MSI package (http://tightvnc.com/download.php)
  2. Download and Install ORCA tool (http://www.technipages.com/download-orca-msi-editor)

Creating the Transform File….

Open the TightVNC MSI package with orca

<h2>deploy vnc via group policy</h2>

Click Transform >> New Transform

deploy vnc via group policy

Find (Ctrl-F) and change these values as below

  1. SERVER_ADD_FIREWALL_EXCEPTION=1
  2. VIEWER_ADD_FIREWALL_EXCEPTION=1
  3. SERVER_ALLOW_SAS=1
  4. SET_USEVNCAUTHENTICATION=1
  5. VALUE_OF_USEVNCAUTHENTICATION=1
  6. SET_PASSWORD=1
  7. SET_USECONTROLAUTHENTICATION=1
  8. VALUE_OF_USECONTROLAUTHENTICATION=1
  9. SET_CONTROLPASSWORD=1
  10. VALUE_OF_REMOVEWALLPAPER=0

To set passwords for connection, and so the user doesn’t turn off VNC accidentally you will need to adjust 2 values.

  1. VALUE_OF_CONTROLPASSWORD
  2. VALUE_OF_PASSWORD

These options are in CustomAction table, under the target field.

Inputting your password, for this tutorial im going to use PasswOrd.

deploy vnc via group policy

Go to Transform >> Generate Transform and save as a .mst file you will need the MSI and the MST file when we deploy VNC via group policy.

deploy vnc via group policy

Creating a share and setting the appropriate permissions.

Next we need to set a shared folder across the network, one that every computer that is joined to the domain can access.

Be sure to put the MSI file and the MST file in this directory.

deploy vnc via group policy

Finally, Creating GPO and Linking to OU’s for Software Deployment…

Now that we have our folder set up so that all computers on the domain can see it, and have access to the files inside its time to set up our GPO.

Since I have OUs set up for laptops and desktops that are on my network, I will link this GPO both OUs.

Open group policy Management, Expand the forest, expand domains, expand the domain you are wishing to push software.

deploy vnc via group policy

Right Click Group Policy Objects and click NEW.

deploy vnc via group policy

Name your GPO, I named mine VNC Install MSI.

deploy vnc via group policy

right click the new GPO you created and click Edit.

deploy vnc via group policy

Under Computer Configuration, expand Policies, Software Settings  and right click  on software installation Click New >> Package.

deploy vnc via group policy

Browse to your folder via UNC path (do not browse via hard disk path this needs to be the network share path).

deploy vnc via group policy

Open the MSI, and you will see another box saying Deploy Software, Click Advanced.

deploy vnc via group policy

Click ok, Go to Modifications Tab and click ADD.

deploy vnc via group policy

Open your transform file (the .MST file) that we created earlier in Orca.

deploy vnc via group policy

You should see the network path in modifications here.

Click OK.

Close Group Policy Management Editor,

Now we need to link the group policy to the OUs that we want to deploy to.

Simply Right click the OU (laptops and desktops in my case) and Link an Existing GPO… and select your GPO.

Close Group Policy Management.

The best way to test this is to do a “gpupdate /force” in command prompt on a computer in the OU you set up to receive the software.

after the gpupdate /force it will ask you to restart the computer. When it comes back up, Tight VNC should be installed on this machine.

Note:  if you are having problems pushing the MSI, then it may be helpful to consult the Event Viewer on the client machine you are testing with

Fix lỗi Tất cả icon chương trình bị đổi thành giống nhau

Bước 1: Gỡ bỏ hết những phần mềm linh tinh mà bạn đã cài trên máy tình của mình.

Bước 2: Chạy 2 file fix-loi-icon.rar rồi làm tiếp như bên dưới:

– Tìm và xóa FileIconCache.db

1. Đối với Windows7 vào C:\Users\User\AppData\Local.

2. Đối với WindowsXP: Vào C:\Documents and Settings\User\Local Settings\ApplicationData.

– Tạo một File mới tại đấy, lưu với tên làIconCache.dbvà đặt thuộc tínhRead-only. Khởi động lại máy và kiểm tra kết quả. Tuy nhiên nên quét Virus toàn bộ máy để kiểm tra hệ thống. (Bạn nào ko tạo được thì tải về ở đây)

Highslide JS

Chú ý:User: Tên tài khoản đăng nhập tại phiên làm việc hiện tại. Ví dụ:

C:\Users\Mr.Thanh\AppData\Local) hay C:\Documents and Settings\Administrator\Local Settings\ApplicationData

Bước 3:Bạn chọn: Start – Run , gõ Regedit rồi Enter

Tìm đến key:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.lnk

Các bạn xóa thư mục UserChoice như hình

Highslide JS

Sau đó khởi động lại máy và tận hưởng thành quả:

Nguồn :http://thanhblog.info/Fix-loi-Tat-ca-icon-chuong-trinh-bi-doi-thanh-giong-nhau_5670/#ixzz3ecQCKnte

Recover Windows 7 Forgotten Password with Windows Installation CD

Step 1: Boot from Installation CD.
As soon as you turn on PC, press DEL or F2 to enter BIOS setting screen. Move CD-ROM option to the first place of boot disk. Save and restart your PC, it will boot from CD instantly.

Step 2: Select Repair Windows and Get into Command Prompt.
When your computer boots from the CD, you should click repair your computer option, then choose Command Prompt from various options.

Step 3: Recover Windows 7 Password with Commands.
3-1 Type: copy c:\windows\system32\sethc.exe c:\f
3-2 Type: copy /y c:\windows\system32\cmd.exe c:\windows\system32\sethc.exe
3-3 Exit installation CD, and reboot your PC.

Step 4: Reset Windows 7 Password.
While Windows login screen appears, press the Shift key 5 times to bring up the command line interface. Now type net user <your name> <your new password>.

For example, net user admin 123456. That means the password of account isunshare is set as 123456.

Password reset work has finished so far. But sethc.exe has been covered. Now use the command c:\sethc.exe file back to c:\windows\system32\sethc.exe to restore the original sethc.exe file.

Chạy ngầm file bat trên Windows

Step 1
Open Notepad

Step 2
Enter the following text in your document:
Set WshShell = CreateObject(“WScript.Shell” )
WshShell.Run chr(34) & “full path to your .bat file” & Chr(34), 0
Set WshShell = Nothing

example:
Set WshShell = CreateObject(“WScript.Shell” )
WshShell.Run chr(34) & “C:\Test\starttest.bat” & Chr(34), 0
Set WshShell = Nothing

Step 3
Save the file as .vbs at what ever location you would like