Skip to content
Snippets Groups Projects
Commit 38951371 authored by Martin Čuchran's avatar Martin Čuchran
Browse files

Update AddOStoDomUPS.ps1

parent 74491182
Branches master
No related tags found
No related merge requests found
......@@ -2,5 +2,5 @@
Start-Transcript -Path "C:\windows\temp\$(get-date -format "yyyy-MM-dd_hh-mm-ss").txt";
$secpasswd = ConvertTo-SecureString "V&Kx64H-cf_TaFan4YcG" -AsPlainText -Force;
$mycreds = New-Object System.Management.Automation.PSCredential ("UPS\addtodomOPENSTACK", $secpasswd);
Add-Computer -DomainOrWorkgroupName "ups.ucn.muni.cz" -OUPath "OU=PB009,OU=OPENSTACK,DC=ups,DC=ucn,DC=muni,DC=cz" -Reboot -Credential $mycreds;
Add-Computer -DomainName "ups.ucn.muni.cz" -OUPath "OU=PB009,OU=OPENSTACK,DC=ups,DC=ucn,DC=muni,DC=cz" -Restart -Credential $mycreds;
Stop-Transcript;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment