Loading...

2015年6月23日 星期二

Create a bootable Windows PE 3.0 USB drive with rescue tools – Part 1

Create a bootable Windows PE 3.0 USB drive with rescue tools – Part 1

Learn how to create a bootable Windows PE 3.0 USB drive. First you you create the bootable USB stick, then you copy the WinPE 3.0 files to the drive.
Michael PietroforteMVPBy Michael Pietroforte - Mon, April 12, 2010 - 61 comments google+ icon
Michael Pietroforte is the founder and editor of 4sysops. He is a Microsoft Most Valuable Professional (MVP) with more than 30 years of experience inSYSTEM administration.
  • Self Reset Password &ACCOUNT Unlock
  • Multi-platform Password Synchronizer
  • Password Expiry Notification
  • Directory Self-Update & Employee Search
  • Mobile PasswordMANAGEMENT
  • Windows/ Mac OS XLOGIN agents
Advertisement
For Windows PE 1.0, the minimalist Windows based on Windows 2003/XP, you needed an SA (Software Assurance), OEM, or ISV license. When Windows Vista was released everyone had access to Windows PE 2.0. This also applies to the Windows 7-based edition, Windows PE 3.0. Windows PE (Preinstallation Environment) was originally designed to deploy Windows. However, it is also useful inCREATING YOUR OWN customized rescue boot media. In this article, I will describe how you can create a bootable Windows PE 3.0 (WinPE) USB stick, and, in my next post, I will show how to add your own rescue tools and how to keep your rescue stick up-to-date without much hassle. You will see that the procedure described here is much more convenient than most solutions you’ll find on the web.

Create a bootable USB drive ^

Before you getSTARTED, you have to make your flash drive bootable. I have already described thisPROCEDURE in my post about the Windows 7 USB/DVD Download Tool. For your convenience here is the command sequence, which you should run on a command prompt with admin rights:
  1. diskpart
  2. list disk
  3. select disk #
  4. clean
  5. create partition primary
  6. select partition 1
  7. ACTIVE
  8. format quick fs=fat32
  9. ASSIGN
  10. exit
Replace ‘#’ with the drive number of your USB drive. Be careful to choose the right disk in 3 because this procedure will erase the whole drive!
Active Directory Management & Reporting
ManageEngine ADManager Plus
  • One-stop userPROVISIONING in AD, Exchange
  • Auto-provision Office 365, Google AppsACCOUNTS
  • CSV-based bulkMANAGEMENT of AD objects
  • 150+ reports;EXCLUSIVE Office 365 reports
  • Built-in scheduler to automate AD tasks
  • iPhone, Android apps toMANAGE AD users

Copy the WinPE 3.0 files to the USB drive ^

WinPE 3.0 is part of the Windows Automated Installation Kit (WAIK) for Windows 7, which you canDOWNLOAD here. Once you have installed the WAIK, you’ll find a folder of the Windows AIK on the WindowsSTART Menu. Launch the Deployment Tools Command Prompt and enter this command:
  1. copype.cmd x86 c:\winpe_x86
  2. Then, copy winpe.wim to the correct folder:
    copy c:\winpe_x86\winpe.wim c:\winpe_x86\ISO\sources\boot.wim
  3. Now, copy WinPE to your USB drive:
    xcopy C:\winpe_x86\iso\*.* /e G:\
In this example, ‘G:’ is the drive letter of your flash drive.

Now you should be able to boot from your WinPE 3.0 USB drive. In my next post, I will outline theINTERESTING part—that is, how to prepare your USB drive so that you can add new tools withoutSTARTING again from scratch.

2015年2月25日 星期三

How to make USB Memory stick installation with MacOSX Yosemite

