{ $passphrase = "" } else { $passphrase = } } $usedDisks = ((Get-WmiObject -Class Win32_LogicalDisk).DeviceID|%{$_ -replace ':',''}) foreach ($l in ([char[]]([char]'a'..[char]'z'))) { if ($usedDisks -notcontains $l) { $exposedDrive = $l break } } $logfile = "backup.log" $metadataLocation = 'metadata.cab' # expand environment variables $backupPath = ([System.Environment]::ExpandEnvironmentVariables($backupPath)) $systemDrive = [System.Environment]::ExpandEnvironmentVariables('%systemdrive%\') $feedLocation = "${systemDrive}HostingOfflineFeed" $feedLocation = ([System.Environment]::ExpandEnvironmentVariables($feedLocation)) $feedLocationNQ = Split-Path $feedLocation -NoQualifier $feedLocationNQ = $feedLocationNQ.TrimStart('\') $letterLocation = Split-Path $feedLocation -Qualifier $letterLocation = $letterLocation -replace ':','' # create powershell scripts EncryptKeys "${systemDrive}keys.txt" $passphrase "salt12345" "init12345" $systemDrive
{ $passphrase = "" } else { $passphrase = } } $usedDisks = ((Get-WmiObject -Class Win32_LogicalDisk).DeviceID|%{$_ -replace ':',''}) foreach ($l in ([char[]]([char]'a'..[char]'z'))) { if ($usedDisks -notcontains $l) { $exposedDrive = $l break } } $logfile = "backup.log" $metadataLocation = 'metadata.cab' # expand environment variables $backupPath = ([System.Environment]::ExpandEnvironmentVariables($backupPath)) $systemDrive = [System.Environment]::ExpandEnvironmentVariables('%systemdrive%\') $feedLocation = "${systemDrive}HostingOfflineFeed" $feedLocation = ([System.Environment]::ExpandEnvironmentVariables($feedLocation)) $feedLocationNQ = Split-Path $feedLocation -NoQualifier $feedLocationNQ = $feedLocationNQ.TrimStart('\') $letterLocation = Split-Path $feedLocation -Qualifier $letterLocation = $letterLocation -replace ':','' # create powershell scripts EncryptKeys "${systemDrive}keys.txt" $passphrase "salt12345" "init12345" $systemDrive
WAPv1_WebsitesV2_Deployment.docx