Search found 38 matches

by devereux0110
Mon Oct 05, 2015 12:26 pm
Forum: VBScript
Topic: Display Default Printer
Replies: 3
Views: 16845

Display Default Printer

We all know how to map a printer and set it as the default printer, but is there a VBS line to display the currently set Default Printer. I want to write the currently set Default Printer to a variable, map and set a new default printer and then change it back to whatever the original default printe...
by devereux0110
Thu Jul 16, 2015 1:48 am
Forum: VBScript
Topic: Offline Online
Replies: 0
Views: 25621

Offline Online

Seeing a small issue where Windows 7 laptops when connected to the Domain don't always automatically come online. This happens 1 out 20 maybe. When the drive doesn't come online itself a reboot is required and then the drive appears online. Found a bit of script and although we have written a lot of...
by devereux0110
Tue Jul 14, 2015 10:13 am
Forum: VBScript
Topic: Rename Mapped Drive
Replies: 11
Views: 16116

Re: Rename Mapped Drive

I thought the issue only happened when the user was not connected to the network. Why are you renaming a drive that is not connected? I am afraid that this is a hardware issue and not a scripting issue. It may also be a result of trying to use the shell to rename a disconnected drive. The shell is ...
by devereux0110
Tue Jul 14, 2015 10:07 am
Forum: VBScript
Topic: Rename Mapped Drive
Replies: 11
Views: 16116

Re: Rename Mapped Drive

I thought the issue only happened when the user was not connected to the network. Why are you renaming a drive that is not connected? I am afraid that this is a hardware issue and not a scripting issue. It may also be a result of trying to use the shell to rename a disconnected drive. The shell is ...
by devereux0110
Tue Jul 14, 2015 9:36 am
Forum: VBScript
Topic: Rename Mapped Drive
Replies: 11
Views: 16116

Re: Rename Mapped Drive

For that to work the drive must be physically attached to the computer and not be a network drive. You cannot authenticate to a network share when not in the domain. If it is a physically attached drive then you likely have other issues that have nothing to do with scripting. Consider using the &qu...
by devereux0110
Tue Jul 14, 2015 7:16 am
Forum: VBScript
Topic: Rename Mapped Drive
Replies: 11
Views: 16116

Re: Rename Mapped Drive

Without al of the extra lines this is the whole functional script. Run it and see what errors you are getting then address the errors. Set objNetwork = CreateObject("Wscript.Network") Set objApp = CreateObject("Shell.Application") objApp.NameSpace("W:\").Self.Name = &q...
by devereux0110
Tue Jul 14, 2015 2:15 am
Forum: VBScript
Topic: Rename Mapped Drive
Replies: 11
Views: 16116

Re: Rename Mapped Drive

Logon scripts cannot be run when not connected to the domain. I think you missed a bit of what i said. It works as a logon script no problem. The question was, when running the script manually after a logon as taken place offsite, it doesn't rename the mapped drive as expected I know a logon script...
by devereux0110
Mon Jul 13, 2015 11:51 am
Forum: VBScript
Topic: Rename Mapped Drive
Replies: 11
Views: 16116

Rename Mapped Drive

I have come across a small issue I have a rather simple script that runs as a logon script which renames the Home Drive set by AD, script below This works perfectly at logon if the user is connected to the Domain at the time of logon. If a user logs on off the network (I,e. working at home offline),...
by devereux0110
Fri Mar 06, 2015 12:19 am
Forum: VBScript
Topic: Super Input Box
Replies: 10
Views: 13078

Re: Super Input Box

Super, that bit now works

Just stuck with having to open a 32bit cmd in the wowsys64 folder and dragging the vbs into the cmd to run it.
Is there any way that a vbs can be run in 32bit mode from double clicking it from its folder?

Ta
by devereux0110
Thu Mar 05, 2015 10:22 am
Forum: VBScript
Topic: Super Input Box
Replies: 10
Views: 13078

Re: Super Input Box

I have tried registering the dll using the regsvr32 in the SysWow64 folder. This is when I receive this message I am opening a cmd as administrator Going to the SysWow64 folder (cd c:\windows\syswow64), and then running the command regsvr32 C:\windows\system32\SuperInputBox.dll therefore using the r...