This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$credentials = @{} | |
$credentials.Add("domain", (New-Object System.Management.Automation.PSCredential "username", (ConvertTo-SecureString -String "password" -AsPlainText -Force))) | |
$outputValues= Invoke-Command -ComputerName localhost -Credential $credentials.domain -ScriptBlock { | |
#Declare source and destination path and server | |
$sourceServerPath= \`d.T.~Ed/{5902AF75-8C15-433D-87C5-CCDC817304C7}.Source Server Path\`d.T.~Ed/ | |
$destinationServerPath= \`d.T.~Ed/{5902AF75-8C15-433D-87C5-CCDC817304C7}.Destination Server Path\`d.T.~Ed/ | |
$destinationServer= \`d.T.~Ed/{5902AF75-8C15-433D-87C5-CCDC817304C7}.Destination Server\`d.T.~Ed/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<unattend xmlns="urn:schemas-microsoft-com:unattend"> | |
</settings> | |
<settings pass="specialize"> | |
<component name= language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"> | |
<Identification> | |
<Credentials> | |
<Username> | |
</Username> | |
<Domain> |