Skip to content

Instantly share code, notes, and snippets.

$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/
@kdsuvarna
kdsuvarna / Xml1.xml
Created June 9, 2017 06:57
XML issue
<?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>