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

Import list of servers, export their member of groups

I have a list of servers in a text file, and I would like a script to say if they are in a particular group (I have several similarlay named groups - and need to know when the server ISN'T in any of...

View Article


Need to email site specific csv output files to site specific email...

I have 8 different site ou's that I collect information from export to csv file and need to email the site specific csv file to the site liaison so basically 8 csv files to 8 different email...

View Article


Move Folders containing Subdirectories to UNC location

Hi,is there a script or method that can be used to move subfolders to an archive location - Windows Server 2008 to Linux NAS boxThe subfolders are to be filtered by date modifiedthe folders contain a...

View Article

Using PowerShell to find Active Directory logon names with a certain format.

We recently changed our companies Active Directory logon name format to: first letter of first name + last namePreviously, the format was: first 7 letters of last name (or less for shorter last names)...

View Article

Set message queue rights on remote computer with PowerShell

Hi guys,New to these forums. I asked this over at the anandtech.com Programming forum, but no one was able to answer it.The software I am supporting needs rights set on message queues on different...

View Article


Compare Word Document and Text File - Send certain word docs to another folder

I have a word document and a text file. I want to open the word document, open the text file and have some logic that reads the word document and if it finds a string match to the text file to copy...

View Article

Rename files using a text file in Powershell

I've read the other answers to this problem but my circumstances are slightly different. I have a txt file with comma separated values, this is an example of one...

View Article

Change print driver for multiple printers

I need to re-install a Ricoh Universal Print driver on a 2k8r2 print server. To do that, I need to change 40+ printers to use a different driver so I can delete the old one and add back the new one. I...

View Article


Multiple machines event log query

Hi,I am a newbie to powershell and have been trying to work out a script to query event logs on multiple machines (that's Windows XP machines). The reason being is to determine is they have any bad...

View Article


How to delete Windows 7 roaming profile using VB script

Hi Guys,Hope you're all well. I'm a junior scripting guy but I only know the basics. Part of my script below will delete the user profile. e.g. if the accountname/strUserData is Joe.bloggs, it will...

View Article

Custom object and its property displays uneven when trying format-table or...

So what I'm trying to do here is to export a csv file with different models of computers from dell. Here's the codeforeach($s in $strings) { if($s -like "Precision *") { $obj+= New-Object -TypeName...

View Article

Prompt Windows PowerShell Credential Request while half way processing

Dear Scripter,After Microsoft upgraded to latest Office 365, PowerShell will prompt me for credential request half way of the processing.How can I avoid the credential prompt? I have schedule task the...

View Article

Creating folders

I have a logon script which creates some folders and then copied some network files to the local hard drive.The "c:\prgram files\NB\Startup" folder gets created and the file copied to it from the...

View Article


Does PowerShell code run in single thread mode (-sta) run slower?

HelloI want to start putting some GUI front ends on my utility script/s I want to use an approach that will be supported further down the line, therefore I am looking at using WPF instead of Windows...

View Article

Get-acl returns the same rule two or three times

HiI've been working on a script to remove permissions from folders. I use get-acl and set-acl for this. However, get-acl returns the same rule name two or even three times.ScreenShotCode:Function...

View Article


is there a way to check domain user cannot change password?

if domain user is set can't change its own password on DC through Active Directory Users and Computersby right click the user name,check option 'user cannot change password'how to get the option status...

View Article

how to prevent the domain user to change its password?

tried to check the user can not change password option on DC Active directory users and computersbut after some time the options becomes blank status again without checked,suspect the GPO is take...

View Article


add-pssnapin WebAdministration - Need assistance new to PowerShell

Hi I am studying for 70-643 and on the ISS portion.  The text book stated to do the following items listed at the bottom of the page in qoutes. I have ran into a problem.  I cannot get the following...

View Article

How to get the owner of a created user in Quest Powershell

HiI got this script which gathers users created between a time frame, what I need is also the owner (creator) of each user in a separated column (Username of the owner as well as the DisplayName of the...

View Article

get-winevent - multiple pc's

Is there a easy way to export the results from the below script to csv file?Thank you.. $yesterday = (get-date) - (new-timespan -day 5) $servers = get-content c:\temp\pc.txt foreach ($server in...

View Article
Browsing all 15028 articles
Browse latest View live


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