I'm trying to apply the following computer startup script
I've set up the following powershell script to disable NetBIOS
$adapters=(gwmi win32_networkadapterconfiguration) Foreach ($adapter in $adapters){ Write-Host $adapter $adapter.settcpipnetbios(2) }
The script works fine locally. I added a schedule task under the SYSTEM account and it ran with no problems. It only fails in the computer startup via GPO
This is the error I'm receiving via event viewer
EventData SupportInfo1 900986720 SupportInfo2 90 ErrorCode 267 ErrorDescription The directory name is invalid. ScriptType 0 GPODisplayName Computer Starup Script - Disable NetBIOS over TCP/IP GPOFileSystemPath \\HERP\SysVol\DERP\Policies\{GUID}\Machine GPOScriptCommandString Disable_NetBIOS_over_TCPIP.ps1
Any help would be appreciated.
extra info. I'm testing this GPO on a windows 8.1 machine. This script works fine on a server 2008, server 2012, and server 2012 R2