Quantcast
Channel: The Official Scripting Guys Forum! forum
Browsing all 15028 articles
Browse latest View live

PowerShell write to a CSV like Database?

Hi,Is there a simple way using PowerShell writing to a CVS like Database (a human readable – best would be csv). It just has to be a simple Table likeDate, Topic1, Topic2, Topic3, Topic4, Topic5...

View Article


Powershell: Excel is blocking execution – how to get an error/exception?

Hi,I have a PowerShell script that uses Excel via (New-Object -ComObject Excel.Application).Sometimes the script is blocked by excel – it is not continuing with the execution of the scripts.This is...

View Article


Subscribe to event within excel from powershell

I have been trying excel automation with powershell and have been trying to subscribe to an events within excel. The only way I have been able to accomplish this by creating an in memory PSWrapper...

View Article

[Powershell] Radio Button, Check if Checked

Goodmorning,I've found a script that creates a simple form, but there was 1 thing missing and that was a radiobutton\checkbox. So I add a radio button in to the script. But i can't figure out how to...

View Article

[PowerShell] OneGet module setup

Hi,I've installed WMFv5 so I could have a play with oneget in PowerShell v5.  I have installed the module and got the prompt for installing nuget_anycpu.exe which I have allowed PowerShell to install....

View Article


Controlling PowerShell's console output

How do you control PowerShell's console output and overwrite the last character written?I want to overwrite a character with a loop, like the spinning baton in UNIX while some Job.status -eq running....

View Article

Cppy-Item Does Not Work!

I intend to copy files from server A to server B using Copy-Item but it did not work!1. I have rights to both server A and server B. I can either map with UNC \\server\sharename or map with windows...

View Article

VBS Drive Mapping - Using Input string for username & password

I''m trying to setup a vbs script to prompt a user to enter their username & password to map through to a third party network. I've come up with the script below which prompts correctly, however...

View Article


Database information and drive space in one function

Good day all,I'm trying to come up with a function that I can run across all mailbox servers in my environment; gathering information such as drives presented to it, drive capacity, drive free space,...

View Article


Trying to execute a batch file on a remote computer

I have a VB procedure that loops through many elements in an array.  This used to work fine on a XP machine, but it was just upgraded to Windows 7, and now it doesn't work.Shell ("psexec \\" &...

View Article

WMI Health Check script

Hi ExpertsI am looking client WMI health check. When I run the script it should check local WMI and give result in log file. if any issue it should reslove.Thanks

View Article

Help - isNumeric, isEmpty var return

I am no VBScript expert in anyway and I am trying to take a vale from a MySQL DB field that is a semicolon delimited list of varying strings and use it for calculation.  Here is the variable...

View Article

PowerShell Scripts No Longer Working - Execution Policy Set to RemoteSigned

Hello all,I have something weird going on that I have noticed in the last few days or so.  I have quite a few .ps1 scripts that I have created that I have stored in a folder on my desktop.  The...

View Article


Reading INI files with dashes in the section name

I am trying to read an INI file from a web site. Within that INI file are sections that have dashes in them. I need to be able to read several sections so I can locate specific files to download...

View Article

LastLogonDate is blank

My domain is 2012 R2, I have 2 DC's. I am trying to write a script to find inactive users on my network. I am using get-aduser and calling the LastLogonDate. However no matter what script i use i have...

View Article


Exclude specific users from get-ADUser -filter *

This probably sounds weird, but because of the AD structure I inherited I need to do a Powershell search that covers the entire AD apart from 1 OU, or excludes specific users (accounts with a numeric...

View Article

Particular file modified date

Hi team,i have file :c:\windows\system32\ccmsetup under ccmsetup.log. I want to fetch modified date of this file in all the remote computer provided in txt file. and out put shout in CSV  ( System...

View Article


Error message: 450 [Wrong number of arguments or invalid property assignment]

Hello Support,I have a vbscript which does some database query. i see from the log that script quits with the below error.Error message: 450 [Wrong number of arguments or invalid property...

View Article

Get-ChildItem for Certificates --> Local Computer Physical Stores

I am unable to determine the physical store that a root certificate is located.  the LocalMachine\My\Root contains several physical stores including Registry, Third-Party, Group Policy, Enterprise and...

View Article

Methods for Remote Event Log Collection (WMI vs RPC vs WinRM)

Hi,I'm currently evaluating several 3rd party tools (SIEMs) to help me with log management in a large (mostly) Windows domain environment. Each tool uses a different approach to collecting the event...

View Article
Browsing all 15028 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>