Skip to content

Instantly share code, notes, and snippets.

@mikebranstein
Last active August 24, 2016 17:50
Show Gist options
  • Save mikebranstein/936ebebe7189ada41d86f7f5aecfe86c to your computer and use it in GitHub Desktop.
Save mikebranstein/936ebebe7189ada41d86f7f5aecfe86c to your computer and use it in GitHub Desktop.
Remotely rename a device with PowerShell
Param (
[string][Parameter(Mandatory = $true)] $deviceName
)
setcomputername $deviceName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment