Can we use variables?
we're trying to create a script for use on new installations or reinstallations. One of the lines will be to rename a device (Rename-Computer -ComputerName "OldName" -NewName "NewName" -DomainCredential Domain01\Admin01 -Force). But is there a way to work with variables so we can define this seperately for the devices?
Also, we already tried the command directly in PDQDeploy, but we don't get a window asking for the credentials. When we use it directly via powershell is does ask for it. Are we doing something wrong or maybe forgetting something?