Skip to content

Archive

Category: Windows Server 2008

Open Command prompt

Moving the files using robocopy command

robocopy /mir /xj C:\Users\gold.king D:\Users\gold.king

Deleting all contents (confirm the contents before deleting)

rmdir /S /Q C:\Users\gold.king

set the link for the user – gold.king

mklink /J C:\Users\gold.king D:\Users\gold.king

Now login and make sure all working, job

When you do physical to virtual migration or some other way that interface will hold the IP internally in the hidden NIC. So when you try to assign the same IP to a new interface you will get warning – DO YOU WANT TO REMOVE THE STATIC IP CONFIGURATION FOR THE ABSENT ADAPTER, you can continue the job by just clicking – YES but interface is still hidden.

If you want to permanently remove the hidden interface do the steps as below

Step 1: Open the command prompt – Run as Administrator

Step 2: Type the command,

set devmgr_show_nonpresent_devices=1

It will set to visible.

Step 3: Open the device manager, you can use this command in the same command prompt

devmgmt.msc

Step 4: In the device manager windows, On the MENU, VIEW –> Show Hidden Devices

Step 5: Find the hidden interface under the network adapters, select the adapter, right click and do the uninstall.

Job done.

This guide will help you to create a Task Schedule to Shutdown or Restart Windows Server 2008 or 2008 R2 Automatically.

Go to the Task Scheduler and Create a new Basic Task,

Do whatever to complete, go to the properties and Actions,

shutdown -r -f -t 10

Where:

  • -r restarts
  • -f  forces processes to terminate
  • -t 10 waits 10 seconds before shutdown