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

Show() + Form Label 'Not responding' when script is pushed through GPO.

I have a powershell script that pops up a simple win form as a job starts, and then closes when the job ends.  This form runs fine and as expected out of ISE or calling from a .ps1. However, if I push...

View Article


Powershell script for auto Gmail logon won't work on 2nd system

I run the following Powershell script to auto logon to a Gmail account on my first Windows 7 system and it works just fine:# Ensure that you are not already signed-in Gmail! #seeking help to improve...

View Article


Replication cmdlets are missing in Powershell 3.0

Hi,I am been using powershll 2.0 for a while and I have updated it to powershell 3.0.The following is my setupDomain Controller:Windows server 2008, FFL and DFL is server 2008I am using Windows 7 sp1...

View Article

LDAP Query - Using an Either statement with a NOT statement

Hello,Just a quick question this time!I'm trying to refine a search string I setup a while ago, to exclude members of an OU, the issue is that my LDAP search string already uses an EITHER statement.The...

View Article

IO.FileSystemWatcher running all day

Hi Guys,I´m creating a systemwatcher monitoring, where it will monitoring all day a folder. My question is simple.is there any problem about keep it running every day all day? I mean about server...

View Article


Display a window from a task runinng as system

Hi guys,i´d like to start a powershell script with forms from an event triggert scheduled task. It should run in the SYSTEM context. The forms window needs to be displayed to the current logged on...

View Article

Setting PasswordHistoryLength in Powershell

HelloI want to set "Enforce password history" as 5 days using PS on a stand-alone (not joined to a domain) Windows 7. But I got an error as below:Exception setting "PasswordHistoryLength": "Exception...

View Article

Passing arguments from PS command line

Hi,How can I pass the current date as an argument form PS prompt to execute below PS coding, instead hardcoding the Current date in the file...

View Article


Logon Script Doesn't Work in Windows 8

For me It's the sameIt simply does not work...No matter if you use mapnetworkdrive or net use In Windows 8 the logon script does not work, in xp, 7, 2k3, 2k3r2, 2k8,2k8r2 yesIf you launch manually the...

View Article


I Need Script for restarting the services automatically.

Hi guys,For example 1. Before windows Patching login to manually Save all services to txt file using Cmd net start>1.txt) and install the download Patches automatically & once patching completed...

View Article

Register for remote logon events on a remote computer?

Hello scripters,I need to register to the class that collects the data about all remote logon events. I did some trial and error and couldn't not find the class that holds this information. My...

View Article

Batch script to get file size

Hi,I have the following script below to get the size of a Powerpoint template on a local path and send the size to a log (txt file) on a server share. The script works fine if run locally from the...

View Article

Image may be NSFW.
Clik here to view.

combine two windows_onload in HTA

Hello,I have 2 VBscript that I have combined into a HTA that has over 2,500 lines. The HTA works perfectly from joining to domain, install printers and software, etc. The issue I am having is that both...

View Article


cdo/configuration/smtpauthenticate value of 3

Im using  CDO to send mails out of a wsf script. For a long time I used successfull SMTP port 25 with cdo/configuration/smtpauthenticate = 2 for authentication.Then , due to security reasons, my...

View Article

want to use VBscript to modify one fo registry keys

Anyone can help with a vbscript to modify one of the software  registry keys: Windows Registry Editor Version 5.00...

View Article


Error While Copying Files to System 32 Folder

Hello All - I have been trying to Xcopy files from Network share in to my System32 Folder  but as a normal user logged in it requires elevated CMD prompt to copy files over .Is there a way I can...

View Article

In PowerShell, Get/Set timestamps on Reparse Points are inconsistent - bug or...

If I read the CreationTime property (or other timestamps) on a Reparse Point I get the CreationTime for the Reparse Point; but if I write it, the target is updated, not the Reparse Point. Is this a...

View Article


Remote collect .evtx security audit logs

Hello,I'm wondering if anyone has ever posted a script such as this, and if so, wondering if you have a link to it.Environment is a Server 2003 Ent DC backend and Windows 7 Ent workstations.Looking for...

View Article

UNIX pasting in powershell

I use the paste command in UNIX to join two or more files.Example. file1 contains the line x1file2 contains the line x2I would do this at the UNIX prompt: paste file1 file2.The result would be x1 x2.I...

View Article

Powershell CSV Merger / Comparison

Hi,I'm trying to perform a merge of data between multiple CSVs in multiple ways all based on a single similar property. Finding the data to be merged hasn't been an issue but combining it has so...

View Article
Browsing all 15028 articles
Browse latest View live