Command Line

Rename a Computer Remotely

How to rename a domain joined computer remotely via command line: netdom renamecomputer "OldComputerName" /newname:"NewComputerName" /userd:DOMAIN\AdminUser /passwordd:* /force /reboot:480 Alternatively, Powershell 3.0 RENAME-COMPUTER -computername "OLDCOMPUTERNAME" -newname "NEWCOMPUTERNAME" RESTART-COMPUTER -computername "OLDCOMPUTERNAME" -force Resources: https://technet.microsoft.com/en-us/library/cc772217.aspx RSAT Tools for Windows 10 https://www.microsoft.com/en-us/download/details.aspx?id=45520&751be11f-ede8-5a0c-058c-2ee190a24fa6=True&e6b34bbe-475b-1abd-2c51-b5034bcdd6d2=True RSAT Tools…

SQLCMD Basics

Example Usage: sqlcmd -S ComputerName\InstanceName -i MyScript.sql -o MyOutput.csv -t 1000 -W -s "," -X1 sqlcmd -S localhost\sqlsrv2012 -d AdventureWorks2012 -i C:\DataFiles\EmployeeQuery.sql -o C:\DataFiles\Employees.csv -t 1000 -W -s "," -X1 sqlcmd -S localhost\sqlsrv2012 -d AdventureWorks2012 -Q "SELECT FirstName, LastName FROM…

FastCopy Command Line Examples

Copy folder and create the folder at the destination (Destination Folder did not exist): "C:\Program Files\FastCopy\FastCopy.exe" /cmd=diff /exclude="Thumbs.db;.DS_Store;Desktop.ini;DfsrPrivate\" /filelog="C:\Program Files\FastCopy\FastCopy.log" /speed=8 /error_stop=FALSE /force_close /acl=FALSE /verify=TRUE "C:\Folder1" /to="C:\Folder2" Synchronize the folder’s contents (both folders already exist): "C:\Program Files\FastCopy\FastCopy.exe" /cmd=sync /exclude="Thumbs.db;.DS_Store;Desktop.ini;DfsrPrivate\" /filelog="C:\Program Files\FastCopy\FastCopy.log"…

%d bloggers like this: