Windows 7 GPO Script - Enable file and printer sharing


hello,

i'm trying activate advanced file , network sharing bia script (as there no gpo option this)

the script simple : 

netsh advfirewall firewall set rule group="file , printer sharing" new enable=yes

netsh advfirewall firewall set rule group="network discovery" new enable=yes

netsh advfirewall set currentprofile state on

in .bat , .ps1 works fine when logged in computer admin rights. want run script on computer level via gpo. gpo applies properly, settings aren't changed. ideas on getting work?

environment following : 

dc winserv 2008 r2, test machines : win 7 pro x64

test ou inheritance disabled, gpo testing enforced no other parameters apart computer startup script. user , computer account in test ou.

gpresult shows gpo applied, no data available under computer or user configuration. script stored in correct sysvol location.



Windows Server  >  Group Policy



Comments

Popular posts from this blog

WIMMount (HSM) causing cluster storage to go redirected (2012r2 DC)

Failed to delete the test record dcdiag-test-record in zone test.com

Azure MFA with Azure AD and RDS