Powershell virgin looking for some help
Good afternoon all. I'm fairly new to powershell, and am having a devil of a time trying to sort this little thing out. I'm sure it's super easy for people who deal with Powershell on a daily basis....
View ArticleGetting console output into a file
Hi folks, i'm a new PS user. I've written this script up to record the # of servers starting with '0' thru whatever count the user enters and further on record the server names from user input. Now...
View ArticleExtracting attachments by file extension from email
I have a script for extracting attachments from an Exchange 2010 mailbox. It works really well for all attachments but now I need to be able to only extract .pdf and .tif. I cannot figure out how to...
View Articlecount responding devices using test-Connection then output to html
HiI am trying to count the total responding computers using the script below which doesn't not work. I get the total computers found. I do not want to reference a list or txt...
View Articleget-vmswitch causes all further PowerCLI commands to act against the local...
This question is about an odd interaction between PowerCLI and PowerShell. I hope someone can shed some light on this as I can't find a similar question elsewhere.I recently accidentally typed the...
View ArticleAdding items to an array
I wrote this script but I’m having problems adding the strings of each loop to the $ActiveSyncReport psobject. I get the error that is the bottom. I want to build up the $ActiveSyncReport Array from...
View Articleserver name or MachineName not showing up in results of my script
I am attempting to display the server name (Machinename) however i think it is linking MachineName to the get-service commandI run a script which displays service, Status however MachineName does not...
View ArticleImport and Modify CSV
Normal 0 false false false EN-US X-NONE X-NONEHi,I am trying to read the CSV file, split the Content from TimeStamp (1/2/2013 8:00:00 AM ) Column and save it back to same CSV with date and time in...
View ArticleTime stamp in powershell
I want to copy two file with current time stamp with time format like this: yyyy-mm-dd-hh-mm-ssExample: mytestfile2014-11-26-00-10-45The folder contains many files generated by date but I only want to...
View Articleget-childitem sees Null -Path when using a variable.
Hello,What I'm trying to do seemed simple enough until six hours into debugging... I'm writing a script to move files older than a date specified in an xml file. I'm also specifying the paths in the...
View ArticleTrying to Export User Emails From Journaling Mailbox
We have a customer who is looking to export all email associated with a user, the user has multiple email addresses, but all with the syntax 'user@xxx.xxx'.I am trying to run the following export...
View ArticleReplace CN attribute with displayName content
I have a number of AD users that have the first initial, last name (asmith) value in the cn field. I want to copy what is in the displayName field (Alford Smith) in to the cn field. I can change this...
View Articlewant to pop up a new windows inside of an existing UI
I have a ps script started, and working %75 of how I want it to run. I'm trying to create a simple ps script that runs in winPE from a thumb drive, to allow my group to be able to easier apply images...
View ArticleOffice 365 accessing product key for office products
We are currently migrating from a HW email system to office 365. We are ready to start rolling it to the remote sites where internet connectivity is throttled. We would like to avoid downloading the...
View Articlereuse common commands
I often find myself making the same queries such as gwmi win32_bios for example and the only variable that changes is the machine name or the username.can someone point me in the right direction to...
View ArticlePowershell to check the domains in the proxy address
Hello Guys,I am looking for a script that will comapare a file of domains to all the proxy address list of the users in AD and let me know if any users has an additional domain proxy address.Also...
View ArticleConvert a folder named "InstantChats" in PST to CSV
Hi all, I am currently working on a project to Convert a folder named "InstantChats" in PST to CSV. I have tried the approach mentioned on stack overflow...
View ArticleProblem using invoke on "Get-PrintConfiguration"
Get-PrintConfiguration works fine in PowerShell command line. But I can't use invoke in C#.C# code snip:-------------------------PowerShell ps =...
View ArticleProblem using "Set-Printerproperty"
Need help I have problem with Set-PrinterProperty.Problem: When I try to set property "FormTrayTable" , I get the error :Set-PrinterProperty : The specified property is read-only.At line:1 char:1+...
View ArticleNeed help in picking up a pattern from text file.
I have to extract a hostname from one of the xml file in my system, the content of the xml file is something like this,PS D:\SiteScope\groups> Get-Content...
View Article