-
WSade
AskWoody LoungerHi,
I think the “Realm” setting only applies to Basic and Digest Authentication in IIS, not Integrated Windows Authentication – hold on, I’ll check. Yes, it does. The “Realm” field only becomes available when either of these two methods of authentication are selected. I’m sure there is a solution to this and I think its setting the SPN, but I want to be sure?
Thanks for your reply,
-
WSade
AskWoody LoungerThanks for your reply – I thought this was the case.
Ade
-
WSade
AskWoody LoungerThank you – that worked beautifully!
Much appreicated,
-
WSade
AskWoody LoungerYep, its given me a solution…have added these two lines in the logon script:
reg delete “HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerMenuOrder” /f
reg add “HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerMenuOrder” /fTested OK, now rolling out across the domain!
Many thanks for the quick response.
Cheers,
-
WSade
AskWoody LoungerThanks for the replies – I thought so!
Will check out the link for add-in, but will probably put some bold, red text on the first slide!
Cheers,
-
WSade
AskWoody LoungerQuick update and closure of this thread…
Have given up trying to script the System Restore and reboot/shutdown together. Have opted for manual reboot by user, or remote client, after System Restore has been set. Am assuming that it’s our hardware that is not responding properly to the reboot/shutdown script.
Therefore, we have ended up with two scripts. One to enumerate the System Restore Points available and the other to perform the actual System Restore (both are below). We needed these to run against remote PC’s that were in safe mode. To do this, we had to enable the “Allow Remote Administration” exception in the Windows XP SP2 non-domain settings firewall (risky, but had to be done). We did this via Group Policy.
Here are the two scripts…
Long code fragment (over 3,000 characters) moved to attachment by HansV
Thanks to those of you who responded on this thread.
Cheers,
-
WSade
AskWoody LoungerThanks for that Charlotte.
It does look like a hardware issue (related to the force reboot code). We have progressed a little further now…
If we just run the System Restore code against the remote machine (whilst at Ctrl Alt Delete screen), and then get the user to re-boot the local PC via the shutdown button on the logon screen; the machine shuts down and the “Performing System Restore” gui appears. The System Restore completes OK, the machine reboots and the a successful System Restore event is logged.
So, it does look like a hardware issue with the force reboot code, doesn’t it? At least we’re partly automating the process…
All I have to do now is get the System Restore code to run against the machine when it is booted to “Safe Mode with Networking” (not working at present). This is our driver for this script – we have a hardware issue where we can only boot some PC’s to Safe Mode with Networking; performing a System Restore gets them going again…and we need to be able to do it over our WAN.
I assume the System Restore script is not working in Safe Mode as the WMI classes may not be loaded?
Any pointers out there please?
Cheers,
-
WSade
AskWoody LoungerHi Gary,
Thanks for that. You’re right…I was assuming that the location of normal.dot, within the Users Templates location, made it more user specific. Perhaps, as you say, it doesn’t. Having done some searching around the Lounge, I think I will be adding some VBA to our global template that will change the default font of the users normal.dot programmatically (see post 423877). NB: I have used the Office 2003 CIW to specify a standard, network, location for Workgroup and Startup templates in Word.
This way, I can be sure that the VBA will run whenever a user (exisiting or new) opens Word 2003, rather than having to wait for all my users to use Word, create their own normal.dot and then pull a new one from the network – also avoids having to add an error trap to the network script that would copy a network normal.dot over a users normal.dot (should it not exist).
Again, having looked around the Lounge (particularly in the VB/VBA forum) there seems to be lots of IT Managers looking for a solution to this problem – what strikes me as bizzare is that there is nothing on the Microsoft KB or Office site to tackle this issue?
Many thanks,
-
WSade
AskWoody LoungerHi and thanks for your reply,
Your suggestion is what I would normally (forgive the pun) do for an Office/Word 97 installation, but in Office/Word 2003 the normal.dot is much more user specific and, I assume, more critical to the correct functioning of the newer features in Word 2003 (certificates, macro security etc).
I assume, again, that this is why Microsoft instruct you not, under any circumstances, to open any Office 2003 program on the PC to be imaged; as doing so adds specific user configuration info to the registry and other places (including the creation of normal.dot for the user). Consequently, I need to manipulate the normal.dot after image deployment and after a user has logged in (and their normal.dot created) – as you say, I could do this via scripting from the network…I’m just a bit nervous about the corruption that might be caused to Word 2003 configuration?
Can anyone else shed some light on this, may be some specific experience of Word 2003?
TIA,
-
WSade
AskWoody LoungerMany thanks for the pointer – on my way there now!
Regards,
-
WSade
AskWoody LoungerAh, got you. Thanks. Have decided to use WMI and have produced the following script:
strComputer = “.”
strTarget = “192.168.0.1”Set objWMIService = GetObject(“winmgmts:” & “{impersonationLevel=impersonate}!” & strComputer & “rootcimv2”)
Set colPings = objWMIService.ExecQuery (“Select * From Win32_PingStatus where Address = ‘” & strTarget & “‘”)For Each objPing in colPings
If objPing.StatusCode = 0 Then
MsgBox “Ping Received From:” & vbtab & strTarget & vbcrlf & _
“Responding Address:” & vbtab & objPing.ProtocolAddress & vbcrlf & _
“Bytes Sent:” & vbtab & vbtab & objPing.BufferSize & vbcrlf & _
“Time:” & vbtab & vbtab & vbtab & objPing.ResponseTime & ” ms” & vbcrlf & _
“TTL:” & vbtab & vbtab & vbtab & objPing.ResponseTimeToLive & ” seconds”, 64, “Title text”
Else
MsgBox strTarget & ” did not respond to ping.”, 16, “Title text”
End If
NextSet strComputer = Nothing
Set strTarget = Nothing
Set objWMIService = Nothing
Set colPings = NothingMany thanks to everyone for all the pointers on this.
Cheers,
-
WSade
AskWoody LoungerAh, got you. Thanks. Have decided to use WMI and have produced the following script:
strComputer = “.”
strTarget = “192.168.0.1”Set objWMIService = GetObject(“winmgmts:” & “{impersonationLevel=impersonate}!” & strComputer & “rootcimv2”)
Set colPings = objWMIService.ExecQuery (“Select * From Win32_PingStatus where Address = ‘” & strTarget & “‘”)For Each objPing in colPings
If objPing.StatusCode = 0 Then
MsgBox “Ping Received From:” & vbtab & strTarget & vbcrlf & _
“Responding Address:” & vbtab & objPing.ProtocolAddress & vbcrlf & _
“Bytes Sent:” & vbtab & vbtab & objPing.BufferSize & vbcrlf & _
“Time:” & vbtab & vbtab & vbtab & objPing.ResponseTime & ” ms” & vbcrlf & _
“TTL:” & vbtab & vbtab & vbtab & objPing.ResponseTimeToLive & ” seconds”, 64, “Title text”
Else
MsgBox strTarget & ” did not respond to ping.”, 16, “Title text”
End If
NextSet strComputer = Nothing
Set strTarget = Nothing
Set objWMIService = Nothing
Set colPings = NothingMany thanks to everyone for all the pointers on this.
Cheers,
-
WSade
AskWoody LoungerMany thanks – have had a quick look around and it seems to be a major point of discussion!
I have attempted to create a script that will use WshShell.Run to open a command window, run ping and return the output to a string. My theory is that I can specify 0 as the value for the window, which makes the command window hidden. Its a bit messy and its not working at the moment, can anyone see where I’m going wrong?
Dim pingip
Set WshShell = Wscript.CreateObject(“Wscript.Shell”)
pingip = WshShell.Run (“cmd /K & ping 192.168.0.1”), 0, False.StdOut.ReadAll
MsgBox pingip
Set WshShell = Nothing
Set pingip = NothingCheers,
-
WSade
AskWoody LoungerMany thanks to both of you for that – the one liner does the job required and the WMI method provides some more functionality . Anyway of hiding the command window that appears when using the Exec method of WScript.Shell?
Cheers,
-
WSade
AskWoody LoungerMany thanks to both of you for that – the one liner does the job required and the WMI method provides some more functionality . Anyway of hiding the command window that appears when using the Exec method of WScript.Shell?
Cheers,
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Trump : WE WANT MOVIES MADE IN AMERICA, AGAIN!
by
Alex5723
26 minutes ago -
Sycophancy in GPT-4o: What happened
by
Alex5723
8 hours, 47 minutes ago -
How can I install Skype on Windows 7?
by
Help
7 hours, 29 minutes ago -
Logitech MK850 Keyboard issues
by
Rush2112
2 hours, 14 minutes ago -
We live in a simulation
by
Alex5723
22 hours, 54 minutes ago -
Netplwiz not working
by
RetiredGeek
9 hours, 29 minutes ago -
Windows 11 24H2 is broadly available
by
Alex5723
1 day, 11 hours ago -
Microsoft is killing Authenticator
by
Alex5723
18 hours, 52 minutes ago -
Downloads folder location
by
CWBillow
1 day, 17 hours ago -
Remove a User from Login screen
by
CWBillow
13 hours, 24 minutes ago -
TikTok fined €530 million for sending European user data to China
by
Nibbled To Death By Ducks
1 day, 8 hours ago -
Microsoft Speech Recognition Service Error Code 1002
by
stanhutchings
1 day, 8 hours ago -
Is it a bug or is it expected?
by
Susan Bradley
1 day, 13 hours ago -
Image for Windows TBwinRE image not enough space on target location
by
bobolink
1 day, 8 hours ago -
Start menu jump lists for some apps might not work as expected on Windows 10
by
Susan Bradley
7 hours, 33 minutes ago -
Malicious Go Modules disk-wiping malware
by
Alex5723
1 day, 21 hours ago -
Multiple Partitions?
by
CWBillow
1 day, 22 hours ago -
World Passkey Day 2025
by
Alex5723
2 days, 15 hours ago -
Add serial device in Windows 11
by
Theodore Dawson
3 days, 6 hours ago -
Windows 11 users reportedly losing data due forced BitLocker encryption
by
Alex5723
1 day, 7 hours ago -
Cached credentials is not a new bug
by
Susan Bradley
3 days, 11 hours ago -
Win11 24H4 Slow!
by
Bob Bible
3 days, 11 hours ago -
Microsoft hiking XBox prices starting today due to Trump’s tariffs
by
Alex5723
3 days, 8 hours ago -
Asus adds “movement sensor” to their Graphics cards
by
n0ads
3 days, 13 hours ago -
‘Minority Report’ coming to NYC
by
Alex5723
3 days, 10 hours ago -
Apple notifies new victims of spyware attacks across the world
by
Alex5723
3 days, 22 hours ago -
Tracking content block list GONE in Firefox 138
by
Bob99
3 days, 21 hours ago -
How do I migrate Password Managers
by
Rush2112
3 days, 5 hours ago -
Orb : how fast is my Internet connection
by
Alex5723
3 days, 7 hours ago -
Solid color background slows Windows 7 login
by
Alex5723
4 days, 10 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.