I have a vbs file for configuring a network printer. Its stored in a remote pc..I need to run that vbs file from my pc. I have used psexec to remotely execute the file. I ran psexec using an admin account that's common to both machines. The printer is not getting configured even though there are no errors. But the same script works perfectly when directly executed in the remote PC. I even tried wmi & power shell coding.. Both r behaving similarly I.e. configuring printer only when running the script locally.. The vbs file makes use of the "AddWindowsPrinterConnection" to configure the printer. What could be the reason for the printer not getting configured?
Configure printer from a remote pc using vbs and psexec
1.2k Views Asked by Ashok At
1
There are 1 best solutions below
Related Questions in POWERSHELL
- PowerShell Linphone Configuration
- How avoid \t being converted to Tab in Powershell
- How do I get my terminal to work in VS Code? Exit Code:2, doesn't allow me to type anything
- Npm command not working in powershell but works in cmd
- Issue with path not being treated as encapsulated when calling cmd /C
- Native command throws error only when I redirect to a variable
- Logic Apps and long running Azure Function (Powershell)
- April fools - PsExec (PsTools)
- How to use nested ForEach-Object
- Batch Script-Powershell MessageBox | How do I set TopMost within PS command line of Batch?
- Execution Stuck at Get-PnPPage if function executed on Button Click
- How can I expand a column from group output?
- How to use expression in regex -replace with capturing group in powershell
- powershell where-object -cnotmatch filter unwanted lines
- How to make Visual Studio 2022 project launch Windows Terminal instead of PowerShell?
Related Questions in VBSCRIPT
- use vbScript to detect whether the laptop is connecting the power supply
- Error Code 800A03EC in VBS when pasting formula into Excel
- Why is the WMI win32_Process commandline property is giving null for only some processes of non-admin users?
- Group By value to store as a Variable
- 0014 W3602 : Error 0 on line 19, column 1: : will trying to get value from table
- error "800A004C" with too long path with recursive folder serarch
- timer is not working for message box in vb script
- Comparing numeric values not as expected (VBScript)
- Received Script that is a possible virus. What does it do?
- Excel VBA Macro after M365 migration "Runtime error '380': A script engine for the specified language can not be created"
- Can I skip PDF form fields from being filled in an FDF?
- run VBScripts in DosBox-X
- Can I run a program and interfere with its interface using VBS? Possibly with sendkey/click?
- Varchar(max) causing other other accesses of the record set to return null
- Fixing roman numerals with regex and VBScript
Related Questions in WMI
- NullReferenceException when Invoking Method to Enable/Disable Smart Card Reader using C#
- Running wmi queries as a non-admin user on a remote machine using C#
- WMI from centos to remote host
- Getting system info using WMI
- Getting Windows version 23H2 from Win32_OperatingSystem
- How do I access a uint64 in a VARIANT structure?
- c++ WMI: Failure to both enumerate and get instance methods (Windows 10 21H2)
- Why is the WMI win32_Process commandline property is giving null for only some processes of non-admin users?
- Associating WinRT DeviceInformation objects with WMI objects (Win32_PnPEntity)
- How to get "Capabilities" of a PnP device in PowerShell
- Only one ManagementEventWatcher process listens for events at a time
- WMI ThreadsPerHost Quota exceeded
- Get SCCM Deployment's Tab properties using PowerShelll
- How to find type of PCI slots on windows server
- What event does Windows use to detect a drive has been unlocked by bitlocker?
Related Questions in PSEXEC
- PsExec returning "the system cannot find the file specified"
- PsExec fails to open the stdin, stdout and stderr named pipes
- c# psexec response get params
- Powershell and PSExec
- Batch for loop in psexec command
- PSexec error trying to scan subnet
- copy with PSEXEC hangs some times in batch execution
- php -> shell_exec() -> psexec -> my executable chain fails
- Can't force psexec to use the given user account
- remote svn update on server farm
- Wait for PsExec calling cmd /c to finish in PowerShell
- permissions looping through wrong folder using psexec
- PSExec and secure passwords
- How do I edit text remotely in Windows
- Using Psexec to run remote script still allows other users to log into remote system
Related Questions in NETWORK-PRINTERS
- Get network printers
- RawPrinterHelper Not reponding at all no errors in vb
- PDF-XChange Editor is stuck print process of 0% when trying to print
- Olivetti d-color mf-559 printer
- Get or set printer user language(English, Spanish etc) for Zebra printer with socket connection
- How to Fix Kyocera M6230cidn printer
- Cannot find fax machine on Chrome browser on MacBook Pro
- Getting an error while creating a printer: "Generic failure"
- Configuring Brother QL-820NWBc Label Printer for Remote Access and Multi-Store Communication
- Print pdf file on printer by IP in PHP
- VB.NET Add Printer
- How to print pdf in nodejs
- Use Printer on network From a React Native mobile application
- How to open printer in network share or how to enumerate list of network share printer?
- How to change network printer name using IP address in windows
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
If you want to run a script from a remote share on another remote computer, you need to run
PsExecwith explicit credentials:See this thread in the SysInternals forum.
In PowerShell you should be able to get around this issue via
CredSSP.