Script to retrieve GPO settings into Excel Spreadsheet
All, I am currently using the script in the link below to retrieve some settings from Group Policy Objects. Here is the link:http://syswow.blogspot.com/2012/06/group-policy-status-excel-report.htmlI...
View ArticleRunning as Administrator
I have a script that looks like thisadd-computer -newname XXX -domainname xxxdemo.com -credential administratorThe problem I am having is when I run this as a .PS1 file it doesn't run and says access...
View ArticleWhere does my PowerShell Module come from?
Hi, I installed a module sometime ago in a rush, and now I've forgot where I installed it. I Looked into my module path, and even did a search on my computer but is unable to find anything, yet, I am...
View ArticlePowershell script to Compress log files into .zip
Dear All,I am looking for script to do the following:-1. Scan all the *.log files within one folder2. Organize all .log files in descending order3. Get all the .log files (except the 1st descended...
View Articleget perfmon counters (approx 9 different ones) for 5 mins (simultaneously)...
Hi All,I have to get perfmon counters (approx 9 different ones) for 5 mins (simultaneously) with multiple values. Post that analysis the data and action them according to the output. I was able to get...
View Articlevb scipt that cleans up directories and files
I was wondering if anyone could help me out with this script. I would like to delete 2 folders (+ sub folders and data) and 1 file that is located in the root of C:\I just need to build some logic into...
View ArticlePowershell command to set a variable from the last value of the function
Hello everyone.I'm trying to find out how do I set a variable from the last line of the result of a function.Example:I use CAT to view a TXT file that contains 5 lines, I want to set a variable with...
View ArticleAdvice with get-adgroupmember script to export members of a AD group
Hi All,I am looking for a script which will export below user attributes of a AD group for e.g. DL_APP_TM_CTX...THis is domain local group.. users from different child domain and trusted domain are...
View ArticlePowershell script to add information to existing users from .csv
Hello all! What I am looking to do is add information to the Office field of all of my existing users. All of this information will be unique, so importing the information from a .csv would be...
View ArticleRetriving data from a text file using vbs
Hi all,Im relatively new at this, but want to delve right into it.I need to look for a string of text in a log file.When that string of text is found, I want to get the next 4 lines of text immediately...
View ArticleHow do I write a Powershell Script to Import a CSV File to Outlook Calendar?
I am trying to write a Powershell script to import CSV data to a local Outlook calendar. I also want to ensure that there are no duplicate entries. The headers are Location, Subject, Start Date...
View ArticleHow to parse CSV using Windows Batch File
Hello all, I've been searching for a way to use a Windows Batch file to read the contents of a specific cell in a CSV, and based on a condition, output a line from the batch file.For example, the batch...
View Articleremove all characters after "\" from string
I am looking for a vbscript which will remove all characters after "\" from string...for e.g. Input as below -First\abc12Second\bcde1Third\qwerty6Four\jcuryyoutput should be like...
View ArticleDisable "Allow files on this drive to have contents indexed in addition to...
Hi allI had searching for hours to turn off the content indexing over the command line.Also i compared the registry exports after and before the manually deactivation (using the GUI), but there isn't...
View Articlereplace XML tag have datestamp with current datestamp
<Configuration ConfiguredType="Property" Path="\Package.Variables[User::ConfigFilePath].Properties[Value]"...
View ArticleRun Exchange Powershell Command as Different User from Powershell
Hey,I got a problem, I want to run a command/script as a different user in Exchange Powershell out of the normal Powershell. I got a Java Application which should automatically execute these commands...
View ArticleAD scripting
Hi there,I am trying to get information about all security groups permissions on my network. I already created a CSV file list of my security groups by powershell but I dont know how to import that...
View ArticleList scheduled tasks on remote servers (vbscript)
How can I list all scheduled tasks on a remote computer with details including the user account the job runs as? I have tried the sample code at...
View ArticlePowerShell Script to do a Specific Function
Hello All, I am a complete noob to PowerShell Scripting and am anxious to learn more.I need to create a PS script to perform the following functions in a single script and have no idea how. I have...
View ArticleTrying to clear out an AD attibute with powershell
Hello.I have made a litle script where i run commands against my AD. IT works greate, until i came to a litle problem where i want to clear out an attribute from the AD.Have searched high and low, but...
View Article