Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $user = "jihadinho"
- $pass = "qwerty1234" | ConvertTo-SecureString -AsPlainText -Force
- $cred = New-Object System.Management.Automation.PSCredential($user,$pass)
- Rename-Computer -NewName "WS12" -LocalCredential $cred -Force -Restart
- Start-Process powershell -Verb runas -ArgumentList "-file <file location>"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement