Skip to main content

Questions tagged [wsh]

For questions relating to Windows Script Host (WSH), a language-independent scripting host for the Windows operating system. It allows scripts to be run from both the graphical Windows desktop (via WScript.exe) and the command prompt (via CScript.exe).

wsh
0 votes
0 answers
321 views

Error 800A01CE, add printer by vbs throught ip

When I tried a small code to add printer on window 10 enterprise 64bits. I meet error 800A01CE. Please help me to resolve this problem. This is my source Option Explicit Dim strPrinterUNC, objNetwork ...
nhanlam's user avatar
0 votes
1 answer
575 views

powershell spawned by .vbs file does not recognize script files... (Windows 11)

I'm simply trying to run a .ps1 from a .vbs (did this before on w10) ‪C:\Scripts\Test.vbs command = "powershell.exe -ExecutionPolicy Bypass -nologo -command ‪C:\Scripts\Test.ps1" set shell = ...
Kitten's user avatar
  • 1
-1 votes
1 answer
368 views

Why does Typescript support WScript?

I have installed Typescript just to have WScript intellisense in VScode. And I got it. But whenever I compile a typescript tsc myScript.ts containing WScript method WScript.Echo("hello world"...
Zano's user avatar
  • 135
-3 votes
1 answer
82 views

Why script hangs the host process when buffer size increases to 4MB?

We have added Process class to execute a script. Main method of the script file is defined in the next section. When Script executed the WaitForExit() method of Process class returns false every time ....
KnowledgeIsPower's user avatar
1 vote
0 answers
57 views

Why is MS Access displaying a window after closing when automated through vbscript?

I have a vbscript that opens Access and calls a function. The .Visible property for the Access application is set to False in the script. Up until a few days ago I was not seeing any visible Access ...
eign's user avatar
  • 21
0 votes
1 answer
250 views

VBS & WSH error on simple loop and cpu over usage

I have a simple script that hunts for popup boxes that are generated for website and Excel. It works most of the time but errors out occasionlly and seemingly randomly. The error is line: 6 Char: 3 ...
Emein's user avatar
  • 37
1 vote
1 answer
343 views

Am I able to embed HTA code into VBScript? [duplicate]

EDITED My company used VBScript and IE to create popups for gathering and displaying information. Now that IE is going away, we can't do this in Edge. We're looking for a way to use HTA embedded in ...
Lou's user avatar
  • 401
1 vote
0 answers
231 views

Active Directory VBS Scripting, getting blank or no value for "cn" attribute

I am writing a script to write the computer name ("CN") attribute of computer accounts in an OU of Active Directory into description field of the computer account but I am just getting blank ...
Francis's user avatar
  • 11
0 votes
0 answers
350 views

Batch scripting - how to pass a flag into a loop and modify the flag if condition met

I am new to scripting and I found this script online that seems to do what I need after I tweaked it a bit. I am trying to close a popup window once it opened, once the popup window opened I need a ...
Roman's user avatar
  • 61
1 vote
0 answers
696 views

VBA Reconnect Remembered Network Drive

(MS Excel 2016) I'm trying to find a solution, which can be implemented via vba, to ensure that the network resource for my Excel utility is available and prevent the {insert path here} is not a ...
Glenn G's user avatar
  • 667
0 votes
0 answers
540 views

Executable binary file not working after XOR encryption and decyption

I want to encrypt an exe file (file.exe), write the encrypted version to a text file (fileenc.txt) and decrypt the data in the text file back to another exe file (filedec.exe). file.exe and filedec....
splendorkafta's user avatar
0 votes
1 answer
300 views

Encrypt binary file with xor Jscript WSH

When encrypting string using xor encryption, things work well. But when dealing with bytes, it does not work for. It throws error at k.charCodeAt(0) Please what could be the problem? This is my full ...
splendorkafta's user avatar
2 votes
2 answers
2k views

Found this script plus the exe file in my app data folder. I wonder what does this do. Is this a backdoor script to record my key stroke entry?

I recently found a WS folder with in my app data folder, containing a "ws.exe" file, with a script file in the same folder, also there is shortcut added to my startup folder with below ...
Alex Huang's user avatar
0 votes
0 answers
41 views

VB script to find whether it is running in 32 bit or 64 bit [duplicate]

how to find which command prompt(32 bit or 64) is being used to run the vb script when it is called using cscript. I need to capture that info.
Phanik's user avatar
  • 21
1 vote
1 answer
203 views

Where can I find the doc for the function GetObject in Microsoft Javascript?

I cannot find the doc for the function GetObject available in Microsoft Javascript. I tried with no luck https://learn.microsoft.com/en-us/search/?terms=javascript%20getobject where I found https://...
Alessandro Jacopson's user avatar

15 30 50 per page
1
2
3 4 5
72