Showing posts with label windows workstation. Show all posts
Showing posts with label windows workstation. Show all posts

Tuesday, August 30, 2016

How to download a file using Powershell

Here is how to download a file using Powershell without needing any additional tools. Great for Hyper-V Core systems or remote access.

powershell.exe "Import-Module BitsTransfer; Start-BitsTransfer -Source http://domain.tld/somefilename.exe -Destination c:\PathToAFolder"

Tuesday, January 15, 2013

Rename a Windows domain connected workstation remotely

From the server/domain controller, run NetDom which will rename the workstation to what you want.
You need to reboot the workstation after running this command.
netdom renamecomputer old_name  /newname:new_name  /userd:domain_admin_login /passwordd:domain_admin_pwd
Sources: http://support.microsoft.com/kb/298593/en-US and http://technet.microsoft.com/en-us/library/cc788029.aspx

Another way to rename a computer is to use Powershell from a server or domain controller.
Rename-computer -computername “targetcomputer” -newname “newcomputername” -domaincredential domain\domain_admin -force -restart
 Source: http://technet.microsoft.com/en-us/library/hh849792.aspx