mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-26 14:07:21 +00:00
fixing script, and reg keys
This commit is contained in:
1 parent
9286e4c805
commit
bfb8e22f47
1 file changed
-1
@@ -413,7 +413,6 @@ New-GPLink -Name "Chrome" -Target $workbenchou
|
||||
|
||||
#Logon Script Reg Keys
|
||||
New-GPO -Name "User Logon Script"
|
||||
Set-GPRegistryValue -Name "User Logon Script" -Key "HKCU\Environment" -ValueName "LogonScript" -Type String -Value "C:\eidf\logon.ps1"
|
||||
Set-GPRegistryValue -Name "User Logon Script" -Key "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce" -ValueName "ExecutionPolicy" -Type String -Value "powershell C:\eidf\logon.ps1"
|
||||
New-GPLink -Name "User Logon Script" -Target $workbenchou
|
||||
|
||||
|
||||
Reference in new issue
Block a user