mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-26 11:07:21 +00:00
changes to reg keys
This commit is contained in:
1 parent
8f2a04e82e
commit
c101a58c44
1 file changed
+5
-1
@@ -412,7 +412,11 @@ New-GPLink -Name "Chrome" -Target $workbenchou
|
||||
#New-GPLink -Name "firewall" -Target $workbenchou
|
||||
|
||||
#Logon Script Reg Keys
|
||||
New-ItemProperty -Path "Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce" -Name "CreateBashProfile" -Value "powershell.exe -ExecutionPolicy Bypass -File C:\eidf\logon.ps1" -PropertyType String
|
||||
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 "C:\eidf\logon.ps1"
|
||||
New-GPLink -Name "User Logon Script" -Target $workbenchou
|
||||
|
||||
|
||||
#add entry for WSUS
|
||||
|
||||
|
||||
Reference in new issue
Block a user