Initial Commit
This commit is contained in:
8
MDT-PSCredentials.ps1
Normal file
8
MDT-PSCredentials.ps1
Normal file
@@ -0,0 +1,8 @@
|
||||
$TSEnv = New-Object -ComObject Microsoft.SMS.TSEnvironment
|
||||
|
||||
$Username = [System.Text.Encoding]::ASCII.GetString([System.Convert]::FromBase64String($Global:TSEnv.Value("SMSConnectNetworkFolderAccount")))
|
||||
$Password = ConvertTo-SecureString \"[System.Text.Encoding]::ASCII.GetString([System.Convert]::FromBase64String($Global:TSEnv.Value("SMSConnectNetworkFolderPassword")))\" -AsPlainText -Force
|
||||
|
||||
$MDTCredential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $username, $password
|
||||
|
||||
New-PSDrive -Name "PSCredentials" -PSProvider "FileSystem" -Root "\\berrypunch.technolog.net\PSCredentials$"
|
Reference in New Issue
Block a user