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 ArticleNeed 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 ArticleMove 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 ArticleUsing 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 ArticleSet 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 ArticleCompare 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 ArticleRename 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 ArticleChange 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 ArticleMultiple 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 ArticleHow 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 ArticleCustom 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 ArticlePrompt 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 ArticleCreating 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 ArticleDoes 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 ArticleGet-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 Articleis 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 Articlehow 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 Articleadd-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 ArticleHow 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 Articleget-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