How to make USB Memory stick installation with MacOSX Yosemite

  1. In MacOSX Apps store download Yosemite.
  2. Select the USB Memory stick over 8G memory.
  3. Format this USB Memory with : format ---Mac OS Ext.—
  4. Download the New Mac OSX of Apple Store (e.g. Yosemite, Mavericks). 
  5. The memory driver name must be “Untitled"
  6. After download Yosemite.app.
  7. Open Terminal 
  8. Key In the terminal screen “ sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia —volume /Volumes/Untitled —applicationpath /Applications/ Install\ OS\ X\ Mavericks.app —no interaction”

无法在Windows 7下删除/修改注册表项:权限不足

无法在Windows 7下删除/修改注册表项:权限不足

 (2014-02-10 11:39:18)
在注册表的某些关键项(譬如:System、Root),连Administrator都没有权限进行修改,因为只有“system”有权限。
【警告】切勿企图进行注册表上层权限覆盖低层权限的方式来使Administrator或其他用户夺权,这样会导致很多Windows服务都无法打开!!!甚至Windows就此挂掉!
(像我这个傻B刚才就进行了上面的操作。。。。。。 如果像我这样操作了,就要看我上一条博客,把注册表权限恢复默认。)

【正确操作】
使用 psexec.exe,以 system 身份打开 regedit.exe,这样便可以直接修改,
命令:
psexec.exe -i -d -s regedit.exe

psexec属于Windows内部工具之一,这些强力的瑞士军刀可以从这里下载:
http://technet.microsoft.com/en-us/sysinternals/bb795533.aspx

---------------------------- 分割线 ---------------------------------
下面附带Windows内部工具的英文原版说明 和 Google自动翻译的中文(以便搜索引擎进行索引)
Sysinternals Process Utilities
Autoruns
See what programs are configured to startup automatically when your system boots and you login. Autoruns also shows you the full list of Registry and file locations where applications can configure auto-start settings.
Handle
This handy command-line utility will show you what files are open by which processes, and much more.
ListDLLs
List all the DLLs that are currently loaded, including where they are loaded and their version numbers. Version 2.0 prints the full path names of loaded modules.
PortMon
Monitor serial and parallel port activity with this advanced monitoring tool. It knows about all standard serial and parallel IOCTLs and even shows you a portion of the data being sent and received. Version 3.x has powerful new UI enhancements and advanced filtering capabilities.
ProcDump
This new command-line utility is aimed at capturing process dumps of otherwise difficult to isolate and reproduce CPU spikes. It also serves as a general process dump creation utility and can also monitor and generate process dumps when a process has a hung window or unhandled exception.
Process Explorer
Find out what files, registry keys and other objects processes have open, which DLLs they have loaded, and more. This uniquely powerful utility will even show you who owns each process.
Process Monitor
Monitor file system, Registry, process, thread and DLL activity in real-time.
PsExec
Execute processes remotely.
PsGetSid
Displays the SID of a computer or a user.
PsKill
Terminate local or remote processes.
PsList
Show information about processes and threads.
PsService
View and control services.
PsSuspend
Suspend and resume processes.
PsTools
The PsTools suite includes command-line utilities for listing the processes running on local or remote computers, running processes remotely, rebooting computers, dumping event logs, and more.
ShellRunas
Launch programs as a different user via a convenient shell context-menu entry.
VMMap
See a breakdown of a process's committed virtual memory types as well as the amount of physical memory (working set) assigned by the operating system to those types. Identify the sources of process memory usage and the memory cost of application features.

