Sunday, 30 April 2017

How to Restart or Shut Down PC Remotely


 
We have a very easy utility in Windows OS Shutdown.exe to restart or shutdown any PC who is in local area network. Well, there are few configurations you need to do to use this utility. Let go into detail

Remote registry service must be enabled on each computer you want to shutdown or restart the PC remotely, generally this service is disabled by default, we need to enable this service which is mandatory for Shutdown.exe utility.



To enable this service type services.msc to Start menu and then hit enter.

After then search for Remote Registry Service and go to properties.


On the properties tab set the service to Automatic and then start the service by clicking on Start tab.

 
Also make it sure that Windows Management Instrumentation(WMI) is allowed on computer firewall and you have admin rights on the remote computer otherwise you cannot proceed with remotely shutdown or restart.


To open the Shutdown.exe utility type shutdown /i command in command prompt


Click on Add button and add the computer name of that computer you want to shutdown or restart the system. We can add multiple computer as well.
After adding a computer name specify whether you want to shutdown or restart.
We can also warn the user by click Warn users of the action option and also record a log on system for restart under Shutdown Event Tracker option.





We can use following command as well to shutdown the pc via remotely.

shutdown /s /m \\avtech-desktoppc /t 30 /c “Shutting down for maintenance.” /d P:1:1

Thursday, 13 April 2017

How to rename Server Name within Active Directory Environment

To rename the Windows Server is always a pain, During rename a server in Active Directory first thing always comes in mind that we need to unjoin the server from Active Directory and rename the computer and then join back Server to Active Directory.

We can use Netdom.exe utility to rename the Server without unjoining to the domain and does not require to reset or manually re-create the Server account in the domain.

We can rename the Server remotely as well, during rename we need to specify the user account that has admin rights in Active Directory.

IF Netdom.exe utility is not installed on you PC, then you can install Windows Server Support Tools from the Support\Tools folder on the Windows OS CD or image.

To rename the Server use following command at a command prompt.


netdom rename computer OldServerName /newname:NewServerName /userd:Domain Name\UserName /passwordd:Password /force /reboot:Time in seconds







Pinpoints of this command

  • Old Server Name:  Name of the current Server
  • New Server Name: Name of the Server will be renamed to, required fully qualified DNS name within Active Directory
  • Domain Name: Active Directory Name.
  • User Name: Required domain account who has administrative permission which will be used to make the connection with the Server to rename. 
  • Password: Password of the domain account which is mentioned in User Name.
  • Time in Seconds: Server need to be restarted after the rename request is completed, so the number of second before automatic restart need to be mentioned over here.                                                                                                                                                           


Map Network Drives Via Command Prompt in Windows

 

 
In order to map network drive via command prompt, we use net use command.
To map network drive first we need to know the share path which is also called as UNC path, If you have then use the following command to map shared folder in the name of Movies as E Drive.

net use e: \\Home-PC\Movies

  • Home-PC – It’s a computer name where share folder created
  • Movies – It’s a shared folder name


If a share folder is password protected and to access shared folder you need to enter username password, then use the following command


net use e: \\Home-PC\Movies /user TestUser Password 


  • TestUser – It’s a user name who has access to the shared folder
  • Password – Password of user name who has access to the shared folder


The Drives which you mapped is a temporary one when you reboot your PC the mapped network drives will disappear from your Computer. If you want permanently mapped the network drive on your PC, then use following command.

net use e: \\Home-PC\Movies /P:Yes




To delete mapped network drive use following command
net use e: /Delete



And the last command is to delete all the mapped network drive from your PC.

net use * /Delete

Featured post

Top 10 Rare Windows Shortcuts to Supercharge Productivity

  Windows Key + X, U, U: This sequence quickly shuts down your computer. It's a great way to initiate a safe and swift shutdown without...