發表文章

目前顯示的是 2019的文章
圖片
从零开始——PowerShell应用入门(全例子入门讲解) 学习一门技术,不止要会,还要善用,例子就是带你快速入门的最佳利器。本文就是要用例子,不,大量的例子来带你走进PowerShell应用世界。 本文主要介绍一些PowerShell入门的基础知识,对技术小白来说可以快速入门,对技术老鸟来说可以复习巩固,废话不多说,直接进入正题。 PowerShell,相信大家早已耳熟能详,在上篇文章中给大家介绍了 PowerShell发展历程 ,关于PowerShell的更多介绍,大家也可以参考这里: https://msdn.microsoft.com/powershell/scripting/getting-started/fundamental/using-windows-powershell 。 1.   如何启动PowerShell 现在的Windows系统中一般都集成了PowerShell,启动方法有如下几种: a)       直接开始菜单 -> 所有程序 ->  Windows PowerShell -> Windows PowerShell(不同系统可能路径不一样)。启动后效果如下: b)      开始菜单 -> 运行(run) -> 输入”PowerShell”。启动成功后和上图一样。 c)       命令提示符(Command Prompt) -> PowerShell。启动后效果如下: 启动成功后就可以在里面输入要执行的命令了,这就是PowerShell的交互界面。 2.   如何运行程序、脚本和已有的软件 如果以前经常使用一些别的工具进行开发,可能会有一些可执行文件、Perl脚本、批处理文件等,如果不想放弃这些,可以使用PowerShell直接运行它们。 a)       在系统路径下运行程序、脚本、批处理文件或者其它可执行文件,可以直接输入文件名运行。比如我把一个Test.cmd文件放在了”C:\Windows\System32”下, 就可以如下方式运行它: b)      如果文件名字或路径中有空格,需要用(')引号将命令扩起来,同时在前面加上符号(&),这种叫做调用操作: c)       要运行当前目录下的命
圖片
Disable or Enable built-in Administrator account To enable, activate or turn on this built-in Administrator account, type CMD in the search box. CMD will appear at the top. Right-click on it to ‘Run as administrator’. To enable this built-in Administrator account, type this command & hit Enter: Net user administrator /active:yes To disable this built-in Administrator account, type this command & hit Enter: Net user administrator /active:no If you decide that you need a password for the administrator’s account that you are going to activate or if you are unable to activate it with a blank password run the following commands: Net user administrator P@$$w0rd Net user administrator activate:yes You will get a message:  The command completed successfully . (Where P@$$w0rd has been taken as an example password) Switch user and log on using this password. Alternatively, you may also type  secpol.msc  in the search box and hit Enter. This will bring up the  Loc

Mac 鍵盤快捷鍵

圖片
Mac 鍵盤快捷鍵 透過特定的按鍵組合,你可以執行一般需要滑鼠、觸控式軌跡板或其他輸入裝置才能完成的操作。 要使用鍵盤快捷鍵,你只需按住一個或多個變更鍵,然後按下快捷鍵的最後一個按鍵。舉例來說,如想使用 Command-C (複製),只要按住 Command 鍵,再按 C 鍵,然後放開這兩個按鍵便可。Mac 選單和鍵盤通常以 符號代表特定按鍵 ,包括變更鍵: Command (或 Cmd) ⌘ Shift ⇧ Option (或 Alt) ⌥ Control (或 Ctrl) ⌃ Caps Lock ⇪ Fn 假如你使用 Windows PC 專用鍵盤,請使用 Alt 鍵代替 Option 鍵,並以 Windows 標誌鍵代替 Command 鍵。 部分 Apple 鍵盤上的某些按鍵具有特定符號和功能,例如顯示器亮度、 鍵盤亮度 、「指揮中心」等。如果你的鍵盤沒有這些功能,你或許可以 自行建立鍵盤快捷鍵 來重現部分功能。你可將快捷鍵結合 Fn 鍵,以用作 F1、F2、F3 或其他標準功能鍵。 剪下、複製、貼上和其他常用快捷鍵 Command-X :剪下所選項目,並複製到剪貼板。 Command-C :將所選項目複製到剪貼板。此快捷鍵亦適用於 Finder 檔案。 Command-V :將剪貼板的內容貼上目前的文件或 app 中。此快捷鍵亦適用於 Finder 檔案。 Command-Z :還原上一個指令。之後你可以按 Shift-Command-Z 來取消還原,也就是撤銷還原指令。在某些 app 中,你可以還原和取消還原多個指令。 Command-A :選取所有項目。 Command-F :尋找文件中的項目或開啟「尋找」視窗。 Command-G :再次尋找:尋找之前找到的項目的下一個出現位置。如要尋找上一個,則請按 Shift-Command-G。 Command-H :隱藏最前方 app 的視窗。如要查看最前方的 app 並隱藏所有其他 app,請按 Option-Command-H。 Command-M :將最前方的視窗最小化並縮到 Dock。如要將最前方 app 的所有視窗最小化,請按 Option-Command-M。 Co

MIWifi how to setup hotspot

圖片
Setup as a WiFi Hotspot (Create WiFi) Setting up the Mi Pocket WiFi for a quick hotspot is a fairly easy task. All you need to do is install the Mi WiFi software on your PC and then plug-in the USB device. You need to have internet access on the PC via either a LAN port, data card or another WiFi receiver. Download Mi WiFi software ( miwifi_setup.exe ) from the Xiaomi website –  MiWiFi.com . Install the file by by following the on-screen instructions. Just launch the setup and click the big blue button to install the software & drivers. Click to Install Plug in the Mi Pocket WiFi USB device. It will be detected by the system and a default WiFi network will be created. You can then make changes as per your wish. Main Window You can now connect any WiFi enabled device to the network created by the Mi Pocket WiFi. You can also use other options such as block list and speed limiter. Change Language of Software to English There is no option to change the language, but a qu