------------------- Google自动翻译 --------------------------
Autoruns
看到哪些程序被配置为当你的系统启动和您登录自动启动。自动运行也表明你的注册表和文件地点,应用程序可以配置自动启动设置的完整列表。
Handle
这个方便的命令行实用工具将告诉你哪些文件是由开放哪些进程,等等。
ListDLLs
列出所有当前加载的DLL,包括在那里它们被装入及其版本号。 2.0版打印已加载模块的完整路径名。
PortMon
监测与这种先进的监测工具,串行和并行端口活动。它知道所有的标准串行和并行的IOCTL ,甚至告诉你发送和接收的数据的一部分。 3.x版具有强大的新UI增强功能和先进的过滤功能。
ProcDump
这个新的命令行实用工具旨在捕获其他方式难以处理的转储进行隔离和重现CPU峰值。它也可作为一般的进程转储创建实用程序,也可以监控并生成转储过程中,当一个进程有一个挂起的窗口或者未处理的异常。
Process Explorer
找出哪些文件,注册表项和其他对象的进程已经打开,他们已加载哪些DLL等。这种独特而强大的工具,甚至会告诉你谁拥有每一个过程。
Process Monitor
在实时监控文件系统,注册表,进程,线程和DLL活动。
PSEXEC
远程执行程序。
PSGETSID
显示计算机或用户的SID。
PsKill
终止本地或远程进程。
PsList
显示有关进程和线程的信息。
PsService
查看和控制服务。
PsSuspend
挂起和恢复过程。
PSTOOLS
该PSTOOLS套件包括命令行实用程序用于列出在本地或远程计算机上运行的进程,远程运行进程,重新启动电脑,倾倒事件日志,等等。
ShellRunas
通过方便的外壳上下文菜单项启动程序以不同的用户。
VMMap
看的过程的认可的虚拟记忆体分类的数目,以及物理内存量(工作集)由操作系统分配给那些类型。识别进程的内存使用量和应用程序功能的内存成本的来源。

2015年1月4日 星期日

Batch file short cut .

因為工作上需要,會寫一些batch file來加速軟體安裝流程,其中最好用的莫過於batch file。這篇就來稍微分享一下常用的指令與用法吧。


@
ECHO
FOR
IF
PAUSE
%VARIABLE%
%DIGIT
REM
CLS




@    隱藏其後的指令,不會顯示於Command Prompt中.
可用於簡化畫面;也或者不想讓人知道下了何種指令?(Hacking?)
Syntax:      
        @[Command]
Example:  
        @echo Off


ECHO    顯示其後的訊息
Syntax:      
        echo [On|Off|Message|.]
Example:  
        echo     顯示echo目前狀態(On or Off)
        echo Off        隱藏Windows Command Prompt中的訊息
        echo On            恢復顯示Windows Command Prompt中的訊息
        echo Hello world!    在Command Prompt顯示Hello world!
        echo.            顯示空行
        echo N|del *.*    預先提供答案給指令. (del *.*? => No)

          
FOR        對清單中每個成員重複執行相同指令.
Syntax:      
        FOR %%argument IN (list) DO command
            argument -     從A-Za-z任何字元皆可
            list    -    由逗號,或空格所隔開的字串皆可
            command-    指令
Example:      
        FOR %%i IN (A,B,C) DO echo %%i  
                    印出A,B,C
        FOR %%f IN (*.TXT *.BAT *.DOC) DO type %%f
                    印出所有txt, bat, doc檔案內容
        FOR %%f IN (*.PAS) DO call compile %%f
                    Complile所有PAS檔案
                      
IF    判斷式.
Syntax:      
        IF [not] condition (
            command [command-parameter]
        ) ELSE (
            command [command-parameter]
        )
Example:  
        IF string1==string2 echo string1 equal to string2
            如果string1等於string2,在螢幕上印出string1 equal to string2
        IF exist a.txt echo del a.txt  
            如果a.txt存在則刪除他      

PAUSE    暫停執行批次程式,並且顯示 Press any key to continue...
Syntax:      
        PAUSE
Example:      
        pause

SET        顯示,設定環境變數
Syntax:      
        SET [ variable=[string]]
Example:      
        set            顯示目前環境變數
        set P        列出所有以'P'開頭的環境變數
        set USER=Tom    將USER加入環境變數中
        set PATH=C:\test;%PATH%
                將C:\test加入目前的環境變數中(只對當前的Command Prompt有效)
        set /P str=Message
                在螢幕上顯示Message,並將使用者輸入設定為變數str

%Variable%    代表該環境變數的值                          
Syntax:      
        %Variable%
Example:      
        set USER=Tom
        echo %USER%    螢幕將顯示Tom

