Skip to main content

Posts

PowerShell Quick Tips: Rename a computer

Rename local computer to W8M1 and restart PS D:\> Rename-Computer -NewName W8M1 -Restart The above command works with Powershell 3.0. For Powershell 2.0, below can be used on an elevated privileges. PS D:\> $computer = Get-WmiObject Win32_ComputerSystem -ComputerName <old_name> PS D:\> $computer.Rename("<new_name>") PS D:\> $os = Get-WmiObject Win32_OperatingSystem PS D:\> $os.psbase.Scope.Options.EnablePrivileges = $true PS D:\> $os.Reboot() Using WMIC to rename a computer D:\> WMIC ComputerSystem where Name="%computername%" call Rename Name=NewName References: http://social.technet.microsoft.com/Forums/en-US/ITCG/thread/c9dcf26a-5476-4199-8311-b101c969a47a/ http://blogs.technet.com/b/askds/archive/2009/02/19/renaming-a-computer-using-wmic-and-how-to-get-around-that-aggravating-invalid-global-switch-error.aspx

Windows 10 E B 10074 text corruption in File Explorer

Just installed Windows 10 Enterprise build 10074. First impression? Feels slower than build 10041. Also noticed that File Explorer shows corrupted string in Quick Access folder. [6/3/2015] Same issue is observed on Windows Server Technical Preview 2 (Windows 2016).

Project Spartan (Edge) does not open on the default Administrator account on Windows 2016

Looks like Microsoft is now getting really serious with security. Their newest browser, code named "Project Spartan" or Edge, does not run if the user is the default administrator account on Windows 2016 (Windows Server Technical Preview 2).

How to install GUI on Windows Server (2016) Technical Preview 2

Windows Server Technical Preview 2 (Windows Server 2016?) does not have the option to install the full GUI. Figure 1.  It does have the option to install minimum shell (MinShell). This will provide access to Server Manager and the cmd.exe as shown below. Figure 2. The GUI can be installed, that I know of, either using Server Manager or PowerShell. To install using Server Manager, do  Manage | Add Roles and Features . Hit on Next button using the default selection until you reach Features dialog. Under the feature User Interface and Infrastructure , select Server Graphical Shell . Figure 3. Feature dialog Progress the dialog/wizard window until completion. Power users can also install the GUI using PowerShell, like: PS C:\>Install-WindowsFeature Server-Gui-Shell -Restart Reference(s): https://4sysops.com/archives/how-to-install-the-gui-on-windows-server-2016/

pip fails to run on Windows 10 E build 10074

Installed Windows 10 E 64-bit build 10074, followed by Python 2.7.9 32-bit. Running pip fails the with message Fatal error in launcher: Job information querying failed Issue is open in Github, see below https://github.com/pypa/pip/issues/2748 This issue is also reported in Python.org, see https://bugs.python.org/issue24127 Workaround: C:\>python -m pip install comtypes

Updating Eclipse Kepler shows 'Backup of file eclipse.exe failed'

Tried to update Eclipse Kepler but failed with message below. An error occurred while uninstalling session context was:(profile=epp.package.testing, phase=org.eclipse.equinox.internal.p2.engine.phases.Uninstall, operand=[R]org.eclipse.rcp.configuration_root.win32.win32.x86 1.0.0.v20130521-1847 --> null, action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CleanupzipAction). Backup of file D:\eclipse\eclipse.exe failed. Can not remove : D:\eclipse\eclipse.exe The workaround? Rename existing eclipse.exe to say eclipse1.exe Run eclipse1.exe Do Eclipse update