search
Categories
Sponsors
VirtualMetric Hyper-V Monitoring, Hyper-V Reporting
Archive
Blogroll

Badges
MCSE
Community

Cozumpark Bilisim Portali
Posted in Virtual Machine Manager, Windows Powershell | No Comment | 5,910 views | 12/10/2012 11:55

1. How to create RunAs Account?

1
2
3
$SecurePassword = ConvertTo-SecureString "P@ssw0rd!" -AsPlainText -Force
$Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList "yusufozturk\Administrator", $SecurePassword
New-SCRunAsAccount -Name "Domain Admin" -Credential $Credential

2. How to get RunAs Account?

1
Get-SCRunAsAccount -Name "Domain Admin"

3. How to remove RunAs Account?

1
Get-SCRunAsAccount -Name "Domain Admin" | Remove-SCRunAsAccount