Bulk-AD-Group-Creation via a csv file
How can I populate "OtherAttributes" via a csv file?This script works fine except for populating extensionAttribute2. The information to be populated into extensionAttribute2 will not always be the...
View ArticleHow do I suppress messages/loading bars from Import-Module and Import-PSSession?
Hello,How do I suppress messages/loading bars from Import-Module and Import-PSSession?I am writing a script that will be using these commands and it makes the script look clunky/scary to novice...
View ArticleDomain computers inventory
Hi everyone,I am looking for PS script to search all AD computers and give the following csv output:computername, description, dn, OS type, state (disabled or enable),lastlogontimestamp, bitlocker...
View ArticleAggregate SP List Items in an array
I have a Sharepoint list that contains items in the following format:Site Plan Type Status CountAAA Manufacturing Started 1AAA Manufacturing Not...
View ArticleBasic Silent install of an MSI or EXE applicaiton
Hello AllI am hoping someone can point me in the right direction, as I am still learning much about Powershell.I cant seem to find what I need on the google box without getting my self confused. right...
View ArticleHow to regex a table output
Hey guys,So I need a script that runs on a client machine to get the person's username and then, based on that, his OU in AD. This is what I have thus far:$username=$env:USERNAME...
View Articleinternetexplorer.application activex component can't create object
I am getting the infamous 429 error with a new image of Windows 2003 Server.I am sure this is an issue with the Windows 2003 Server image, so I have to figure out a work around to get this to work....
View Articlechecking of object is empty
I am trying to do something simple and have used the same methode in the past, but it does not seem to work.I am doing a query in AD according to an csv file, and I want to perform certain tasks...
View ArticleMap network drive depending which computer the user connects to
Hello, We got currently a very light vbs file to map drives which works fine. To continu a migration, I need to add a condition to a mapping vbs script. So my question is, how can I add that condition...
View ArticleGet a user's Home Directory with Powershell
Ok,I need to get the HomeDirectory of a user and copy it to another user. Problem is I can't get JUST the home drive. Can anyone help.Here is my code (or a sampling of a larger script): $oldID =...
View ArticleVB script to copy a file if member of an AD group - Need help
Hi guys, I normally use powershell and am venturing into a little VB. I have written a script to copy a file to the subdirictory in the users AppData directory if they are a member of a certain group...
View ArticleHow do I import a module for script use?
I have a script that uses the AD module for some operations. Here is the code:#04/24/2014 #UsAer Logger #Author: Alexander Bazzi #Property of AerSale, Inc Import-Module ActiveDirectory...
View ArticlePS to capture data from file to use in rename process
I'm attempting to take a group of specifically named PDF files, capture specific pieces of data within the file (using a control file of the phrase items I need), and use these data pieces to create a...
View ArticleBatch file: A command that last forever
I have a batch file with few commands*************************command1command2command3*************************if I execute command 2, it will have info massage comes out and it would last forever. So...
View ArticleStop a script from executing - Try/Catch
This is driving me nuts... I can't figure out how to stop a script from executing when I encounter an error in a Try/Catch block. I've tried using 'break' but all that does is exit out of the code...
View ArticleVB script :searching and deletion of unmatch rows from 2 different files.
I Have a file in notepad++ which contains around 2lakh 50 thousand rows.each row has a unique number.In excel sheet i have the unique number listed. count is around 500.i want fetch the unique number...
View ArticleGet-DnsServerZone
Hi Guys,I am totally new to powershell. I have installed Windows Server 2012 datacenter on a Virtual Machine and tried to run a command -- Get-DnsServerzoneError -- Failed to enumerate zones from the...
View ArticlePowershell: Copying spreadsheet from memory to dataset.
I'm trying to use powershell to open a spreadsheet from a stream, copy into a dataset and then upload to SQL. I'm having problems trying to figure out how to take the stream object and copy it into a...
View ArticlePowerShell provider MSFT_ScriptResource failed to execute Test-TargetResource...
I found this article, and used it, and it seems as though my script resource node items are being properly expanded, and honestly I think it passes through being loaded up, but then when I go to start...
View ArticleScript to locate if systems has a TPM chip and it's status if it does.
I am looking for a script that would scan AD for a list of computers and then query them to see if they have a TPM chip and then what the status of each one is.I have been looking around and so far...
View Article