%DIGIT    batch file所接受的參數
Syntax:      
        %digit            digit可接受數字為1~9
Example:      
        C:\test.bat string  
                %1將等於"string"
                  
REM        註解符號
也可以用 :: 代替
Syntax:      
        REM [Message]
        :: [Message]
Example:      
        REM this is comment
        :: this is comment

CLS        清除畫面
Syntax:      
        CLS
Example:  
        cls              
          
Reference:
http://academic.evergreen.edu/projects/biophysics/technotes/program/batch.htm

2014年12月9日 星期二

[iOS教學]13個你未必知道的iPhone耳機線實用功能

null
 
在 iPhone 的包裝盒內必定會附有一條 Apple 的標誌白色耳機線。這個大家都知道,但很多人不知道的是這條線的用處。當然最大的用處就是令聲音從耳機輸出,聽音樂、打電話、遊戲等都是普遍的用途。但大家有沒有留意耳機線有個長方形的東西? 這個是接收聲音的麥克風,還是按鈕。這個按鈕其實有很多實用的功能,這裡就和大家介紹其中一些。
 
有來電:
1. 按一次可以接聽
2. 按兩次將來電轉駁到留言信箱
 
進行電話通話:
3. 按一次掛斷電話
 
進行電話通話時,有第二個來電:
4. 按一次暫停及保留當前的通話,然後接聽第二個來電
5. 長按不接聽第二個來電
 
播放音樂:
6. 按一次暫停播放,再按一次繼續播放
7. 按兩次跳至下一首
8. 按兩次,第二次長按則會以倍速播放
9. 按三次重頭播放或回上一首
10. 按三次,第三次長按則會以倍速回退
 
拍照:
11. 「音量+」為快門
 
沒有特別情況:
12. 按一次啟動 iPod 並開始播放
13. 長按啟動語音控制 (voice control) 或 Siri (只限 iPhone 4S)
 
 
若有任何有iPhone / iPad 或 Android 上的疑問,請到我們的 Facebook <iPhone iPad Fan Page>和<Android Fan Page>留言查詢,讓我們能以最快的速度為你解答疑難及給你送上最新最快的手機資訊。

2014年10月24日 星期五

Font installation in MacOX

Fonts can be installed in several folders in OS X, but we recommend that you do the following:
  • Close any open applications. Newly installed fonts may not appear in your menu if you ignore this step.
  • Drag and drop the unzipped fonts into the Fonts folder in your user’s Library folder found here:
    /Users/Your_Username_Here/Library/Fonts.
  • Note: As of OS Lion, the library folder is hidden from users unless you hold down the Alt/Option key while clicking on the “Go” menu in Finder.
Optional for Mac OS X 10.3 or higher:
  • Double click the font file and fontbook will open a preview of the font.
  • Click “install font” at the bottom of the preview.

2014年9月29日 星期一

OS X Mavericks: Reinstall OS X

Use the built-in recovery disk to reinstall OS X while keeping your files and user settings intact.
Important: You must be connected to the Internet to reinstall OS X.
  1. Choose Apple menu > Restart. Once your Mac restarts (and the gray screen appears), hold down the Command (⌘) and R keys.
  2. If you’re not connected to the Internet, choose a network from the Wi-Fi menu (in the top-right corner of the screen).
  3. Select Reinstall OS X, then click Continue.
  4. Follow the onscreen instructions. In the pane where you select a disk, select your current OS X disk (in most cases, it’s the only one available).
If you had choice to full recovery the OSX with recovery Tools. It is like that recovery from Apple Server to restore the OSX and Tools.

  1. Choose Apple menu > Restart. Once your Mac restarts (and the gray screen appears), hold down the Command (⌘) , Option and R keys.
  2. If you’re not connected to the Internet, choose a network from the Wi-Fi menu (in the top-right corner of the screen).
  3. Select Reinstall OS X, then click Continue.
  4. Follow the onscreen instructions. In the pane where you select a disk, select your current OS X disk (in most cases, it’s the only one available).