Posts Tagged Commandline

Renaming a Windows Computer

 

When you want to rename a computer, you can use the netdom comandline tool.

 

* Rename a computer:

netdom renamecomputer %COMPUTERNAME% /NewName:[new-computer-name] /force

 
Which uses the following syntax:

  • new-computer-name: the new name you want the computer to have..

 

The following sources have been used to create this post:
Microsoft Technet – Netdom syntax

Tags:

Clear Cached Credentials

It sometimes happens that after you’ve changed your Windows logon credentials, you get an error trying to connect to a network share. This error could be about you’re cached credentials not being correct and prevent you from getting access to the network share.

In order to delete the cached credentials for that particulair share, you could use the following commandline:


net use \\<servername>\<share> /delete

This will delete you cached credentials and allows you to create a new connection to the network share and be asked for your (new) credentials.

Tags: ,