get objectsid property
is it possible to get the objectsid property based on a txt file populated with username or samaccounts from one domain.and then using the same file populate the msRTCSIP-OriginatorSID using a separate...
View Articlemultiple parameters with pipeline input?
Hello,The answer to this may just be that this is not a case for using pipeline input.. I have a function that takes two parameters, one is an object (the result of a third party web services call) and...
View Articlecisco inventory
Hello,i found a cisco inventory powershell script on the internet. but when i run this i'm getting some error how can i fix...
View Articlesyntax question when importing data from CSV file
Hello all,I'm wondering when you need to use double quotes when referencing a column in a CSV file. For example, the following code pulls data from a CSV file that only has one column called...
View ArticleDSC Package resource handling EXE (not MSI)
I am working through using the built-in Package resource provider for Desired State Configuration and I am having issues with using .EXE files with it (not MSI).I see no failures in Trace-xDscOperation...
View Articlereplacing text in a text file with special characters
Hi all,in my test text file i found an interesting issue, where i can't replace text that looks something like this "New Text Document - Copy (2).txt"(gc $logeps)|foreach{$_ -replace...
View ArticleHashtable - update the value
I am trying to update the Value of a hash table, if there is a True condition. My false condition works fine. I am unclear how to update the value in a hash table, if there is a key that is...
View ArticleGet the name of a workflow within the workflow
If I want to get the name of a PowerShell function from within the function, I can use $MyInvocation.MyCommand.Name.Is there something equivalent that works within workflows?Tim Curwick...
View ArticlePrint Spreadsheet data using powershell
Hi Technet, I want to print a particular number of cells from spreadsheet to a PDF file from Powershell by scheduling a Task, the problem is I do not have Microsoft Office installed on...
View ArticleScript to remove previous email messages from thread
I need to do something that sounds really simple in theory but I'm having a difficult time making it happen. I need to take an incoming reply email messages and parse out everything except the actual...
View ArticleOpen and measure documents
Hello,I want to open with poershell some documents in a sharepoint library and measure also the time, how long the open process is gone.I hope somebody can help me at this task,Thanks Horst MOSS 2007...
View ArticleCompare CSV with previous version
Hello, im comparing 2 CSVs .. My script $yesterdaydate = (get-date).adddays(-1).ToString('yyyyMMdd') $todaydate = (get-date).adddays(0).ToString('yyyyMMdd') $yesterdaypath = "$yesterdaydate.csv"...
View ArticleCannot bind argument because it is null.
Good day, help to understand the problem: $mastel = get-csuser | Select-Object LineURI -ExpandProperty LineURI $phonesUsers=@() $phonesALL=@() foreach ($tel in $mastel) {...
View ArticlePrint Microsoft Word page range
Is there a way for me to only print from page 11 to page 14 using the following script?$objWord = New-Object -comobject Word.Application $objDoc = $objWord.Documents.Open("c:\test.docx")...
View ArticleHow to find out if a script is ran, or dot-sourced?
This came up in a little thing I was working on... I'd like to be able to detect if a script is being ran "cold", or if it's being dot-sourced. I've had a good search but no luck so far.eg, if a script...
View ArticlePowerShell 3.0 will not install. Please Help
I've got a Windows Server 2008 R2 Standard 64bit and according to system properties Service Pack 1 installed.However looking under installed updates the KB976932 is not installed.My goal is to install...
View ArticlePowershell V2 vs. V3 Syntax Issues
I continue to forego upgrading to the newer version of Powershell because I have to support an environment that hasn't embraced Powershell and is still running older OS versions. Working on a tool, I...
View ArticleUsing get -childitem to scan different drives but append one text file.
Folks,I need some help, I wrote the below to scan for certain files types on client machines but I cant get the script to scan anything other than the C$. Apologies I am kind of new to scripting and...
View ArticleLastLogon Across Multiple DCs
I've made the following finally working script to produce a nice HTML report of Active Directory users seperated into sections. It reports on users in three specific groups and then lists all other...
View Articlesetting msExchHideFromAddressLists and ShowinAddressBook
Hello all,I'm trying to hide Contact objects from the GAL by setting the msExchHideFromAddressLists and ShowinAddressBook attributes, and I'm having a bit of trouble. My code performs a domain search...
View Article