Tuesday, December 28, 2010
My RedBubble Profile
Labels:
Photography
Thursday, November 25, 2010
VB Script to run gpupdate.exe /force silently without a reboot
If you use Gpupdate.exe /force in your logon scripts ypu would've of found by now that sometimes if not most often when running gpupdate.exe you are asked to either logoff or reboot to apply configuration settings. You've also probably found that there is no exact command like 'Gpupdate.exe /Force /Silent.'
The below VBscript below will run Gpupdate.exe /force without any user interaction it will also not show any log off or reboot requests.
To implement this in a logon script place the code below into its own SilentGPupdate.vbs file. Then call it from your logon script, I've set the WshShell.Run not to wait to finish each command because gpupdate.exe can run in its own space and time (doing this will keep your login times quick).
===============
'VB Script for Refreshing GroupPolicy Settings silently
'Script Version: 0.2
'Created: 25/11/2010
'Created By: Joejoeinc.com
'Define Variables and Objects.
Set WshShell = CreateObject("Wscript.Shell")
'Note: Gpupdate command has to be run twice as the ECHO command can't answer more than one question.
'Refresh the USER policies and also answer no to logoff if asked.
Result = WshShell.Run("cmd /c echo n | gpupdate /target:user /force",0,true)
'Refresh the Computer policies and answer no to reboot.
Result = WshShell.Run("cmd /c echo n | gpupdate /target:computer /force",0,true)
'Hand back the errorlevel
Wscript.Quit(Result)
===============
Props to Craig for pointing out that if you name the script gpupdate.vbs you will cause a loop.
The below VBscript below will run Gpupdate.exe /force without any user interaction it will also not show any log off or reboot requests.
To implement this in a logon script place the code below into its own SilentGPupdate.vbs file. Then call it from your logon script, I've set the WshShell.Run not to wait to finish each command because gpupdate.exe can run in its own space and time (doing this will keep your login times quick).
===============
'VB Script for Refreshing GroupPolicy Settings silently
'Script Version: 0.2
'Created: 25/11/2010
'Created By: Joejoeinc.com
'Define Variables and Objects.
Set WshShell = CreateObject("Wscript.Shell")
'Note: Gpupdate command has to be run twice as the ECHO command can't answer more than one question.
'Refresh the USER policies and also answer no to logoff if asked.
Result = WshShell.Run("cmd /c echo n | gpupdate /target:user /force",0,true)
'Refresh the Computer policies and answer no to reboot.
Result = WshShell.Run("cmd /c echo n | gpupdate /target:computer /force",0,true)
'Hand back the errorlevel
Wscript.Quit(Result)
===============
Props to Craig for pointing out that if you name the script gpupdate.vbs you will cause a loop.
Labels:
GPO
,
gpupdate force without reboot
,
VBScript
Wednesday, November 24, 2010
General BITS troubleshooting
Iboyd has a great writeup on how and where to check various BITS settings in SCCM.
http://iboyd.net/index.php/2009/01/09/troubleshooting-sccm-and-bits-downloads/
One line in his post rings very true
http://iboyd.net/index.php/2009/01/09/troubleshooting-sccm-and-bits-downloads/
One line in his post rings very true
"With BITS, you have to remember that, in simple terms, you’re downloading files from an over-glorified website. That means that your file transfers are dependent on the IIS instance running on the distribution point."
Friday, October 15, 2010
SCCM R3 Released
Steve Rachui has a nice write up of the new features in SCCM R3
Labels:
SCCM R3 updated
Tuesday, October 05, 2010
What does this advertisement status message mean?
Bredban of the "Random helpful stuff that I have found along the way" blog has kindly posted information of the what the various status messages mean in your SCCM advertisements.
http://blogs.technet.com/b/breben/archive/2010/09/30/what-does-this-advertisement-status-message-mean.asp"
http://blogs.technet.com/b/breben/archive/2010/09/30/what-does-this-advertisement-status-message-mean.asp"
Friday, September 17, 2010
DNS Alias doesn't work when pointed to a 2008 server
Say you replace a server and just want to use an DNS alias to keep the original name of the service. When you try this on windows 2008 it may not work because of 'Strict Name Checking' that is enabled in the system registry of the Windows 2008 server you are trying to access.
We found that
1.HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters
2. On the Edit menu, click Add Value, and then add the following registry value:
I know this link looks to be only for Windows 2000 and or 2003 but I found it also effective for Windows 2008
http://support.microsoft.com/?id=281308
We found that
1.HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters
2. On the Edit menu, click Add Value, and then add the following registry value:
Value name: DisableStrictNameChecking
Data type: REG_DWORD
Radix: Decimal
Value: 1
Data type: REG_DWORD
Radix: Decimal
Value: 1
Then rebooting the server fixed the issue.
I know this link looks to be only for Windows 2000 and or 2003 but I found it also effective for Windows 2008
http://support.microsoft.com/?id=281308
Labels:
DNS Alias Comms
Wednesday, August 11, 2010
Error updating boot.wim's - Failed to Import the following drivers.
"Failed to Import the following drivers". If you are getting this error when updating the boot.wim's MAKE SURE your source drivers are still in the same location.
I found that a source directory had been renamed and therefore SCCM failed inject drivers with a very strange error message.
Go into SCCM and view the source files of the drivers its failing to install. You'll probably find that SCCM can't find the source because someone has moved or deleted the folder.
In my case this affected about 50-100 drivers.. I used the View add columns to sort by source location to remove all the missing drivers and re-add the missing drivers.
I found that a source directory had been renamed and therefore SCCM failed inject drivers with a very strange error message.
Failed to inject a ConfigMgr driver into the mounted WIM fileThe ConfigMgr Provider reported an error.: ConfigMgr Error Object:instance of SMS_ExtendedStatus{Description = "Failed to insert OSD binaries into the WIM file";ErrorCode = 2152205056;File = "e:\\nts_sms_fre\\sms\\siteserver\\sdk_provider\\smsprov\\sspbootimagepackage.cpp";Line = 4262;ObjectInfo = "CSspBootImagePackage::PreRefreshPkgSrcHook";Operation = "ExecMethod";ParameterInfo = "SMS_BootImagePackage.PackageID=\"SSD00001\"";ProviderName = "WinMgmt";StatusCode = 2147749889;
Go into SCCM and view the source files of the drivers its failing to install. You'll probably find that SCCM can't find the source because someone has moved or deleted the folder.
In my case this affected about 50-100 drivers.. I used the View add columns to sort by source location to remove all the missing drivers and re-add the missing drivers.
Labels:
SCCM OSD WINPE2.0
Subscribe to:
Posts
(
Atom
)
