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

compare 2 csv file and output new file

HelloI have 2 csv file that i need to compare and output to a new txt file. Logic is if execlusion.csv list match sms.csv list, delete from sms.csv and write it to result.txt file. As example below, i...

View Article


All mailbox enabled users which *arent* hidden from address list

Hi allDoes anyone know how we can get a list of all mailbox enabled users (ideally from the AD as we need some AD values in there like department and the like) which *arent* hidden from the address...

View Article


Using PowerShell to do a recursive lookup of members of a Exchange...

I am trying to get the members (DisplayName, PrimarySMTPAddress) of several Exchange distribution groups. Using Get-DistributionGroupMember gets me the first level of information, but in many cases...

View Article

VB Script to Disable Wireless LAN on Wired connection detection

We have few E6400, E4300, E6410 and E4310 in our environment which do not supportDisabled upon Wired Connect option. Is there a script which can disable the Wi Fi as soon as these machines are...

View Article

PowerShell Script: How to query a current logon user in part of E.G AD group...

Hi Scripts guys, I am new to powershell . I would like to achieve the following :1. to check e.g if current logon user is member of .e.g. to domain1\group1 if yes then execute another a. do a subst of...

View Article


Is ther any way of filling credentials in Windows logon using script?

Hello, Is there any way to fill in login and password at windows logon using a script (that would be started via psexec)? Bat would be great, but any other is ok too. Nothing more, no mapping. Just...

View Article

Change and customize Windows 7 Logon Screen Wallpaper Script

Hello To All the Scripting Gurus',I know this can be done, but I've only found that this can be done manually. I'm looking for a batch file or script that will change and customize the Windows 7 Logon...

View Article

Run Once VBScript

Hi there,I've been searching all over the web but i cant figure this out..I need a vb script that runs a .bat once after login.. i've used alot of sources but none of them helped me out..Thanks in...

View Article


Parse Excel File via PowerShell for a loop

Hello everyone, I would like to parse a column of one of my Excel file to retrieve the string that each of its cell can contain. This will be used to set the appropriate value of the UPN of users in a...

View Article


Accessing 2 mdb databases through PowerShell

Hi,Scenario: I have two MS Access databases, one with 2380 records (the targetDB) , the other with 2387 records (the sourceDB)Tables and fields are identical in both target and sourceDB's, but are...

View Article

Powershell replace text in multiple files lookup CSV

Hiya guysAfter some guidance please.I have a CSV with following detailsMailboxName, PRFNAME,TempConstantusera, a, usera.prf,TEMPLATEPRFUSERuserb, b, userb.prf,TEMPLATEPRFUSERuserc, c,...

View Article

Batch file for net use to promt for ID as well as password

I've done lots of batch files in the past and I'm familiar with net use but in the past I've always supplied the user ID in the batch file and prompted for just the password.But I now have a situation...

View Article

Powershell: Why don't these assignments match?

Okay, I admit it; I'm a total n00b. Take a look at this code scrap:$colItems = Get-WmiObject -Class "Win32_ComputerSystem" -Namespace "root\CIMV2" foreach ($objItem in $colItems) { Write-Host...

View Article


VBScript Help! Ending Outlook.exe

Hi, I am somewhat familiar with VBS, but not very good at making my own scripts.I need to be able to close outlook regardless of there being other windows open like new e-mails with unsaved data in...

View Article

Systeminfo hotfix info

I running into a problem trying to get useful information about my computers. I need to be able to use a txt file called computers.txt which has all my computers that I handle.I need to be able to make...

View Article


Counting & Securely Deleting (sDelete) files that are older than 1 hour.

** Thanks in advance to anyone that contributes knowledge.  Note: I am still new to PowerShell. **The goal of the script that I need help with does the following: - Keeps a count of the total number of...

View Article

Powershell - (Active Directory Module) - Get-ADGroupMember only works for...

My Computer and AD user account is currently in the, "west.ad.company.com"When I run this Powershell command line:Get-ADGroupMember "All Supervisors" -server east.ad.company.comit produces the...

View Article


required to use VB script to read and manipulate the source.txt file and...

Required to use VB script to read and manipulate the source.txt file  and produce an output file in the required format (output.txt). The criteria is to capture the Ending Balance of the Account which...

View Article

Using -like operator to select recipients for Dynamic Distribution Group

Dear Scriptor,I got few thousand of data and would like to select recipient according to the CustomAttribute1.Below is the sample data in my database.Name: User1, CustomAttribute1: aa, bb, ccName:...

View Article

Simple pull but not working

I am trying to extract:Name, SamAccountName, Description, EmailAddressusing the below commandlet ( I am going to put it in a script to run daily, but not until it pulls what I need).Get-ADUser -Filter...

View Article
Browsing all 15028 articles
Browse latest View live


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